I think it’s because your using subcategories and the theme displays the parent category.
Thread Starter
sucalm
(@sucalm)
Hi, thank you but I have only categories. I have no subcategory
Do those posts have multiple categories assigned to them?
Well it displays the first category (alphabetically) from the list of categories attached to your post.
Thread Starter
sucalm
(@sucalm)
Yes you are right.This is the reason!! Its the first category from the list of the first post on the top. So I think I cant do anythig to resolve it…perhaps not use multiple categories for each post..I will see..thank you very much for your help. ciao
Hi, I have exactly the same problem, but I can’t use only one category for one post.
Is there anything I can do (perhaps a change in the category.php?) to make it display the category-name it actually shows? Because the posts are ok – only the name displayed is wrong. Please help. Beside this one issue, the theme is really great!
There is nothing you can do at the moment… that’s how it is displayed at the moment. I will try and change it in the next update.
Thank you anyway. I’m looking forward to the update π
Ok, I think I’ve found a workaround. It works for me. So, if you want to have only one category displayed as the title of category archive, the simplest way is – what was covered earlier – to use only one category for a single post.
But if you need to use more categories for a post (eg. “News”-category, “About my works”-category and “Foto”-category – let’s say for a post that is new, portfolio and a foto), and you want it to have a category name accordingly to which category archive the user clicked, you need to replace in category.php the part
<?php ac_output_first_category( '', true ) . ac_icon( 'angle-down' ); ?>
with
<?php single_cat_title(); ?>
I assume it takes the site’s title form the permalink.
The post itself will still have only one category displayed (the first – alphabetically), but at least you get a category-archive website with the right title.