WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks w/Templates = Breadcrumbs Out of Wack (4 posts)

  1. bgajus
    Member
    Posted 7 years ago #

    I have created a few template pages to pull recent posts from particular categories. For example I have a news PAGE, that uses news.php(template) and I pull posts that have the category of 'news' to that page. That all is working fine. My problem is that this really screws up my navigation/breadcrumbs.

    If you navigate to Home > Media Center > News > ...once you select the post the breadcrumb changes to Home > "Title of Post". I'm not really sure if there is a way to fix this or perhaps someone can suggest a better way for me to set up my posts to have the same funcionality. I have the same setup for Events where there is an events PAGE and using events.php template to pull any posts with the category of 'events'.

    Welcoming any advice, support, etc. on this one. Thanks!!!

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    It seems to me that you need to rework your breadcrumb code to base the trail off the category for the case of single.php pages.

  3. bgajus
    Member
    Posted 7 years ago #

    Since my breadcrumb is in the header, would I have to create another header file that single.php pulls?

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 7 years ago #

    Not necessarily. You could use an if (is_single()) type of call to do different things on single pages.

Topic Closed

This topic has been closed to new replies.

About this Topic