Support » Plugin: Breadcrumb NavXT » Problem with Permalinks

  • Resolved stephen_connolly

    (@stephen_connolly)


    I’m having trouble with some wordpress permalinks. See the following link:

    http://www.lornabyrne.com/newsletter-list/

    It has a list of custom post_types. If you hover over the ‘Read more –>’ link, you’ll notice that the link looks like: http://www.lornabyrne.com/newsletter/xxx-xxx-xxx-xxx-xxx

    When I click on it, it does bring me to the correct page. But on that page if you click on ‘Newletter List’ in the breadcrumb it does not bring me back to the actual list page as expected.

    Code that creates the breadcrumb:

    <div class="breadcrumbs">
                <?php if(function_exists('bcn_display'))
                {
                    bcn_display();
                }?>
            </div>

    and the code from functions.php that creates the custom post type:

    register_post_type( 'newsletter',
                    array(
                        'labels' => array(
                        'name' => __( 'Newsletter List' ),
                        'singular_name' => __( 'Newsletter List' )
                    ),
                    'public' => true,
                    'has_archive' => true,
                    'posts_per_page' => 10
                    )
                );

    So I’m just wondering what to do ?

    Regards, Stephen

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

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

    (@mtekk)

    Well, is ‘Newsletter List'(the resource pointed to by http://www.lornabyrne.com/newsletter-list/) a page? If so, and you have ‘Archive Display’ enabled for that post type within the Breadcrumb NavXT settings that’s probably the problem. Breadcrumb NavXT uses the archive page returned by the get_post_type_archive() function. If you want to use a page (in your case it doesn’t make sense as you are using it just as a archives page), then you need to set a “Root Page” for that post type (to be the ‘Newsletter List’ page) and leave ‘Archive Display’ unchecked.

    Thread Starter stephen_connolly

    (@stephen_connolly)

    Thanks very much mtekk, that solved the problem.

    Regards,
    Stephen

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with Permalinks’ is closed to new replies.