WordPress.org

Ready to get started?Download WordPress

Forums

Breadcrumb NavXT
[resolved] Problem with Permalinks (3 posts)

  1. stephen_connolly
    Member
    Posted 1 year ago #

    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/

  2. John Havlik
    Member
    Plugin Author

    Posted 1 year ago #

    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.

  3. stephen_connolly
    Member
    Posted 1 year ago #

    Thanks very much mtekk, that solved the problem.

    Regards,
    Stephen

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags