Forum Replies Created

Viewing 15 replies - 166 through 180 (of 2,399 total)
  • Plugin Author John Havlik

    (@mtekk)

    Looks like you have some ModSecurity rules that are tripping on a meta tag 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).

    Plugin Author John Havlik

    (@mtekk)

    So, 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.

    Plugin Author John Havlik

    (@mtekk)

    Yes, 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 function array_splice on the passed in breadcrumbs member of bcn_breadcrumb_trail to inject new instances of bcn_breadcrumb into the breadcrumb trail at the position of your choice.

    Plugin Author John Havlik

    (@mtekk)

    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.

    Plugin Author John Havlik

    (@mtekk)

    The 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_box function. The call to wp_dropdown_pages may 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).

    Plugin Author John Havlik

    (@mtekk)

    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).

    Plugin Author John Havlik

    (@mtekk)

    Thanks 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.

    Plugin Author John Havlik

    (@mtekk)

    For 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).

    Plugin Author John Havlik

    (@mtekk)

    For 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.

    Plugin Author John Havlik

    (@mtekk)

    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 Lynx
    Plugin Author John Havlik

    (@mtekk)

    Thanks 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.

    Plugin Author John Havlik

    (@mtekk)

    A 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).

    Plugin Author John Havlik

    (@mtekk)

    This 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-current implements 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 Lynx
    Plugin Author John Havlik

    (@mtekk)

    I 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 Lynx
    Plugin Author John Havlik

    (@mtekk)

    In 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).

Viewing 15 replies - 166 through 180 (of 2,399 total)