John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Generates multiple span (itemListElement)Can you link to an example of exactly what markup is being generated by Breadcrumb NavXT? I’m wondering if the tags are nested or not. If they are ’empty’ as in there is the span opening and closing span tag, it may be either the template for the resource is missing the
%htitle%and/or%title%template tag, or for some reason Breadcrumb NavXT thinks there are more breadcrumbs that should be in the trail but isn’t finding a valid title (knowing what kind of page/resource this is on would help as well, was it a term archive, a post (instance of a CPT), something else).A few things you could try:
- Resetting the Breadcrumb NavXT settings by visiting the Breadcrumb NavXT Settings page, clicking on the help tab (in the upper right hand corner of the screen), and using the Import/Export/Reset form. If the problem goes away with doing this, one of the breadcrumb templates had issues.
- Disabling all other plugins. If the problem goes away it’s likely some sort of conflict with some other plugin. Re-enabling the other plugins, one-by-one, until the problem re-appears. After identifying the offending plugin, further investigation into what caused the unexpected interaction can be performed.
- If disabling all other plugins didn’t fix the issue, try using of the default WordPress themes (Twenty *). If the problem goes away it’s likely some sort of conflict with your theme.
Forum: Plugins
In reply to: [Breadcrumb NavXT] E_ERROR after updateThe goal is to get 7.1 released around 2022/7/5. For the time being, the development branch can be tried (available on GitHub: https://github.com/mtekk/Breadcrumb-NavXT/tree/swimmer), it’s more of an alpha than beta, but as long as you aren’t trying to use the import/export feature (where things are currently being worked on), things should work fine.
Forum: Plugins
In reply to: [Breadcrumb NavXT] E_ERROR after updateThis is likely due to some code adding a custom post type at a time that is too late for Breadcrumb NavXT to pick up on (after init level 9000). The next version of Breadcrumb NavXT (7.1) will warn you about the offending post type (and not attempt to generate settings for it).
Forum: Plugins
In reply to: [Breadcrumb NavXT] WordFence locked me for XSS using pluginWordfence is likely being way too restrictive. It sounds like it is miss-identifying the HTML in the breadcrumb templates as a script. This is likely a false-positive. If you want, you can check the breadcrumb template values against the defaults:
Un-linked default:
<span property="itemListElement" typeof="ListItem"><span property="name" class="%type%">%htitle%</span><meta property="url" content="%link%"><meta property="position" content="%position%"></span>Linked default:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to %title%" href="%link%" class="%type%" bcn-aria-current><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span>An additional note, Breadcrumb NavXT runs all settings that can contain HTML through
wp_ksesto ensure only a small valid subset of HTML tags and attributes are allowed to actually be saved to the database or presented to users (scripts are not allowed).Forum: Plugins
In reply to: [Breadcrumb NavXT] How to set in the theme “Twenty Twenty-Two”So Twenty Twenty-Two isn’t a traditional theme. It is a block theme which relies on blocks and doesn’t have the traditional .php template files. Luckily, Breadcrumb NavXT does include a block, so you will need to use that. You can add it within the new theme editor (for example, within the header block group, press the + to add a block and select “Breadcrumb Trail”). I’ll work on a guide on how to do this with pictures or a screen capture video. Once you see it, it should make a lot of sense even if it doesn’t initially.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumb Not Showing on postsMy guess is that where you placed the call to
bcn_display()is only working on pages and archives. As I’m not familiar with your theme and exactly where you placed the call tobcn_display(), my guess is you added it to the theme’s header file (likely header.php), and, for some reason, posts don’t use that header file. You may need to check out your theme’s template files for posts (typically single.php or single-post.php) and either see what it uses for it’s header, or add thebcn_display()call to that file as well.Forum: Plugins
In reply to: [Breadcrumb NavXT] Fatal error while importing or exporting settingsIt looks like the introduction of namespacing for all of the adminKit classes in 7.0 broke the XML import/export functions. Thanks for reporting this, I am tracking it in the following GitHub issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/278
Forum: Plugins
In reply to: [Breadcrumb NavXT] Create custom name and link structureIt depends on exactly what you want and what ‘best’, ‘shoes’, and ‘red’ are. If ‘best’ and ‘shoes’ are members of different taxonomies and ‘red’ is a post (of any post type), then you can get Breadcrumb NavXT to generate a breadcrumb trail that has ‘best’ as the parent of ‘red’ instead of ‘shoes’. However, the actual URLs will be based on whatever WordPress generates for ‘red’, ‘shoes’, and ‘best’.
Forum: Plugins
In reply to: [Breadcrumb NavXT] store categories do not see the linksBreadcrumb NavXT uses the WP API function
get_term_link()to get the URLs for all taxonomy terms (tags, categories, custom taxonomy terms). If the breadcrumb trail itself is displaying correctly, the correct breadcrumbs are present but the URLs are incorrect, then whatever is creating the terms/dealing with the term filtering isn’t appropriately modifying the URL returned byget_term_link. You probably will have to write a filter forget_term_linkto get it to return the desired URL.Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “itemListElement”The default markup should not have these issues as of 6.5.0. That said, potentially something is slight amiss in your settings. You can either try resetting them (through the Help tab in the Breadcrumb NavXT settings page), or reference my reply from a similar support thread a while back: https://wordpress.org/support/topic/missing-field-itemlistelement-5/#post-14291139
Specifically, check your breadcrumb templates to ensure the “unlinked” templates are similar to the following:
<span property="itemListElement" typeof="ListItem"> <span property="name">%htitle%</span> <meta property="url" content="%link%"> <meta property="position" content="%position%"> </span>Commonly, the home breadcrumb template not following this format (%htitle% can be replaced with Home if you wish) can cause the itemListElement error.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Category missing in the breadcrumb trialLooking at the linked page, it appears that this is an instance of the WordPress built-in “Page” post type. Within Breadcrumb NavXT, this post type is only allowed to follow a post-parent hierarchy (since it can be a root for other post types). If you want to use categories with your posts, I suggest using the build-in “Post” post type, or use a custom post type rather than trying to use categories with the Page post type.
uManager specifically allows you to set multiple taxonomies (hierarchical and non-hierarchical) and the priority (order) that the taxonomies are used in the post hierarchy (it will allow you to use both the restaurant and the location taxonomies in your breadcrumb trails and set the restaurant taxonomy to show up closer to the current item).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Page Schema Format IssueWhen using a JSON-LD schema graph there are a couple of things you should keep in mind. First, you probably want to make sure Breadcrumb NavXT doesn’t have the schema.org BreadcrumbList markup to prevent some goofy errors. Second, when using Yoast SEO, you may need the following extension plugin: https://github.com/mtekk/Breadcrumb-NavXT-Schema to use the Breadcrumb NavXT generated BreadcrumbList instead of the Yoast SEO one in the JSON-LD schema graph.
That all said, the specific JSON-LD schema graph entry you’re wondering about probably isn’t being generated by Breadcrumb NavXT (unless you’re using the Schema add-on).
Since the /blog page does exist, is there a reason that you are not using the WordPress feature under Settings > Reading to set the “posts page” to “blog” and not have these two separate entities with one that is “hidden”?
Forum: Plugins
In reply to: [Breadcrumb NavXT] About the link destination of the categoryBreadcrumb NavXT uses the WordPress function
get_term_linkto get the link to categories (and all other terms). If you don’t want “category/” in your category permalinks in Breadcrumb NavXT you should getget_term_linkto return the permalink without “category/” in it using the appropriate filter (likelyterm_link).Forum: Plugins
In reply to: [Breadcrumb NavXT] Compatible with 5.9?Yes, this should be compatible with WordPress 5.9 (there are no known issues with Breadcrumb NavXT 7.x and WordPress 5.9).