John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] breadcrumbs url not matching product page breadcrumbsThis is due to the way Breadcrumb NavXT handles the situation when a post (instance of some post type) is a member of multiple term hierarchies for the taxonomy selected for that post type’s hierarchy. Since WordPress itself does not specify (or even have the concept of) a preferred term, Breadcrumb NavXT picks the first term, from the list WordPress provides, that has a parent. There is a way to control this behavior via the
bcn_pick_post_termfilter. There are plugins that provide interfaces in the post editor to facilitate this. For example, the Order Bender plugin (see https://github.com/mtekk/Order-Bender) provides a metabox in the post editor that allows you to set a preferred term. Breadcrumb NavXT Paths is another option (a premium plugin), which contains more features than Order Bender.Forum: Plugins
In reply to: [Breadcrumb NavXT] Custom posts usageBreadcrumb NavXT supports custom post types to the same extent that WordPress core does, and has for quite some time. Is there some specific configuration that you intend to use are are worried about?
Forum: Plugins
In reply to: [Breadcrumb NavXT] changing category to page in breadcrumbAssuming the title for both the category and page for the category is the same, using the
bcn_breadcrumb_urlfilter, you can change the URL in the breadcrumb trail to link to the page instead of the category archive. This will require some custom code to achieve (could map based on the title, or add a metabox for the term editor and map using term_meta). If you don’t want to write any code to do this, the Breadcrumb NavXT Paths extension provides a metabox in the term editor for mapping terms to pages in Breadcrumb NavXT.Forum: Plugins
In reply to: [Breadcrumb NavXT] Getting same title on another page as of blogs pageCheck the settings for the post type used by the forums (probably forums and topics if it is like bbPress). You may need to set the root page. I’m not familiar with DWQA Questions so I’m not sure how it is actually doing things. If it is working like bbPress, you will probably want to grab the development version of Breadcrumb NavXT on GitHub (some changes were made on how the “post parent” hierarchy choice works).
Forum: Plugins
In reply to: [Breadcrumb NavXT] A critical error blocking multisite users to loginIt looks like your site is missing the built-in administrator role. While that config is not recommended, it has been fixed in the master branch on GitHub and will make the next release. For reference, this was tracked in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/243
Forum: Plugins
In reply to: [Breadcrumb NavXT] Remove “Articles by:” on Author templateIf you’re just trying to remove the “Articles by:” text, it’s probably easier to go in the Breadcrumb NavXT settings, and under the Miscellaneous tab, edit the “Author Template (Unlinked)” and “Author Template”. Remove the “Articles by:” from both, and then press the “Save Changes” button on the bottom of the page.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Can’t find the widget ?The Breadcrumb NavXT widget is a WordPress Widget that is available under Appearance > Widgets in your WordPress admin area. Regarding WooCommerce compatibility (it is fully compatible, functionality depends on Breadcrumb NavXT settings), please see this article: https://mtekk.us/archives/wordpress/plugins-wordpress/breadcrumb-navxt-and-woocommerce-compatibility-tips/
- This reply was modified 5 years, 11 months ago by John Havlik. Reason: rewording for clarification
Forum: Plugins
In reply to: [Breadcrumb NavXT] How can I control the block of Breadcrumb Trail?bcn/breadcrumb-trailshould be the name of the block. As to how to remove it, I assume there is a filter withinregister_block_typethat would let you do that.Forum: Plugins
In reply to: [Breadcrumb NavXT] Only show the two closest categoriesI don’t really recommend doing this, but it is possible. You can remove breadcrumbs as you please using the
bcn_after_fillaction, you will need to remove the ones you don’t want from thebreadcrumbsmember array of thebcn_breadcrumb_trailobject passed into the action.Forum: Plugins
In reply to: [Breadcrumb NavXT] remove links from unused pagesWhile you really shouldn’t have unlinked items in your breadcrumb trail, you can use the
bcn_breadcrumb_linkedfilter to force any breadcrumb in the trail to be unlinked. The following article contains an example of using this filter: https://mtekk.us/archives/guides/remove-the-link-in-a-breadcrumb/Forum: Plugins
In reply to: [Breadcrumb NavXT] How to remove date (month, day) from post URLThe best thing to do is to search the .php files in the theme for
bcn_display. If that isn’t found in the theme, the breadcrumb trail is likely not by Breadcrumb NavXT.Forum: Plugins
In reply to: [Breadcrumb NavXT] CPT with another cpt in trailThe current release doesn’t exactly support post type jumping. However, changes are being made for the next release (already implemented in the version on GitHub) in order to support this behavior since bbPress uses it.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Show breadcrumbs only on specific pageYes it is possible, but how it is accomplished depends on how you are calling the breadcrumb trail. For must users, that are using the
bcn_display()function, if it is located in a file that is used in all theme files (e.g. something like in your theme’s header.php), then you can surround the call with a check for the appropriate conditional check.<?php if(function_exists('bcn_display') && (is_singular('foo') || is_tax('flavor'))):?> <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/"> <?php bcn_display();?> </div> <?php endif; ?>Where foo is the post type you care about and flavor is the taxonomy you care about. You can chain additional conditional tags by ORing them to the existing conditional check.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Removing breadcrumbs from home pageTry:
<?php if(function_exists('bcn_display') && !is_front_page()):?> <div class="breadcrumbs" typeof="BreadcrumbList" vocab="https://schema.org/"> <?php bcn_display();?> </div> <?php endif; ?>I assume you grabbed that from the FAQ, there currently is a bug in WordPress and SyntaxHighlighter that messes up code in posts (adds HTML entities when that should not be done in code blocks).
Forum: Plugins
In reply to: [Breadcrumb NavXT] How to set bradcrumb name with permalinkIt is possible to use an alternate title for breadcrumbs. However, the way you’re trying to do it won’t work (
%permalink%is not a valid Breadcrumb NavXT breadcrumb template tag). You will need to hook into thebcn_breadcrumb_titlefilter and replace the long title with a shorter one. If you don’t want to write the code yourself, the Title Trixx premium extension provides an interface within the post and term editors to accomplish this.- This reply was modified 5 years, 11 months ago by John Havlik.