Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1265482

    Is there a way to loop the portfolio next and previous arrows? I have set the sorting to descending and there is no next button which looks bad.

    #1265595

    Hey amyteslin,

    Unfortunately, it would require quite some time and customization of the theme to achieve this, so I am sorry to tell you that this is not covered by our support. However, if it’s really important for you to get this done, you can always hire a freelancer to do the job for you :)

    Best regards,
    Victoria

    #1265623

    the other question is : how to loop only in the same category …
    use search function with : “same_category”

    #1265845

    Hi Guenni007,

    Thank you for pointing it out, I forgot about that one, but yeah, it’s the general loop not within the same category.

    Best regards,
    Victoria

    #1265846

    perfect!! Thank you!

    #1265875

    Hi,

    Did you need additional help with this topic or shall we close?

    Best regards,
    Jordan Shannon

    #1272256

    Allthough i did not update to WP 5.6 there is one customer installation that does not loop on same category with known snippets:
    neither:

    add_filter('avf_post_nav_settings','enfold_customization_postnav', 10, 1);
    function enfold_customization_postnav($settings){
      $settings['same_category'] = true;
      $settings['is_fullwidth'] = false;
      if( 'post' == $settings['type'] )  { $settings['skip_output'] = false;}
      if( 'portfolio' == $settings['type'] )  { $settings['skip_output'] = false;}
      return $settings;
    }

    nor:

    function my_avf_post_nav_settings( array $settings ){
      if( true === $settings['is_hierarchical'] ){
        $settings['skip_output'] = true;
        return $settings;
      } 
      if( ! in_array( $settings['type'], array( 'post', 'portfolio' ) ) ){
        $settings['skip_output'] = false;
        return $settings;
      }
      $settings['same_category'] = true;
      $settings['is_fullwidth'] = false;
      $settings['skip_output'] = false; 
      return $settings;
    }
    add_filter( 'avf_post_nav_settings', 'my_avf_post_nav_settings', 10, 1 );

    is working. ?

    Edit : Sorry now i know why. I installed a Custom Post Order Plugin – and that messed up the loop.

    #1272669

    Hi Günter,

    Great, I’m glad that you found the problem and thanks for the update.

    Best regards,
    Rikard

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