• Resolved MemeRunner

    (@memerunner)


    Currently, my portfolio page only shows 5 portfolio icons, and then the rest spill over to another page.

    https://dougschumacher.com/portfolio/

    Is there a way to control how many items appear on a single page before it moves to a second page? I’d like them all to appear on a single page.

    thanks
    doug

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Nick C

    (@modernnerd)

    Hi, @memerunner!

    You can change the number at Settings → Reading → “Blog pages show at most” to show more posts on each portfolio page.

    A future update may add a portfolio-specific “items per page” setting.

    Thread Starter MemeRunner

    (@memerunner)

    Thanks, Nick. Yes, was hoping for something specific to the portfolio section, but this will do for now.

    Appreciate the input.

    Hello,

    Having a look at Bill Erickson’s post:

    You could try something like this:

    <?php
    add_action( 'pre_get_posts', 'be_set_number_of_posts' );
    /**
     * Exclude Category from Blog
     * 
     * @author Bill Erickson
     * @link https://www.billerickson.net/customize-the-wordpress-query/
     * @param object $query data
     *
     */
    function be_set_number_of_posts( $query ) {
    	
    	if( $query->is_main_query() ) {
    		$query->set( 'numberposts', '-1' );
    	}
    }

    You should place it in the archive portfolio template page.
    It’s not tested, but may be a starting point.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How do you show more than 5 portfolio elements on one page?’ is closed to new replies.