John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Structure Data Testing Tool ErrorThis is likely caused by the default unlinked templates used in Breadcrumb NavXT pre 6.2.0. See https://wordpress.org/support/topic/breadcrumblist-errors-on-the-last-item-because-it-is-missing-the-item-tag/#post-10638393 for more information as to what is going on. The jist is you should set the “unlinked” breadcrumb templates to %htitle%.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Breadcrumbs NavXT does not show breadcrumbsJust to follow up, the saving the settings issue was a bug introduced in 6.2.0 regarding how default settings were generated for hierarchical CPTs. This has been fixed in the GitHub master branch ans will be released as 6.2.1 this week.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Parameters for custom post type not savedThanks for reporting this. It was caused on hierarchical CPTs due to a bug introduced in 6.2.0. As outlined in this thread: https://wordpress.org/support/topic/save-problem/#post-10801939, the cause has been identified and a solution is now available in the GitHub master branch and will be releasing 6.2.1 this week.
Forum: Plugins
In reply to: [Breadcrumb NavXT] The following settings were not saved:Everyone, thanks for reporting this. As outlined in this thread: https://wordpress.org/support/topic/save-problem/#post-10801939, the cause has been identified and a solution is now available in the GitHub master branch and will be releasing 6.2.1 this week.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Multiple Undefined indexThanks for reporting this. As outlined in this thread: https://wordpress.org/support/topic/save-problem/#post-10801939 I have a solution now available in the GitHub master branch and will be releasing 6.2.1 this week.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemThere should be a fixed version available up on github now.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemThanks for that, it looks like there was a bug in the handling for hierarchical CPT default settings (I was testing with non-hierarchical CPTs out of convenience which is obviously an issue). I’m now able to reproduce this locally and will be issuing an update with a fix this week (6.2.1).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemSo, looking into this, I’m unfortunately having issues reproducing it locally. The only thing I can get to show up is warnings on the frontend if the priority of the
add_actioncall on theinitaction is at 11 or “lower” (any number greater than 10). Is your call toadd_actionin a plugin, or somewhere else? Is it running within a function that hooks into an action? If so what action?- This reply was modified 7 years, 8 months ago by John Havlik.
Forum: Plugins
In reply to: [Breadcrumb NavXT] add custom link in the BreadcrumbYou can accomplish this by writing some code that hooks into the
bcn_after_fillaction that injects the breadcrumb into the trail. The following article shows one method of adding a static breadcrumb to the trail: https://mtekk.us/archives/guides/add-a-static-breadcrumb-to-the-breadcrumb-trail/However, in your case you do not want to use the
addfunction as it by default appends the breadcrumb to thebcn_breadcrumb_trial::breadcrumbsarray. Instead, you will want to inject the new breadcrumb into the appropriate location within thebcn_breadcrumb_trial::breadcrumbsarray (e.g. usearray_splice).If you don’t want to write code to do this, and your menu is already setup, Menu Magic may help you do what you want.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemThat would be it. Looks like it is probably running after the period of time the plugin checks for CPTs (as I had thought), I’m tracking this bug here: https://github.com/mtekk/Breadcrumb-NavXT/issues/210
Forum: Plugins
In reply to: [Breadcrumb NavXT] Settings not savedThanks for reporting this. I think I know what is going on and am working on a fix. I am tracking it here: https://github.com/mtekk/Breadcrumb-NavXT/issues/210
Forum: Plugins
In reply to: [Breadcrumb NavXT] Save problemIf you don’t mind, can you tell me what hook the
productCPT is registered in? I think I know what is going on, but want confirmation as to when the CPT is registered.Forum: Plugins
In reply to: [Breadcrumb NavXT] Settings not savedThanks for reporting this, and digging in a little more than anyone else had. That is interesting, in 6.2 an adjustment to when the default settings for CPTs and custom taxonomies are generated was made so that the import/export/reset function would work again. However, it appears that is conflicting with when some CPTs/taxonomies are registered. If you don’t mind, can you tell me what hook the
supporterandopportunityCPTs are registered in?Forum: Plugins
In reply to: [Breadcrumb NavXT] Options FilterYou should be able to use the already existing WordPress filter
option_bcn_options. Otherwise, you can usebcn_settings_initif the settings haven’t been set yet. I’ll look into adding a filter just beforebcn_breadcrumb_trail::fill()is called.Forum: Plugins
In reply to: [Breadcrumb NavXT] Fails Google’s Structured Data Test ToolThis was covered in two existing threads. The best answer for if you want to keep the last item unlinked is to change your unlinked templates to
%htitle%. See this reply for a little more detail: https://wordpress.org/support/topic/breadcrumblist-errors-on-the-last-item-because-it-is-missing-the-item-tag/#post-10638393