John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Custom Post Type page as rootA root page must be of the page post type, at least how it is defined and presented in the settings page. In theory, the core of Breadcrumb NavXT supports using a CPT as a “root page” of a post type. That said, said ability isn’t something that is easy to really get to at the moment. Adding support in the settings page should be possible. Though, to keep the root page list reasonable, enabling would have to be on a per post type basis (for both the post type that is able to be root page and the post types it is allowed to be a root page for) likely via a filter.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Term slug in breadcrum linksThe available template tags are covered in the “Templates” section of the Breadcrumb NavXT Documentation: https://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/#using_bcn_settings
There isn’t a dynamic tag for %term_slug%, and while you can add your own template tags, I would not recommend that for this case. Instead, you should use the appropriate WP filter to get the
get_term_link()function to return your custom link structure. This method will allow you to use the standard breadcrumb templates, and the other links generated for that term in WordPress will have the custom structure as well.Forum: Plugins
In reply to: [Breadcrumb NavXT] PHP WarningsOk, in the ideal case, knowing what exactly triggered the behavior can help try to prevent it (could be something that wasn’t caught properly elsewhere). I will be reworking that area of the codebase for the next release and can make it so this warning shouldn’t be possible.
Using the behavior that is built into Breadcrumb NavXT, you would need restaurant to be a child of the location term to have this sort of behavior. Otherwise, the uManager extension plugin will allow you to set multiple taxonomies to include in the breadcrumb trail (and for you to set the order of display of the taxonomies).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Add shop catalog link in woocommerce search breadcrumbsTo translate the root page for the products, you’ll need some extra code to do the product root page translation mapping. The Breadcrumb NavXT WPML Extensions plugin will do this for you. Potentially, the WPML WooCommerce Multilingual may do this as well (I did not try that one so I can’t verify).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Fatal Error > v6.6.0: setting_bool::__construct()Looking at this more, it looks like the problem is something with your setup. I can not prepend the default classes with
\in PHP 7.0 and newer. Are you sure that PHP 7.4.28 is actually being used (by chance is some other, potentially older, version loading)? I set my testbed to use PHP 7.4.28 in fpm (fcgi) and apache2 2.4.46 and am not seeing the behavior you are describing. Do you have any information regarding your PHP config file/setup as my PHP config file is using pretty much the default settings that my distro suggests (funtoo/gentoo).Forum: Plugins
In reply to: [Breadcrumb NavXT] Fatal Error > v6.6.0: setting_bool::__construct()So, that’s interesting. It appears your install is being extra sensitive to namespacing/not behaving as other installs do regarding namespacing (normal/built-in classes aren’t being recognized). This is odd as in most PHP installs the built-in classes can’t be namespaced (triggers an error, that is
mtekk\adminKit\setting\stringcould never be a valid class name). I can think of a way to try clearing this up (prefix all default class references with\) though I will need someone that is actually experiencing the issue to test it (or will have to figure out why some PHP installs can do this). I’m tracking this in the following github issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/275Forum: Plugins
In reply to: [Breadcrumb NavXT] PHP WarningsWhat kind of page are you visiting when you see this warning? For some reason the queued object ended up being null instead of the expected instance of
WP_Post.Forum: Plugins
In reply to: [Breadcrumb NavXT] Not Compatible with latest wordpress versionBreadcrumb NavXT 7.0.2 should work with the latest WordPress release (5.9.2). Additionally, Breadcrumb NavXT 7.0.2 should work with PHP8. If you run into any PHP errors or warnings caused by Breadcrumb NavXT when running on PHP8, please let me know.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Category Archive Page Crumbs Not ClickableThe first thing I would check is to see what actual HTML is being generated by Breadcrumb NavXT. It is possible that the proper markup is being generated but something else (usually broken CSS styles) causing the links to not be clickable. Another possibility is you only have the archive page in the breadcrumb trail and do not have the “link current item” setting enabled (resulting in a breadcrumb without a link).
It looks like the theme itself has some level of support for Breadcrumb NavXT and is adding it to the individual post pages. If you want the breadcrumb trail (of just ‘home’) to show up on your home page, you may need to copy the calling code your theme uses in the single.php file (or potentially some other theme file) and add it to the appropriate location in your theme’s index.php (or potentially home.php).
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to get optionsI’m not sure how you currently doing this. So, I will point out the
bcn_breadcrumb_trail::fill_REST($item)function which is likely an easier way to end up with the breadcrumb trail you want. You just need to pass in an instance ofWP_Post,WP_Term, orWP_User(for a post, you’d useWP_Post, something like using the result ofget_post(POST_ID)should work) and it will populate the breadcrumb trail (you’ll need to call a display function after). This should still use the settings from the settings page.Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs with a dropdownSo, that looks like the way Windows Explorer works, which the article I linked to provides a run down of how to achieve it. The gist is you need Breadcrumb NavXT Multidimension Extensions: https://wordpress.org/plugins/breadcrumb-navxt-multidimension-extensions/ to provide the markup and then some styling to handle the display.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to remove ‘sites’ from Multisite breadcrumb?Hmm, that should have been either the “Home Breadcrumb” or the “Main Site Breadcrumb” that affected this. Also note, if you wanted that breadcrumb to say Home, instead of the site name, replace %htitle% and %title% in the Home breadcrumb template(s) with Home.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to get optionsI don’t quite understand your request. Are you talking about something in the Breadcrumb NavXT settings screen? Are you wanting to grab the settings programmatically via PHP (not recommended)? Or, are you looking for something else?