• I’ve been developing a theme for the past month and I recently found myself having some problems with the categories pages.

    To start, the site contains only categories, no pages which I realize now may have been a huge mistake. The navigation is also category driven and has drop downs for each of the child categories.

    I’ve created a category template for each parent category which works exactly as expected but my problem is with the children. When clicking through to a child category I am taken to the default category template category.php which isn’t displaying any of the child category content.

    The following is the source for this problem:
    <?php query_posts(‘category_name=attendee_news’); ?>

    So my question is how should I go about making the default category template direct to the category id which is shown in the URL? So when the user clicks on a child category from the main navigation they are taken to that appropriate page?

    Any insight would be greatly appreciated!

    Thanks!

Viewing 1 replies (of 1 total)
  • Thread Starter cncpts

    (@cncpts)

    Well, I found a solution to my own problem.

    I replaced the old query_post with:

    <?php query_post(‘cat=’.$cat.”);?>

    This works well except now it seems the default category template is overwriting the parent category templates i’ve set up so it only displays content from the parent category, not the children.

    Anyone know how to fix that problem?

Viewing 1 replies (of 1 total)
  • The topic ‘Category Navigation & Template Issues’ is closed to new replies.