Viewing 30 posts - 1 through 30 (of 34 total)
  • Author
    Posts
  • #918414

    Hi!
    Following problem: i have multiple Portfolio Categories displayed as Masonry Grid on single pages as that: Link 1
    When i open a single Portfolio Item (Link 2) and use the left/right arrows to navigate to the next Portfolio Item, i don’t get the right sequence order, as set in the Masonry – Date Ascending.

    How can i fix that?
    Thanks!

    #918689

    Hey 100f,

    Please take a look here

    let us know if it works properly after you try it.

    Best regards,
    Basilis

    #919229

    Hey Basilis!
    Thanks, but it does not help.
    It sets the Next/Previous in the same category and thats fine..
    But It is about the right sequence order, as set in the Masonry – Date Ascending, and this have not changed.

    Best Regards
    Boris

    #920191

    Hi,

    Do you want to reverse the sequence of the next and previous posts? Please try this filter.

    add_filter('avia_post_nav_entries', 'avia_post_nav_entries_mod');
    function avia_post_nav_entries_mod($entries, $settings)
    {
      if(is_singular('portfolio')) {
        $entries['prev'] = get_previous_post($settings['same_category'], $settings['excluded_terms'], 'portfolio_entries');
        $entries['next'] = get_next_post($settings['same_category'], $settings['excluded_terms'], 'portfolio_entries');
      }
      return $settings;
    }

    Best regards,
    Ismael

    #924569

    Hi!
    Sorry, but this does not work at all. I just want the Next/Prev to have the same order as displayed on the overview Page:

    The right sequence order is, as set in the Masonry – Date Ascending.

    Thanks.

    #925671

    Guys?

    #926238

    Hi,

    I am afraid the problem is that we are not sure what you exactly need.
    What is not working and how it should work for you.

    Best regards,
    Basilis

    #926647

    Hi!
    All right. I will try to be clearer.
    There is an order to the Pianos on the overview, right?

    It’s Modell D, C, A, B and so on. This order is important. To keep it i have set the single portfolio items with the right publish date and i have set the Masonry in the overview page to sort the Pianos to ‘Date Ascending’.

    I want to keep the same order ( Modell D, C, A, B…) when i open a single Item and klick on the ‘next/previous’ buttons.

    Thank you.

    #927676

    Hi,

    Hm, that is strange.
    If you change the date, then that should be the order.
    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,
    Basilis

    #928164

    Thank you!

    There you go:

    #929480

    Hi,

    The navigation is based from “get_adjacent_post” function. This function retrieves posts based on the date they are published. Please edit the posts then adjust the Publish > “Published on” date manually.

    Best regards,
    Ismael

    #936795

    Hi,
    yes, as i said, i have all ready set the right publish date right inside the respective categories.
    It still does not work.
    I want to keep the same order ( Modell D, C, A, B…) when i open a single Item and klick on the ‘next/previous’ buttons.
    The models (portfolio items) have all ready the right publish date. As you can see in the category overview page.
    So could i please get some help?
    Thank you!

    #937588

    Hi,

    Please regenerate the login token because the previous one has expired. Did you install the “post-types-order” plugin?

    Best regards,
    Ismael

    #937696

    Hi, no, i dont have this plug in installed.

    New token is in the private area.

    Thanks!

    #938472

    Hi,

    Thank you for the update. The setup and date of the portfolio items look correct. I’m not sure why it’s not arranging itself correctly. Please upgrade the theme from version 4.2 to version 4.2.6 and then update WordPress to 4.9.4.

    Best regards,
    Ismael

    #941544

    Hi, i did the Update.
    It does not help.
    Please help!

    #941810

    Hi,

    It seems like the login token has expired, could you generate a new one or post temporary admin login details in private please?

    Best regards,
    Rikard

    #941914

    Hi! Sure!

    #942629

    Hi,

    Thank you for the info. I tried to alter the query of the adjacent post but I can’t figure out the correct pattern. I’ll ask the rest of the support team to check this out.

    Best regards,
    Ismael

    #952175

    Guys?

    #953052

    Hi,

    I’m sorry but we haven’t figured this out yet. Please provide a login token again.

    Best regards,
    Ismael

    #953915

    Hi!
    There you go:

    #954635

    Hi,

    We managed to fixed it with the following filter but that query is quite specific for the category “Klaviere Blüthner”. You may need to duplicate the filter for the rest of the portfolio categories.

    function avf_previous_post_where() {
    	global $post, $wpdb;
    	return $wpdb->prepare( "WHERE p.post_date < %s AND p.post_type = %s AND tt.term_id IN ('37') AND p.post_status = 'publish'", $post->post_date, $post->post_type);
    }
    add_filter( 'get_previous_post_where', 'avf_previous_post_where' );
    
    function avf_next_post_where() {
    	global $post, $wpdb;
    	return $wpdb->prepare( "WHERE p.post_date > %s AND p.post_type = %s AND tt.term_id IN ('37') AND p.post_status = 'publish'", $post->post_date, $post->post_type);
    }
    add_filter( 'get_next_post_where', 'avf_next_post_where' );
    
    function avf_previous_post_sort() {
    	return "ORDER BY p.post_date desc LIMIT 1";
    }
    add_filter( 'get_previous_post_sort', 'avf_previous_post_sort' );
    
    function avf_next_post_sort() {
    	return "ORDER BY p.post_date asc LIMIT 1";
    }
    add_filter( 'get_next_post_sort', 'avf_next_post_sort' );

    Best regards,
    Ismael

    #962204

    Thank you Ismael!
    Where and how should i put the script to apply it to all categories?
    Best regards.

    #963089

    Hi 100f,

    This code needs to be inserted into the functions.php and it better be a child theme.

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #971974

    Hi, thanks.
    Yes, i need further assistance. How can i make this code apply to all categories?
    The right order works now in only one category.
    And they are several of them?
    Thank you.

    #971976

    Should i copy the code repeatedly and only change the category ID in each copy? In this case its (’37’)…

    #972603

    Hi,

    I don’t think that we can apply this filter for every category. The nav’s “same_category” parameter should post no issue when the portfolio items belong to a single category. The portfolio items in your installation contains multiple categories so we may not be able to exclude certain items from the post navigation.

    Please provide a login token so that we can check the portfolio items again.

    Best regards,
    Ismael

    #973276

    Hi!
    there you go!
    Thanks!

    #974076

    Hi,

    Thanks for the update. You may need to upgrade the theme from version 4.2 to 4.4.1 first. Please re-save the theme options after the update and take note of the Performance options. You may need to disable those options temporarily.

    Best regards,
    Ismael

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