Forum Replies Created

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

    (@mtekk)

    There are a couple of ways you could achieve this, you could hook into a filter in add_query_arg(), checking for the addition of post_type as you probably want to modify this for everything. Otherwise, you can hook into bcn_breadcrumb_url and perform string manipulation to the URL. This said, you probably shouldn’t be adding [] to the URL for the post_type query arg (whatever script is needing that should probably be modified to not need it).

    • This reply was modified 6 years, 5 months ago by John Havlik.
    Plugin Author John Havlik

    (@mtekk)

    The first (the centered one) breadcrumb trail on that page appears to be from a call to bcn_display(). This is likely within one of the theme files.

    The second (the left floated/justified) breadcrumb trail appears to be due to a widget breadcrumb trail. As to why the widget doesn’t show up on all pages, that’s likely due to where the widget area is available (appears to not show up on some pages for some reason).

    My guess at what is happening is you have a couple of different templates for your pages/categories and some have a call to bcn_display(), some have the widget area, and some have both. I suggest looking through your theme’s files and see where the calls to bcn_display() are an evaluate if the should be there or not.

    Plugin Author John Havlik

    (@mtekk)

    It looks like a change made in 6.4.0 broke the way that method of removing links worked. For 6.4.0, it appears the only good way to remove the linked status is to use the bcn_after_fill action and run through the breadcrumb list using the set_linked(false) method to unlink the breadcrumbs you want unlinked. I’m thinking I need to add a filter for the newly separated off linked status (I’m tracking this in the following github issue: https://github.com/mtekk/Breadcrumb-NavXT/issues/232 )

    Plugin Author John Havlik

    (@mtekk)

    Just for clarification, are you talking about unlinking a breadcrumb (or several) in the trail on specific posts/pages, or unlinking the breadcrumb that represents a specific post/page on all trails that contain said breadcrumb?

    As for your second question, setting the breadcrumb trail to be unlinked is controlled at call time. This is done either via the second parameter to bcn_display(), or via the widget options when using the widget.

    Plugin Author John Havlik

    (@mtekk)

    You should be able to intercept the settings via the normal WordPress hooks for when the bcn_options setting get pulled from the database (e.g. you should be able to hook into the option_bcn_options filter). However, While this is possible, I do not recommend it as there is no guarantee this will stay the same from version to version. If you’re tying to migrate settings from one site to another, you can use the export/import/reset functionality in the settings page (click the help tab).

    Plugin Author John Havlik

    (@mtekk)

    I’ve pushed a change to the polevaulter branch (6.4.0 development branch) for Breadcrumb NavXT that changed the way the Attachment settings are exposed (now called Media as it goes by the new internal WordPress name). Please give this a go and let me know if it allows you to do what you’re looking for, see https://github.com/mtekk/Breadcrumb-NavXT/tree/polevaulter

    Plugin Author John Havlik

    (@mtekk)

    Depending on how your theme is structured (file wise), this may require you moving the calling code to be below the call to the_title(), which will be within your loop. It may require modifying a file that contains the loop, or edit multiple files for each post type you care about (e.g. single.php, page.php).

    Plugin Author John Havlik

    (@mtekk)

    I am having trouble understanding exactly what you are trying to do here. From the two linked screenshots, it appears you are not using your e-commerce plugin’s archives for the category archive. Additionally, it doesn’t look like you had some of the Breadcrumb NavXT settings correct for what you want given your e-commerce plugin.

    However, from what I can tell from the linked page (“The page I need help with” URL), it seems like the site works more like what you are asking for when compared to the screenshots. One thing I did notice is you have the “Hierarchy Referer Influence” setting enabled (which causes the breadcrumb trail to use the product tag if coming from the product tag archive rather than picking the first product category). Is there something else you want this to do that it currently is not doing?

    Plugin Author John Havlik

    (@mtekk)

    Normally, the attachment post type always has a parent post (of any other post type). The assumption made in Breadcrumb NavXT is that attachments will have a parent post, and that is the hierarchy that should be used. Any taxonomy terms added to the attachment are ignored in favor of using the parent post’s hierarchy.

    That said, the refactoring done in 6.0.0 makes it possible to use different hierarchies for attachments. However, the applicable settings are not made available in the settings page (as of 6.3.0). I’ll look at exposing those for the next version (I’m tracking this in https://github.com/mtekk/Breadcrumb-NavXT/issues/231).

    Plugin Author John Havlik

    (@mtekk)

    The first thing I will comment on is, based on the post breadcrumb template provided, it looks like the template are using the old breadcrumbs microformat instead of schema.org’s BreadcrumbList format (which is the format I recommend).

    For the example article, what is the breadcrumb trail generated by Breadcrumb NavXT? If you are getting example.come/news/ in Google’s SERPs and or Structured Data Testing Tool, I’d assume the breadcrumb trail only has “news” as a parent category for the post (but I could be wrong, hence the need for more information as to what you are seeing Breadcrumb NavXT generate).

    Plugin Author John Havlik

    (@mtekk)

    Since Breadcrumb NavXT hasn’t had an update in that timeframe, I would suspect something else changed. It could be a theme update, or an inadvertent change to how Breadcrumb NavXT is called in your theme that is resulting in this behavior.

    • This reply was modified 6 years, 6 months ago by John Havlik.
    Plugin Author John Havlik

    (@mtekk)

    I have not tested against Menu Plugin Mega Max, yet, so I can’t comment on compatibility with that plugin (hopefully I’ll have the time to look at this before the end of the year). As for having settings/a GUI for using an alternate title, rather than writing code that hooks into the bcn_breadcrumb_trail filter, your options are Title Trixx (uses the SEO breadcrumb title, or provides metabox for breadcrumb title if none of the supported SEO plugins are active) and Menu Magic (uses menu title and structure).

    Plugin Author John Havlik

    (@mtekk)

    Ideally, the Breadcrumb NavXT bbPress Extensions plugin would deal with this for you (but it doesn’t right now). You should be able to do something similar by manually injecting the breadcrumb for the bbPress search using the bcn_after_fill action.

    Plugin Author John Havlik

    (@mtekk)

    This is likely due to the plugin not being called correctly in your theme (if you enable WP_DEBUG you probably see a PHP error relating to bcn_display() not existing). Your call to bcn_display() should be surrounded with an if statement that checks that the bcn_display() function exists. For example you should be using something like:

    <?php if(function_exists('bcn_display'))
        {
            bcn_display();
        }?>

    for your calling code.

    Plugin Author John Havlik

    (@mtekk)

    Breadcrumb NaxXT has the bcn_breadcrumb_title filter that allows you to control (via code) the title used in the breadcrumb trail. In your case, you will need to search the menu for the menu item that represents the same resource that the breadcrumb represents to then use the menu item’s title. If you don’t want to write code to achieve this, there are premium add-on plugins that provide methods to specify alternative titles (Menu Magic will use the menu title and structure/hierarchy).

Viewing 15 replies - 526 through 540 (of 2,399 total)