WordPress.org

Forums

Pitch
add more Project (3 posts)

  1. B0926
    Member
    Posted 9 months ago #

    dear forums..

    how do I add more projects to be more than 10?
    thank you..

  2. LiberMedia
    Member
    Posted 9 months ago #

    Hiya!

    I had the same problem today and after trying a bit it turned out to be amazinly to edit this.

    • In the Appearance menu go to the editor
    • Look for the home.php template and select this one to edit
    • Somehere in the middle you'll see the following piece of code
    • Change the number after "posts_per_page" to the number of projects you want to show
    if(siteorigin_setting('type_project')){
    	pitch_display_loop(
    		siteorigin_setting('front_page_home_title_latest_projects', __('Latest Projects', 'pitch')),
    		array(
    			'posts_per_page' => 15,
    			'post_type' => 'project',
    			'orderby' => 'name',
    			'all_link_url' => 'ASC',
    			'order' => 'ASC',

    As you see I've already changed the posts_per_page bit to 15 instead of 10.

    At the bottom I added a line to decide in which order I want the projects to be displayed. You can find more info about the order & orderby parameters here

    Good luck!

  3. B0926
    Member
    Posted 9 months ago #

    Wow…thank you LiberMedia for your quick response. Now i have more 10 posts per page… :)

Reply

You must log in to post.

About this Theme

About this Topic

Tags