John Havlik
Forum Replies Created
-
Forum: Plugins
In reply to: [Breadcrumb NavXT] Settings Save ErrorLooks like you have some ModSecurity rules that are tripping on a
metatag in the settings (in the breadcrumb templates). You’ll need to revisit your ModSecurity rules and update them to not trigger in this circumstance (logged in user in the WordPress admin area).Forum: Plugins
In reply to: [Breadcrumb NavXT] Store Page Missing Partial PathSo, what is “STORE” in this setup? It sounds like “STORENAME” is your root page for the store, if that is the case, “STORE” must be the parent page of “STORENAME” for it to show up in the breadcrumb trail. However, I may be misunderstanding what your setup is.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Add trail in specific positionYes, it should be possible to inject a breadcrumb (or several) in the breadcrumb tail using
bcn_after_fill. You should be able to use the PHP functionarray_spliceon the passed inbreadcrumbsmember ofbcn_breadcrumb_trailto inject new instances ofbcn_breadcrumbinto the breadcrumb trail at the position of your choice.There is not a root page setting for posts (the built-in post type) as WordPress already controls this under Settings > Reading. In that settings screen, there is a “Posts page” setting, that is where you set a root page for posts.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Post page hierarchyThe parent metabox allows setting a parent for the post, the reference plugin takes advantage the WordPress editor will save a parent_id for you if it is specified (so it’s literally a matter of setting the parent_id via some interface, hence the metabox).
As I mentioned in my previous reply, the reference plugin just adds the Page post type, if you wanted some other post type you need to modify what is in the
parent_meta_boxfunction. The call towp_dropdown_pagesmay need to either have a different post type specified in its arguments, or completely replaced (I don’t remember if it actually allows specifying a different post type).Forum: Plugins
In reply to: [Breadcrumb NavXT] Possible to separate terms with something other than “,”?Following up on this, I’ve opened an issue on GitHub to track adding a filter to facilitate this. The current plan is to include the new filter in the next release of Breadcrumb NavXT (version 7.2).
Forum: Plugins
In reply to: [WP Lynx] Fatal Error: class-mtekk_adminkit_setting_int.php on line 53Thanks for reporting this. In adding PHP8/8.1 support, it appears I broke PHP7 support in adminKit. I’ve fixed this in Breadcrumb NavXT (where I originally found this issue), and will issue an update to WP Lynx with the fix in the next week or so.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Post page hierarchyFor non-hierarchical post types, you need some custom code to enable a post parent metabox in the editor. A reference plugin exists on github https://github.com/mtekk/Post-Parents you may need to modify it to handle the post types you want to use (both the CPT for the metabox to show up in, and what posts show up in the parent post dropdown).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Add CPT name at the end of trailFor the Tools and Questions CPTs, if within Breadcrumb NavXT you set them their hierarchy to “post parent”, and then establish the parent<->child relationship for the Tools posts and Questions posts to match the desired Animal CPT post (same way you’re establishing the Dogs to Animals relationship), you should be able to get “Animals > Dogs > Tools Post”. If you wanted the tools archive instead of the actual post showing up in there as well, that’s going to be a bit more challenging as it’s likely you want to have Tools map to multiple animals, which isn’t a concept that is really supported for roots of a CPT within Breadcrumb NavXT.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Possible to separate terms with something other than “,”?There isn’t an easy way to do this at the moment. I’d likely need to add a filter to the
bcn_breadcrumb_trail::display_loop()function that would allow control of the separator on-the-fly. Though, I’ll need to think about this a little more to make sure enough information is passed into the filter to make what you’re asking possible.Forum: Plugins
In reply to: [WP Lynx] PHP 8 and WP LynxThanks for the feedback. I’ve fixed the cause of the PHP warning. As for the setting in the admin interface, that message can be ignored. That said, the 1.3.0 release should actually clean up that unused setting that was lingering around for some reason.
Forum: Plugins
In reply to: [Breadcrumb NavXT] Question relative to the Blog breadcrumbs settingA better way of thinking of this setting is “include Post post type root page in breadcrumb trail”. Since the WordPress built-in taxonomies (Categories and Tags) are associated with the Post post type, this setting will control the display of the “blog” breadcrumb in all three circumstances (blog posts, categories, and tags).
Forum: Plugins
In reply to: [Breadcrumb NavXT] Make Breadcrumb Output Accessibility CompliantThis should already be possible, assuming you are writing a call to
bcn_display()(the widget and the block don’t support this markup form at the moment). It appears the recommendation follows the bootstrap 4 breadcrumb format. See the calling code presented in this article: https://mtekk.us/archives/guides/breadcrumb-navxt-and-bootstrap-4-breadcrumb/As for getting the the aria-current entry, since Breadcrumb NavXT 6.3, the breadcrumb template tag
bcn-aria-currentimplements this. For example, your breadcrumb templates probably should look similar to:
<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%">Forum: Plugins
In reply to: [WP Lynx] PHP 8 and WP LynxI made a cut at updating to the latest adminKit and preliminary PHP8 support (tested against PHP8.1). You can try this out by grabbing a copy of the GitHub master branch: https://github.com/mtekk/WP-Lynx
Forum: Plugins
In reply to: [WP Lynx] PHP 8 and WP LynxIn theory, the block editor sort of already has WP Lynx like features for sites that support oEmbed. For those that aren’t using the block editor, I guess WP Lynx may still have value. I had originally intended on doing a major update to support the block editor, but I’ve found adding blocks to be a pain (especially the seemingly excessive amount of tools necessary to develop blocks) so I put dealing with this on hold. In the meantime, other things have moved on, so to speak, and look to be causing breakage (the old version of adminKit that WP Lynx uses has PHP8 problems as well). I’ll take a look at what moving to the latest adminKit will take (to fix the PHP8 errors).