Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Havlik

    (@mtekk)

    It depends on the exact behavior you are looking for. If you only want to show category1 (even if the structure would normally be mysite/comepage1/parentcategory1/category1/post), then you are not really looking for breadcrumb trail, and may be suited better by some custom code using the applicable WordPress Template Tags.

    If you just don’t want the home, blog, and current item breadcrumbs, then you will need to uncheck the checkboxes next to “Place the home breadcrumb in the trail.” and “Place the blog breadcrumb in the trail.” (under the general tab of the Breadcrumb NavXT settings page). To remove the current item, you will need this extension plugin: https://github.com/mtekk/Breadcrumb-NavXT-Extensions/blob/master/breadcrumb_navxt_remove_curitm.php

    Thread Starter Nikodemsky

    (@nikodemsky)

    Just as you said, i was looking more for “go back to parent” button with parent name and i used for that:

    <?php if($post->post_parent) {
    $parent_link = get_permalink($post->post_parent); ?>
    <a href="<?php echo $parent_link; ?>"><?php
    $parent_title = get_the_title($post->post_parent);
    echo $parent_title;
    ?></a>
    <?php } ?>

    Problem started with woocommerce and I have no idea how to call(or rather print) category parent name for it, but that is not a thead for this plugin i suppose.

    Anyway thanks for the answer ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Show parent category/page only?’ is closed to new replies.