WordPress.org

Forums

[Plugin: Breadcrumb NavXT] outside of wordpress (4 posts)

  1. Jorge A. Gonzalez
    Member
    Posted 5 years ago #

    I'm building content that is outside of wordpress core page / post. is there a way to add to the breadcrumb above:

    require($_SERVER['DOCUMENT_ROOT'] . '/wp-blog-header.php');
    get_header();

    http://www.zeropaid.com/wp-content/links/add.php

    so for example i would like to add to the existing breadcrumb array.

  2. John Havlik
    Member
    Posted 5 years ago #

    The best thing to do is let WordPress do the CMS stuff with posts/pages/etc, and add advanced features using either plugins, custom templates for certain pages, and/or use the shortcode api. For the linked page, you should have it as a page, and use a shortcode to load the custom form in. As soon as you start trying to combine non-WordPress things you will run into inconsistent and 'interesting' behavior.

    Dependency wise, at the moment the bcn_breadcrumb_trail class depends on WordPress (or rather functions provided by WordPress and the $post variable).

  3. iron77
    Member
    Posted 5 years ago #

    I'd say the quickest way would be to do it just by custom page tempalate. If it's gonna be used only at this particular page, then the shortcode is not necessarily needed I think?

  4. John Havlik
    Member
    Posted 5 years ago #

    iron77,

    Yeah that is correct.

Topic Closed

This topic has been closed to new replies.

About this Topic