John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Current page styleIf you are using the default settings/breadcrumb templates for Breadcrumb NavXT, to target the current item, use the
.current-itemclass selector. If directly using that isn’t specific enough to prevent overriding by other styles, try.breadcrumbs .current-item. Otherwise, use you web browser’s built in inspector tool to try selectors to find what works for your situation.Forum: Plugins
In reply to: [Breadcrumb NavXT] Home link not showing in breadcrumbIt looks like your site doesn’t have a title, which the default settings try to use. Check your “Home Template” and “Home Template (Unlinked)” settings for instances of
%htitle%and%title%, replace these with what you want to show up in the breadcrumb trail for the home breadcrumb.Forum: Plugins
In reply to: [Breadcrumb NavXT] Undefined indexNormally, it shouldn’t do that on empty archive pages Regardless, the latest development version on GitHub already should have this fixed and it’ll make the next release.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Problem with forum breadcrumbsFor clarification, there was a change made to Breadcrumb NavXT (available on the in the GitHub “master” branch, see https://github.com/mtekk/Breadcrumb-NavXT/issues/244) that fixes a behavior seen with the different post types (it’s a generic change so it is in the core plugin).
Additionally, in general, you will want to check that the following Breadcrumb NavXT settings are the following:
Forum Archive Display: checked
Forum Hierarchy Display: unchecked
Topic Archive Display: checked
Topic Hierarchy Display: checked
Topic Hierarchy: Post Parent
This should, agree with the recommendations in the bbPress compatibility article.Forum: Plugins
In reply to: [Breadcrumb NavXT] Problem with forum breadcrumbsSearch should now work when using the latest version of Breadcrumb NavXT bbPress extensions from github.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Problem with forum breadcrumbsSearch and user pages within bbPress do not use WordPress post types or taxonomies, so other, very bbPress specific code has to be used to support that. Much of that belongs in the Breadcrumb NavXT bbPress Extensions plugin. It looks like search was brought up a while ago, I just have never had time to implement it (see https://github.com/mtekk/Breadcrumb-NavXT-bbPress-Extensions/issues/3). I think I have things other than search and user pages working correctly again. It does require the bbPress Extensions plugin in conjunction with a couple of changes in Breadcrumb NavXT. The Breadcrumb NavXT changes will make the next release (feature or bugfix, whichever comes first).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “itemListElement”If it is just the home page, make sure the Home Template (Unlinked) is set to something like:
<span property="itemListElement" typeof="ListItem"> <span property="name">Home</span> <meta property="url" content="%link%"> <meta property="position" content="%position%"> </span>Forum: Plugins
In reply to: [Breadcrumb NavXT] Name or Item.Name missingThat’s likely a bug in Google’s tool, it sometimes doesn’t like the current item to be linked. Traditionally, I’ve gone without a linked current item (and zero markup for it), but recently, the default unlinked templates added back the markup with a “new” way of introducing the link/@id property which seems to not have issues. Occasionally, Google’s tool can be thrown off by other rich markup that it either doesn’t understand, or if you are using multiple formats for implementing the rich markup (e.g. RDFa and microdata on the same page).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Problem with forum breadcrumbsIt sounds like something changed in bbPress since I last played with it (and the Breadcrumb NavXT bbPress extensions plugin doesn’t seem to do the correct thing any longer). I’ll have to dig into what’s going on and I’ll get back to you.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Missing field “itemListElement”Unfortunately, the URL you used in the “Page I need help with” doesn’t seem to be working (just goes to the URL shortener’s page) so I can’t examine the HTML. My guess is that you may have partial markup for the category template or category template (unlinked) setting. Double check that they are the following:
Category Template:
<span property="itemListElement" typeof="ListItem"><a property="item" typeof="WebPage" title="Go to the %title% category archives." href="%link%" class="%type%" bcn-aria-current><span property="name">%htitle%</span></a><meta property="position" content="%position%"></span>Category Template (Unlinked):
<span property="itemListElement" typeof="ListItem"><span property="name" class="%type%">%htitle%</span><meta property="url" content="%link%"><meta property="position" content="%position%"></span>Can you elaborate on what you are looking for when you wrote “I would like to show the posts page link in the breadcrumb trail”? If you are talking about the root page/archive page for the post post type, that is controlled by the “Blog Breadcrumb” setting (and should be uniformly applied to all breadcrumb trails for posts of the post post type).
It sounds like you are calling
bcn_displaywithin the loop. When you do this, you will want to set the fourth parameter totrue. That is, try using the following call:bcn_display(false true, false, true)Setting the fourth parameter to true tells Breadcrumb NavXT to re-generate the breadcrumb trail for that call of
bcn_display. By default, the breadcrumb trail is cached, which explains the behavior you’re seeing. For more information on usingbcn_displaysee it’s entry in the Breadcrumb NavXT documentation: https://mtekk.us/code/breadcrumb-navxt/breadcrumb-navxt-doc/#Usingbcn_displayandbcn_display_listI assume you are running into the same this as reported here: https://wordpress.org/support/topic/fatal-error-on-all-admin-pages-in-6-5-0/#post-13006832
The gist of the issue is, the
bcn_manage_optionscapability needs to be given to a role. Normally, the administrator role exists (it’s one of the built-in roles and there really isn’t a reason for it to not exist), so was deemed safe to add the capability to that role. However, if you don’t have that role, 6.5.0 will cause an error to be thrown. I’m going to fix that for 6.5.1, however, you will be on your own to add thebcn_manage_optionscapability to the appropriate role.- This reply was modified 6 years ago by John Havlik. Reason: fixed typo (I, for one, blame my keyboard)
Forum: Plugins
In reply to: [Breadcrumb NavXT] Fatal Error on all admin pages in 6.5.0A change was made in 6.5 to use a custom capability for the settings page rather than the built-in manage_options. To ensue a seamless transition for most users, the administrator role is automatically given this permission. However, if you don’t have an administrator role (which is very different from a user named administrator), you are going to have problems. It appears that adminKit doesn’t check that it has a instance of WP_Role, so that will change for the next release (6.5.1). That said, if you don’t have an administrator role, you will need to give one of the roles the
bcn_manage_optionscapability, otherwise you will not be able to edit the settings. Is there a reason that you’ve removed the administrator role?Forum: Plugins
In reply to: [Breadcrumb NavXT] How to remove date (month, day) from post URLRegarding settings in Multisite/Network site setups, there is a global/network settings page for Breadcrumb NavXT. Depending on the site configuration, the global settings may be overriding the subsite settings. See https://mtekk.us/archives/guides/controlling-breadcrumb-navxt-settings-from-the-network-settings-page/