Forum Replies Created

Viewing 15 replies - 31 through 45 (of 2,363 total)
  • Plugin Author John Havlik

    (@mtekk)

    Getting that warning is odd. For that to happen the ID passed in to the function was not for a post (so get_post() returned null). The only call within the plugin checks if the ID passed in is from an instance of WP_Post, so, either there is something else that made the call to the post_hierarchy() function, or something is quite broken. Eventually, that function is going to change (next major release, i.e. 8.0), in the meantime I can look at adding a check before the line of code throwing the warning.

    Plugin Author John Havlik

    (@mtekk)

    For support with the extension plugins, you should open a support ticket on the site the extension was purchased from. In general, you want to update the extensions before updating the core plugin. Also, you probably want to remove that link you have in your reply.

    Plugin Author John Havlik

    (@mtekk)

    Based on the error, double check that you are actually using the latest version of the extension (the error should not show up with version 1.5.7 of the extension).

    Plugin Author John Havlik

    (@mtekk)

    It appears the linked page still isn’t using Breadcrumb NavXT to generate it’s breadcrumb trail. Simply activating Breadcrumb NavXT does not cause it to generate breadcrumb trails for you, you still need to specify where the breadcrumb trail should appear (either via calling bcn_display() in your theme, using the included Breadcrumb Trail block, or using the included widget).

    Plugin Author John Havlik

    (@mtekk)

    Based on where the warning is occurring, it sounds like something is changing the queried object to be of type WP_Post_Type instead of the expected WP_User for an author archive page. I’ll add a check for the expected object type. That said, you may want to chase down why the queried object is of the wrong type for an author archive page if you care about the breadcrumb trail being correct on those pages.

    • This reply was modified 9 months, 3 weeks ago by John Havlik.
    Plugin Author John Havlik

    (@mtekk)

    The breadcrumb trail showing up on the linked page doesn’t appear to be generated by Breadcrumb NavXT. Check your theme file for your store/product pages and ensure it calls Breadcrumb NavXT. Once Breadcrumb NavXT is being used for the product/shop pages, I’m going to point you to the WooCommerce compatibility tips article for how to configure Breadcrumb NavXT for WooCommerce.

    Plugin Author John Havlik

    (@mtekk)

    Try setting .widget_breadcrumb_navxt{float:left;} in your CSS.

    Plugin Author John Havlik

    (@mtekk)

    If the subcategory is a child of the main category, and the product is only an explicit member of the subcategory, Breadcrumb NavXT should pick up and generate a trail with both the subcategory and parent category in it. Double check to ensure that the category relationship is established and that Breadcrumb NavXT is generating the breadcrumb trail on the page in question (since you mention product, the plugin that handles products may be generating the breadcrumb trail on those pages currently).

    Plugin Author John Havlik

    (@mtekk)

    If the top level breadcrumb is varying, it may be a case of multiple different code paths (plugins) generating the breadcrumb trail on different pages. For the home breadcrumb in Breadcrumb NavXT, you can change it from the site title to “Home” by changing both Home Breadcrumb templates in the Breadcrumb NavXT settings page. Replace instances of %htitle% and %title% with Home in the Home Breadcrumb templates (both the regular one and the “unlinked” one) and press the “Save Changes” button.

    Plugin Author John Havlik

    (@mtekk)

    If you want a specific hierarchy, it’s recommended to organize your content within WordPress such that said hierarchy is present (otherwise you’re just creating more work for yourself). Breadcrumb NavXT does not use the URL structure to determine what the breadcrumb trail should be, it uses the relationships between posts, their parents (if present), and the terms (of whatever taxonomy) they are members of. If said relationships are not established, you aren’t going to get the breadcrumb trail you expect.

    For example, if the breadcrumb trail ends up being Home > Citypages and you want it to be Home > Services > Web Design > Citypages, if these are all of the page post type, then Citypages must be a child of Web Design which must be a child of Services (that is Citypages needs to have Web Design set as its parent page, and Web Design needs to have Services set as its parent page). Note that using pages isn’t the only way to make this hierarchy relationship work (there are ways of doing this with Custom Post Types with custom taxonomies as well).

    Under certain circumstances, manually adding breadcrumbs to the breadcrumb trail is necessary (unlikely in this situation, usually necessary for adding support for 3rd party plugins that expand past the normal scope of what WordPress does with post and term/taxonomy relationships), and there are examples of how to do this in the documentation for the bcn_after_fill action.

    Plugin Author John Havlik

    (@mtekk)

    It looks like your product is a member of multiple product category hierarchies. While WordPress supports this, it does not provide a method of determining what category is the most important one/most correct one to show when a post (of any post type) is a member of multiple terms within the same taxonomy. There are ways of influencing the category/term Breadcrumb NavXT uses. You can either write your own hook into the bcn_pick_post_term filter (have the filter return the term you want to use), use Order Bender (an example of how to use the bcn_pick_post_term filter), or Breadcrumb NavXT Paths (especially if you want the user’s path to visiting a post influence the breadcrumb trail displayed).

    Plugin Author John Havlik

    (@mtekk)

    The code probably tries to access something that doesn’t exist. That is, your breadcrumbs array may not have any members, or only a single member (which would result in the -2 in the calculation for the key try to access something that doesn’t exist). You probably should check that there are more than 2 members in the breadcrumbs array before running that bit of code.

    Also note, bcn_after_fill is an action not a filter so the hook registration isn’t correct there (it’ll work but isn’t technically correct).

    Plugin Author John Havlik

    (@mtekk)

    The WPML extensions plugin for Breadcrumb NavXT is a premium plugin available on the Breadcrumb NavXT author’s website. Items such as post titles and terms should translate without the extension. However, root pages, and the breadcrumb templates require the extension plugin to show up in the string translation area in WPML.

    Plugin Author John Havlik

    (@mtekk)

    In the Breadcrumb NavXT settings page, replace %htitle% and %title% in the home template with the text you want to display in the breadcrumb for the home page and press the “Save Changes” button.

    Plugin Author John Havlik

    (@mtekk)

    If you want the home link to always link to the “Member Page” (for every area it’d appear, including in the breadcrumb trail) you’d get get_home_url() to output the link to the “Member Page”. Otherwise, if you want this to be just in the breadcrumb trail, you can use the bcn_breadcrumb_url filter to swap out the URL (either by matching the home URL, or looking for ‘home’ in the type array that is passed into the filter).

Viewing 15 replies - 31 through 45 (of 2,363 total)