Home Forums Theme support Tyco Theme Portfolio Page Issue

This topic contains 1 reply, has 2 voices, and was last updated by  7Theme Support 8 years, 7 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • I have the portfolio page of my site set as the static home page; the page loads properly however the multi page function of the portfolio template does not function.

    Every time you attempt to go to the next page or click the page number of choice the address bar link changes to page 2 and so on however the content from page one is displayed. This only happens when it is set as my home page.

    If it is set as a secondary page the additional pages in the portfolio layout function properly.

    Is there a way to make this work properly?

    I have set my homepage as the portfolio so the issue can be tested. A quick resolution would be great as this is preventing potentional clients from seeing additional works.

    Website: http://www.trinnovative.com


    unfortunately WordPress use another pagination for the homepage, thats why its not working.

    To fix the problem, please open the file “portfolio-masonry.php in the root of the theme folder, go to line 46 and replace this:

    query_posts(array( 'post_type' => 'portfolio', 'paged' => get_query_var('paged'), 'posts_per_page'=>$post_per_page ));

    with this:

    if ( get_query_var('paged') ) {
        $paged = get_query_var('paged');
    } elseif ( get_query_var('page') ) {
        $paged = get_query_var('page');
    } else {
        $paged = 1;
    	query_posts(array( 'post_type' => 'portfolio', 'paged' => $paged, 'posts_per_page'=>$post_per_page )); 

    Normally this should solve the problem.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.