Home › Forums › Theme support › Eastend: Link to one project type? › Reply To: Eastend: Link to one project type?
Ok, you can try this: open the theme folder, copy the file “portfolio-masonry.php”, rename if to “portfolio-masonry-2.php” and put it in the theme folder (where the portfolio-masonry is located). Now open the new file ( portfolio-masonry-2.php). Go to line 2 and replace this:
/* Template Name: Portfolio masonry */
with this:
/* Template Name: Portfolio masonry 2 */
Now 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:
query_posts(array( ‘post_type’ => ‘portfolio’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’=>$post_per_page, ‘project-type’=>’insert_here_the_name_of_the_category’ ));
Please replace in the code above the ‘insert_here_the_name_of_the_category’ with the name of the category you want to show.
If you want, you can insert also the random post order to the code, like this here:
query_posts(array( ‘post_type’ => ‘portfolio’, ‘paged’ => get_query_var(‘paged’), ‘posts_per_page’=>$post_per_page, ‘project-type’=>’insert_here_the_name_of_the_category’, ‘orderby’ => ‘rand’ ));