Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
  • #205182

    This functionality looks like it’s done with some kind of dynamic process, but does not work correctly anywhere. I’ve disabled the breadcrumbs on everything but the items called by galleries (here):

    But with both the next/last buttons, and the breadcrumbs, what is called is totally arbitrary. For the breadcrumbs, it randomly chooses a page as a parent. There is no apparent pattern to it. and with the last/next buttons, it chooses a portfolio item in an equally random fashion.

    This functionality is great, or it would be if it worked… Any ideas of what’s happening?


    Thanks so much for the response! I tried to respond to the email, but it bounced.

    That worked!

    Is there a way to do the same for the forward/next buttons? to keep them in the same category? They jump around from category to category. I thought those would stay in the group from the gallery that linked to them, but I think they might be going by post date.


    Hi hughjames!

    Actually the page is not random but it depends on the masonry grid items. If the entry (i.e.: ) is part of the masonry grid ( ) the breadcrumb will show a link to the masonry grid page ( Home / Vanities / Caroline Avenue GD-50060). If the entry is not part of the masonry grid (i.e. ) it will show a link to the product category instead (Home / Faucets / Alexis PS-265). You’ve two possibilities.

    1) Since WP3.8 and Enfold 2.4.4 you can restrict the prev/next entry button to the same category of the current post. If you want to activate this feature insert following code into your child theme functions.php file or insert it at the bottom of enfold/functions.php:

    add_filter('avia_post_nav_settings','avia_remove_fullwidth_slider_check', 10, 1);
    function avia_remove_fullwidth_slider_check($settings)
    $settings['same_category'] = true;
    return $settings;

    2) Or deactivate the “masonry page” breadcrumb link – then all entries will show a link to the product/portfolio category and the breadcrumb will be consistent for all entries. In this case insert following code into your child theme functions.php file or insert it at the bottom of enfold/functions.php:

    function avia_remove_portfolio_breadcrumb(){



    You’re amazing. That worked perfectly too.

    I have one other Masonry question:

    Would it be possible to use a WordPress menu as the selecting element for the Masonry filtering?

    This one is more complex. I think I would need to extend the Masonry to choose a WordPress Menu (as opposed to the taxonomy choices), and do a little CSS tweaking, but that seems like the easiest way to order the terms hierarchically rather than alphabetically.

    This is a big issue for the client, as they want to have 100+ items and maybe 20 filter criteria. Multiple taxonomy filters would be ideal, but just being able to order them would help greatly.



    No, you can’t use the menu for the masonry filter without a heavy theme code customization. Ifyou really need such a feature I recommend to hire a freelancer. However you can try this plugin: to order the categories/terms and this plugin: to order the entries of the portfolio post type or standard posts, etc.



    Thanks! I’ll check those out. That might actually solve the problem without needing to modifying the Masonry (something I want to avoid in the interest of update compatibility).

    I really appreciate the quick response. You’ve been incredibly helpful.


Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Breadcrumbs and last/next buttons do not function correctly.’ is closed to new replies.