Jorge A. Gonzalez
Member
Posted 2 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.
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).
Andrzej Zglobica
Member
Posted 2 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?
iron77,
Yeah that is correct.