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

    (@mtekk)

    You just need to wrap the call to bcn_display() with an if statement that checks that the current post is a member of the custom post type for WP Job Manager. So, you’ll need something like (where WPJOBMANAGERPOSTTYPE is the post type you want the breadcrumb trail to appear on):

    if ( ‘WPJOBMANAGERPOSTTYPE’ == get_post_type() )
    {
    bcn_displat();
    }
    Thread Starter GrueneRaider

    (@grueneraider)

    Well, I’m not a php code guy. So do I copy and paste that code above? And if so, where?

    Plugin Author John Havlik

    (@mtekk)

    In the code above, you will need to replace the WPJOBMANAGERPOSTTYPE portion with the actual post type name for the WP Job Manager job post type (you will have to look that one up). This will replace your current call to bcn_display(). Please note that there is a typo in my first reply, bcn_displat(); should be bcn_display();.

    If you are using the included widget to display the breadcrumbs, you will need to have a custom sidebar area for the pages that display WP Job Manager posts (this is something you will have to do to your theme).

    Thread Starter GrueneRaider

    (@grueneraider)

    Well, I don’t trust myself trying to do this myself, so I’m not sure what else to do.

    Where is the current call located?

    Plugin Author John Havlik

    (@mtekk)

    The current call to bcn_display() is likely somewhere in your currently active theme. Where exactly depends on the theme.

    gstar

    (@gstar)

    I am trying to achieve the same thing. Have you found a way around this?

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Only want to show Breadcrumbs on "Jobs" posts’ is closed to new replies.