Display Project/Portfolio more than 4 on Home page

I am trying to add in project settings, change the Number of portfolio on portfolio section is 8, but in home page its display only 4 Portfolio 
Portfolio.png
22K

Comments

  • Hi  Oops 

    There is a bug in our code we will fix in next  update . 
    For now follow the given below instruction . 

    1 Find  the index-project.php file (located in your theme folder ).

    2 Open it and find the below line of code on line no  25 

    $args = array( 'post_type' => 'healthcenter_project','posts_per_page' =>$total_project);

    3 And replace it with below line of code . 

    $args = array( 'post_type' => 'healthcenter_project');

    Let me know for further assistance .

    Thanks 
  • Hi,

       It is working but, they display all portfolio/projects add in project/portfolio section.

    After i am changing the the Number of portfolio on portfolio section is 4, but they display all project/portfolio.


    portfolio1.png
    569K
  • Hi

    Replace this line 

    $args = array( 'post_type' => 'healthcenter_project','posts_per_page' =>$total_project); 

    With this line .

    $args = array( 'post_type' => 'healthcenter_project','posts_per_page' =>8); 

    Change post per  page value as your need . 

    Thanks 
    Akhilesh
  • Hi,


    its working.


    Thanks
This discussion has been closed.