Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1301242

    Hi there,

    I’m wondering if there’s a way to increase the post number per page for the Portfolio Grid from 100 to 300.
    I’d like all portfolio items to display on one page, without requiring pagination.

    Please see page I’m referring to here: https://disruptionio.com/our-partners/

    Thanks!
    Jen

    #1301533

    Hey jenhames,

    Thank you for the inquiry.

    This is possible but you have to directly modify the enfold/config-templatebuilder/avia-shortcodes/portfolio/portfolio.php file. Look for this code around line 479 and adjust the value in the number_array function from 100 to 300.

    array(
    							'name' 	=> __( 'Post Number', 'avia_framework' ),
    							'desc' 	=> __( 'How many items should be displayed per page?', 'avia_framework' ),
    							'id' 	=> 'items',
    							'type' 	=> 'select',
    							'std' 	=> '16',
    							'lockable'	=> true,
    							'subtype'	=> AviaHtmlHelper::number_array( 1, 100, 1, array( 'All' => '-1' ) )
    						),
    

    You could also use the avia_post_grid_query filter to define the value of the posts_per_page parameter manually.

    Best regards,
    Ismael

    #1301666

    Hi Ismael,
    Modifying the portfolio.php file worked perfectly.
    Thanks very much for your help!
    Jen

    #1301669

    Hi Jen,

    Glad Ismael could help! :)

    For your information, you can take a look at Enfold documentation here – https://kriesi.at/documentation/enfold/

    If you have any other questions or issues, feel free to start a new thread under Enfold sub forum and we will gladly try to help you :)

    Enjoy your weekend!

    Best regards,
    Yigit

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Increase post number per page for Portfolio Grid’ is closed to new replies.