Support » Fixing WordPress » Permalinks kills custom “no posts in this category” theme element

  • willdonovan


    Right, so – I didn’t even realize this until today, and it’s not a huge deal, but I’m wondering if anyone has a workaround to this issue –

    With this link:

    I.E. calling the category by it’s number, WordPress returns the customized “sorry there ain’t anything here” element in my loop. But if it’s called by the permalink:

    WordPress returns the 404 page. Pain in the butt that is.

    Now obviously I could hardcode the link in, but that sort of defeats the purpose – this is what I have currently, whereby I can call the number of posts and I can bring in a feed icon.

    <h2><li class= "page_item current_page_item" ><?php wp_list_categories('style=none&hide_empty=0&show_count=1&title_li=&include=3&feed_image=,property=default.jpg'); ?></li></h2>
    <li class="page_item"><?php wp_list_categories('style=none&hide_empty=0&show_count=1&title_li=&include=4&feed_image=,property=default.jpg'); ?></li>
    <li class="page_item"><?php wp_list_categories('style=none&hide_empty=0&show_count=1&title_li=&include=5&feed_image=,property=default.jpg'); ?></li>

    Anyone have any ideas?

  • The topic ‘Permalinks kills custom “no posts in this category” theme element’ is closed to new replies.