John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breacrumbs not showing upIn general, after installing and activating the plugin, you will still need to call the breadcrumb trail. Your options are using the built-in widget, the built-in gutenberg block, or calling
bcn_display()within your theme. Looking at the linked site, it appears you may have already discovered this. Are you still experiencing a problem displaying the breadcrumb trail?Forum: Plugins
In reply to: [Breadcrumb NavXT] Link problem in breadcrumbsWell, you could use the
bcn_breadcrumb_urlfilter to change the URL in the breadcrumb trail for the category to the correct page. See the following article for an example of how to do this: https://mtekk.us/archives/guides/link-to-a-page-rather-than-the-category-archive-in-a-breadcrumb/If you don’t want to write code to implement this, the Breadcrumb NavXT Paths (premium) extension provides a metabox in the term edit screen to map a term to a page.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Exclude taxonomy term in breadcrumbIs the taxonomy a hierarchical or non-hierarchical taxonomy? Based on the terms you listed, I assume it’s a hierarchical taxonomy. If that is the case, you can use the
bcn_pick_post_termfilter to force a different term to be picked when term id=3 is set.add_filter('bcn_pick_post_term', 'my_bcn_term_filter', 3, 10); function my_bcn_term_filter($term, $post_id, $post_type, $term_taxonomy) { if($term->term_id === 3) { $term = get_term($term->parent, $term->taxonomy); } return $term; }The above example assumes the term you don’t want to use has the term_id of 3, and you wanted to use its parent instead. This can be modified for other term selection behaviors depending on exactly what behavior you want.
Well this is interesting. I can see why an PHP notice would be thrown, I just am not sure how to get a page to actually trigger those conditions. Specifically, I’m not sure why the
is_post_type_archive()is returning true for you on the post post type archive (is_home()is the only conditional returning true on my testbed). Is there anything else, code wise, unique about this site (any other plugins or any custom code running on the site)?Forum: Plugins
In reply to: [Breadcrumb NavXT] Not showingAssuming what you copied and pasted in the comment is what you are seeing, the problem is the & gt;. As to how that is appearing, I can think of a couple of ways. The first is that wherever you copied the calling code from and then pasted into tried to “help” you and tried turning something into an HTML entity instead of the raw characters. This could be due to either a text editor doing something goofy (the built in WordPress plugin/theme/code editor could potentially do this) or if you are using a plugin that lets you execute PHP wherever you want rather than editing a .php file.
- This reply was modified 5 years, 3 months ago by John Havlik.
- This reply was modified 5 years, 3 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Separator sizeWell, there are a couple of ways to achieve this. They all involve CSS. If you don’t want to modify the Breadcrumb NavXT settings, you should be able to scale up the text size of everything in the breadcrumb trail, then target the
spanelements that surround the breadcrumbs and set them to a smaller size (best if you use one of the relative size units). Otherwise, you could change the separator setting in Breadcrumb NavXT to include a wrapping tag (e.g.spanwith a class set so it can be easily targeted) and then use CSS to target that element and set it’s size.Forum: Plugins
In reply to: [Breadcrumb NavXT] 403 Forbidden When Adjusting SettingsNormally, when you get a 403 error, the issue usually a WAF, such as ModSecurity not liking the post request. I recommend checking your web server’s access and error logs to see if this is the case (usually ModSecurity will say in the error log what rule you tripped).
Forum: Plugins
In reply to: [Breadcrumb NavXT] About multi-levelThis is possible as long as a couple of conditions are met. The first is that the child post’s post_parent field set to the id of the parent post. Secondly, the parent post needs to be a member of the child category. Lastly, the category taxonomy type needs to be set as the Hierarchy for the post type in question in the Breadcrumb NavXT settings page.
Provided the above is true, then you can use the “Hierarchy Use Parent First” setting for the specific post type within the Breadcrumb NavXT settings page to enable the type of breadcrumb trail you are after.
Forum: Plugins
In reply to: [Breadcrumb NavXT] PHP 8 Warning: $endpoint and $args parametersThanks for trying Breadcrumb NavXT on PHP8. Another user had previously reported this warning (see https://wordpress.org/support/topic/php-8-0-compatibility-2/) and the issue will be fixed in the next release (will likely be released sometime in April).
- This reply was modified 5 years, 3 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to Add BreadcrumbsThe code under the section that I linked to in that document calls Breadcrumb NavXT and did not appear to rely on any other plugin code (I didn’t see anything specific to All in One SEO Pack in that section).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Customize Breadcrumb for Default Post Archive PageFor the built-in Post post type, the root page/archive is controlled by the “Your homepage displays” setting under Settings > Reading. You need to have a “Posts page” set. At that point, the breadcrumb for the Post post type archive will be added to the breadcrumb trail.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to Add BreadcrumbsIt looks like the theme documentation you linked to covers using Breadcrumb NavXT in the “All in One SEO pack plugin” section: https://www.wplogout.com/add-breadcrumbs-in-generatepress-theme/#How_to_Add_Breadcrumbs_in_GeneratePress_using_All_in_One_SEO_pack_plugin I guess I’d follow what that section says to do.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs Not Showing on MarketplaceOn the WooCommerce pages, is there any evidence in the generated markup that the extras.php is being used (e.g. is the breadcrumbs div there)? It’s possible that there are WooCommerce specific theme files (either for the theme itself or in your child theme) that for one reason or another don’t pull in extras.php for the header.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumb NavXT uManager not working anymoreHonestly, this is not the correct spot to seek support for premium extensions. The site you purchased the license from should have a support form that you can use.
Also, I double checked on my local testbed with the latest WordPress and Breadcrumb NavXT version. Breadcrumb NavXT uManager still works, including the shortcode. My assumption is something changed on your site that is preventing shortcodes from rendering. The site you linked to doesn’t appear to be exhibiting an issue here so it’s difficult to speculate what exactly was causing shortcodes to not render.
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to move breadcrumbs below page contentHow are you currently calling the breadcrumb trail? Typically, a call to
bcn_display()is added to the the appropriate theme file. Alternatively, the call tobcn_display()could be used within a wrapper function (so that you can add the proper wrapping HTML tags). If that’s how it already is being called, all you have to do add that function to thegenesis_after_entryaction. You’ll need to add that custom code to a small, site specific plugin (quite simple, and the best place for many of these small code snippits instead of your theme’s functions.php).