• Resolved rsjeyakumar

    (@rsjeyakumar)


    Thanks for giving this plugin in open source.in my project I need to hide post title when user stay in single post.how?

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

    (@mtekk)

    Well, you really should not do this, it is considered a bad practice. However, if you must, just apply the method depicted in https://mtekk.us/archives/guides/conditionally-remove-home/ but replace array_pop with array_shift. You may also need to replace the is_page call with the appropriate WordPress Conditional Tag.

    Thread Starter rsjeyakumar

    (@rsjeyakumar)

    hi mtekk
    Thanks for your reply.
    I am using this code in my function.php as you said
    `<?php add_action(‘bcn_after_fill’, ‘foo_pop’);
    function foo_pop(&$trail)
    {
    if(is_single(‘4688’))
    {
    array_shift($trail->trail);
    }
    }?>`
    After write this code , No changes in breadcrumb

    if i am in single page template
    My breadcrumb having like this blog > health > how to lead a life

    but I need like this blog > health

    Plugin Author John Havlik

    (@mtekk)

    If you placed that code in your theme’s functions.php file, then the only thing that may be incorrect is the is_single(‘4688’) part. Try removing the ‘4688’ (including quotes), see if it removes the current item’s breadcrumb for any post or “page” page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[plugin-breadcrumb-navxt ]-how to remove single post title’ is closed to new replies.