Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1373794

    Hi there,

    I have a list of portfolio items (approximately 40 items) shown in a grid under tabs
    the items on page 2 are not being shown on page 1 when i am sorting

    Say item A and D are both in category 1
    when showing All, A is on page 1, and D is on page 2 due to order and pagination
    when filtering by portfolio category 1 that should contain both A and D, only A is shown (due to D not being on the same page when showing All)

    this is quite a drawback of the functionality
    is the only way to overcome this with the Pagination setting of showing All posts on the same page?

    even when tab is setup to show content in full length, bottom can still be cut off

    #1373826

    Hey davidhsieh,

    Thank you for the inquiry.

    This is a limitation of the sorting option. It can only filter or sort posts that actually exist in the current page, related items in the next or previous pages will not be included. Regarding the cut off issue, please edit the tab section element and set the Layout > Height > Content height to Auto adjust to content.

    If the issue persists, please try this script in the functions.php file.

    add_action('wp_footer', 'ava_auto_resize');
    function ava_auto_resize(){
    ?>
    <script>
    (function($){	
    	var int = window.setInterval(function(){
    		$(window).trigger('resize');
    	}, 1500);
    	
    	$(window).on("load", function () {	
    		setTimeout(function() {
    			clearInterval(int);
    		}, 500);
    	});
    })(jQuery);
    </script>
    <?php
    }
    

    Best regards,
    Ismael

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