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

    Hello,
    I’ve made a duplicate of taxonomy-portfolio_entries.php for my child theme and following instructions found in other posts, modified it like this:

    array(
    											'linking'			=> '',
    											'columns'			=> '3',
    											'items'				=> '18',
    											'contents'			=> 'title',
    											'sort'				=> 'no',
    											'paginate'			=> 'yes',
    											'set_breadcrumb'	=> false,
    										));

    However, it is not showing 18 items.
    Also, one of the images is displaying as square rather than rectangular as the others.

    Any advice would be greatly appreciated.

    #1490612

    Hey milkrow,

    Thank you for the inquiry.

    Instead of editing the template, try adding this filter to the functions.php file:

    function avf_avia_post_grid_query_mod( $query, $params ) {
    	if ( is_tax( 'portfolio_entries' ) ) {
    		$query['posts_per_page'] = 18;
    	}
    
    	return $query;
    }
    add_filter( 'avia_post_grid_query', 'avf_avia_post_grid_query_mod', 10, 2 );

    Let us know the result.

    Best regards,
    Ismael

    #1490624

    That doesn’t seem to work. I tried both the parent theme and the child theme’s function.php.

    https://libbiemark.com/artworks/1960s/

    #1490638

    Hi,

    Thank you for the update.

    We may need to log in to the site to properly check the issue. Please provide the login details in the private field.

    Best regards,
    Ismael

    #1490659

    Thank you for your response Ismael.

    I created a temporary login using (Email address hidden if logged out) . See the link in the private content field.

    #1490674

    Hi,

    Thank you for the login info.

    We adjusted the value of the “Blog pages show at most” field in the Settings > Reading panel. The portfolio category page should now display 18 items with pagination enabled.

    Best regards,
    Ismael

    #1490712

    HI Ismael,
    Thank you!

    #1490720

    Hi,

    You’re welcome! Let us know if you have more questions. Have a nice day.

    Best regards,
    Ismael

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Pagination and items settings in taxonomy-portfolio_entries.php’ is closed to new replies.