Viewing 15 posts - 1 through 15 (of 15 total)
  • Author
    Posts
  • #980715

    We are using a masonry with portfolio entries (flexible masonry; two of them on one page) and are having two problems:

    1)
    The sorting does not work. I tried sorting according to date. Most of the entries are sorted all right, some not. Nothing I do will change it.
    I also tried sorting by page order, with the page order plugin. Same as above.

    2)
    We are displaying twelve items with a load more button initially. We have three categories to date. Only two of them are displayed when the page loads. The third category only appears after the “load more” button has been hit.

    I have invested nearly a working day to find solutions to the problems. No chance. Please help.

    #980722

    Sorry, no bumping meant, just something I forgot:

    When clicking on “All” or one of the categories displayed after the page has loaded, not all portfolio items are shown. Only after clicking on “load more” all elements of one category are displayed.

    #980790
    This reply has been marked as private.
    #981250

    Hi tinip2,

    Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    1. Install and activate ” Temporary Login Without Password “.
    2. Go to ” Users > Temporary Logins ” on the left-side menu.
    3. Click ” Create New “.
    4. Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
      ( do be sure that we have enough time to debug ).
    5. Click ” Submit “.
    6. You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.

    When your issue is fixed, you can always remove the plugin!
    If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.

    Best regards,
    Nikko

    #981282
    This reply has been marked as private.
    #983691

    Hi,

    Thank you for using Enfold.

    1.) The plugin “Post Types Order” alters the default orderby query of the masonry items. Disabling the plugin make the sorting function work again.

    2.) That is the default behavior of the category sort. The category will only display when an item that belongs to that particular category is visible in the page.

    Best regards,
    Ismael

    #983722
    This reply has been marked as private.
    #983730
    This reply has been marked as private.
    #984021

    Hi,

    1.) I set the “orderby” parameter to “title” instead of “date”. Please adjust it back to “date”. Let us know if it’s still not working.

    2.) Yes, that is the default behavior. One workaround is to disable the pagination and display all items in a single page.

    Best regards,
    Ismael

    #984222

    Hi Ismael,

    …still desperate on my side.

    1.)
    Sorry, I do not understand where the change is supposed to be. Everything was like before this morning, orderby set to date as before.
    Btw: I had tried to set different sorting methods back and forth, with no success unfortunately.

    2.)
    I used Isotope / Masonry function on static sites before and it was possible to define the menu items for the filtering – no restriction to the elements that were shown on load. So, wouldn’t it be possible to define the content of the filtering menu somehow? Could you tell me please which file creates the filtering menu, I could try then to alter the file within my child theme in order to achieve what the client needs.
    Displaying all items in a single page is unfortunately not an option, due to too many items. The sense of ordering and filtering is imho that you don’t have to display everything at once.

    3.)
    Now that the two ordering plugins are gone, the order of the filtering menu items is reversed again. I had sorted the categories with the help of the plugin latest year up front, now it is in ascending order (oldest year up front). If the plugin interferes with the order of posts and cannot be used: Can I instead set the order of the categories in the masonry filtering menu to descending via a piece of code in my child theme’s functions.php? Please advise.

    4.)
    I just tested again different settings in masonry. The sorting bug seems to vanish with the “perfect grid” option. But unfortunately the images are cropped then and the bottom part of the image is hidden by the caption, even if I try “portrait” or “high portrait”.
    Can you please advise how to push the caption down below the image? Thus, I could use the “perfect grid” option and avoid the sorting bug.
    And: What image size and image type (masonry?) is used here, so that I can set different cropping rules for that type of image?
    Additional information: There will only always be images in portrait mode with the same width/height ratio, never landscape.

    Thanks,
    tinip2

    • This reply was modified 6 years, 4 months ago by tinip2.
    #984421

    Hi,

    The following thread might help. It also explains why the sorting is a little off when isotope script is used. We set the isotope’s “layoutMode” to “fitRows” to make the items’ sorting more accurate. Do note that this layout works only when the items have the same height. You need to modify the config-templatebuilder > aviashortcodes > masonry_entries.js file.

    // https://kriesi.at/support/topic/masonry-grid-not-properly-sorting-alphabetically/#post-981621

    Regarding the category sort buttons, you’ll have to modify the “sort_buttons” function in the config-templatebuilder > aviashortcodes > av-helper-masonry.php file. Set the “hide_empty” parameter to false.

    $sort_terms = get_terms( $this->atts['taxonomy'] , array('hide_empty'=>true) );
    

    It is going to display the categories even when they are empty or when their respective items are not visible in the page. You’ll see why they’re hidden by default.

    Best regards,
    Ismael

    #984651

    okay, thanks, I will look into it and see what happens.

    #985079

    Hi,

    Alright. Please update us when you figure out something.

    Best regards,
    Ismael

    #986072

    No luck with both hints, unfortunately.
    [I followed the hints in the thread, but it’s not working as I need it.]
    [I set the “hide empty” parameter in config-templatebuilder > aviashortcodes > av-helper-masonry.php to “false”, set the masonry back to “flexible”, cleared cache. No change with the filtering menu. So I reversed everything.]

    I am running out of time here. So I am using work-arounds now, in order to at least getting close to what I need:

    Sorting work around: I set the masonry to “perfect grid” – that’s when the sorting is working without errors – and “high portrait” and then tweaked the figcaption with css so it does not hide the full bottom of the image. The images are still cropped but not as much shortened as with the full bottom overlay.

    Filtering menu / category sort buttons work around:
    I added a portfolio item with the categories that I am missing in the masonry sorting menu and set it to display: none. It forces the menu to show the missing categories, but due to display: none it is not shown to not logged in users.

    Not working anymore is the category ordering in the masonry menu. It’s ascending now, I need it descending again (2018 up front, 2016 last). I re-installed the category order plugin, but it has no effect (anymore), also after cache clearing.
    Isn’t there any way to reverse the sorting via the functions.php of my child theme?

    #986216

    Hi,

    The get_terms function accepts more arguments including the “order” and “orderby” parameter so you can use that to reverse the order of the category sort.

    // https://developer.wordpress.org/reference/functions/get_terms/
    // https://developer.wordpress.org/reference/classes/wp_term_query/__construct/

    Unfortunately, we can’t help you with the item filter. Please hire a freelance developer or contact our partner, Codeable.

    // https://kriesi.at/contact/customization

    Best regards,
    Ismael

Viewing 15 posts - 1 through 15 (of 15 total)
  • You must be logged in to reply to this topic.