WordPress.org

Support

Support » How-To and Troubleshooting » Permalinks w/Templates = Breadcrumbs Out of Wack

Permalinks w/Templates = Breadcrumbs Out of Wack

  • 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!!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

    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.

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

    Moderator Samuel Wood (Otto)

    @otto42

    WordPress.org Tech Dude

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks w/Templates = Breadcrumbs Out of Wack’ is closed to new replies.