Support » Fixing WordPress » Breadcrumb trail displaying a duplicate "home" page/blogroll

  • Hi,
    I’m having trouble with my breadcrumb trail, or rather what it displays. I think I understand what’s happening but not how to control it. Here’s the situation (hopefully this isn’t too complicated): I have a page titled Home it is set to display when you first visit the site (basically be the index.html file). Under Settings > Reading, I have “Front Page Displays” set to “A Static page” with “front page” left alone and “Posts Page” set to “Home”. Here’s a screen shot of it if that didn’t make sense reading settings It seems counterintuitive. I would like Home to be the latest posts but I think the reason this is how it’s set, and working, is because I use a query on my main index.php that Home is pulling. The query pulls posts from category 4 (which is named “blog”), here’s the code:

    <?php $my_query = "showposts=5&cat=4&paged=".get_query_var('paged'); $my_query = new WP_Query($my_query); ?><!-- Calls the main blogroll category -->
    	<?php if ($my_query->have_posts()) : while ($my_query->have_posts()) : $my_query->the_post(); ?>

    so far so good? I added dimox breadcrumbs to my single.php to show users where they are. Here’s the code:

    <?php if(have_posts()) : while(have_posts()) : the_post(); ?><!-- Starts the loop -->
    <?php if (function_exists('dimox_breadcrumbs')) dimox_breadcrumbs(); ?><!-- Shows a breadcrumb link trail -->

    Here’s where the problem comes in. The breadcrumb shows something like this: “home >> blog >> Postname” Which is sort of ok, however “home” is my actual home page where they should want to go back to. If they click on “blog” they’ll go to a page that looks almost the same as if they clicked on “home”, all the same posts would be there, however on “home” i have feature images placed that appear on the post excerpts. If they click “blog” those images aren’t there. Basically their given access to an archive of the category 4 ( I think…).
    So my question is how do I make it display just “home >> postname ” ? I suppose in the end I could just pull them out. They’re not completely necessary since the user won’t ever go that many levels deep in the navigation.
    Any help would be greatly appreciated. Thanks so much for taking the time to read this lengthy explanation. Here’s a link to the site. GTSB

  • The topic ‘Breadcrumb trail displaying a duplicate "home" page/blogroll’ is closed to new replies.