flaga Treść tego wpisu jest dostępna również w języku polskim

There is also one more situation we can use category-x.php file. This file ‘gathers’ all posts assigned to x category and display them on one page after clicking on category x name. But what if we want to have regular page with some text and all post from category x below accessed via link in menu? No problem :happy_tb: .
We need to change two things in category-x file; we have to add title for this page and text (sorry, no possibility to add text as to regular pages ;). So open your category-x file and look for line <?php if (have_posts()) : while (have_posts()) : the_post(); ?>. Just above it we need to add <h2 class="title">Page title</h2> Class might be different. Look into your page.php file and check what class is assigned to its title. The same class you need to use for title in category-x file. If you want the title to look like any other it should be linked to this page. So it will look like that:

<h2 class="title"><a href="http://example.com/category/x/">Page title</a></h2>

( To find out URl for this category just click on category x name and copy URl from browser window )
Below title (but still above <?php if (have_posts()) : while (have_posts()) : the_post(); ?>) there will be some text. You need to paste for example:

<div class="entry">
<p>This is some text which will show up on top of page for category x. It can be as long as you need…;)</p>
</div>

We need to use class to make sure that text will look as on any other page. To find out its name check on page.php file. Look there for <?php the_content(); ?> and check out the name of class just above it.
OK. Page is ready. It will look like this (it may vary depending on theme you use):

<?php get_header();?>
<div id="main">
<div id="content">
<h2 class="title"><a href="http://example.com/category/x/">Page title</a></h2>
<div class="entry">
<p>This is some text which will show up on top of page for category x. It can be as long as you need…;)</p>
</div>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

Now we need do make it accessible via menu.
Open your heard.php file and look for <?php wp_list_pages();?>. Just below it add

<li><a href="http://example.com/category/x/">Page title</a></li>

And done :thumbup_tb: .
NOTE #1 I still didn’t figure out why category-x.php file doesn’t work at all if you use default permalinks. So to make it working you need to use any of few available options of pretty permalinks ;).
NOTE #2 There are themes with much more ‘complicated’ structure that requires few more changes. Like K2, Redoable, Unsleepable and any other K2 based/inspired theme ;). If you want details on it just let me know..