WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
Remove 'portfoloio-view' from url in breadcrumb (2 posts)

  1. damfino52
    Member
    Posted 1 year ago #

    have installed a new template that has Portfolio posts in in.

    However, it gives a url of :

    http://www.sitename.com/portfolio-view/post

    How do I hide the 'portfolio-view' so that it only shows the post part?

    http://www.sitename.com/post

    This is the CSS code I have which seems to suggest portfolio-view shouldn't be visible but it is:

    'rewrite' => array('slug'=>'','with_front'=>false),
    Permalinks is:
    /%postname%/

    http://wordpress.org/extend/plugins/breadcrumb-navxt/

  2. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    Breadcrumb NavXT uses the WordPress API for generating all URLs, so you'd have to hook into those properly. Functions to look at are get_term_link(), get_permalink(), get_home_url(), get_year_link(), get_month_link(), get_day_link(), and get_post_type_archive_link(). Note that the fist two are the ones you'll most likely run into.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic