Reply To: Post on Portfolio

New Front EN Support Forums Ikebana Theme Support Post on Portfolio Reply To: Post on Portfolio

#6981
satori
Keymaster

Hey Tinchox17,

in Ikebana, projects are displayed on the portfolio masonry grid page template and posts are displayed in the classic blog for the following reason: in the website’s structure, the mentioned masonry page serves as a page to showcase works or other items, not as a universal front for all what’s happening on the website. Technically, one can in principle have both posts and projects displayed in the same grid, yet that would require altering the theme’s template files, most importantly the “page_portfolio.php” file; it needs to start by adding the posts to the main query that generates the loop for that template, namely changing line 69 from

$wp_query = new WP_Query( array( 'posts_per_page' => $ppp , 'post_type' => 'project' , 'paged' => $paged , 'post__not_in' => $exclude_ids, 'order' => $order, 'orderby' => $orderby ) );

to

$wp_query = new WP_Query( array( 'posts_per_page' => $ppp , 'post_type' => array( 'project', 'post') , 'paged' => $paged , 'post__not_in' => $exclude_ids, 'order' => $order, 'orderby' => $orderby ) );

However, additional customizations in the theme’s CSS styles and other template files (such as “content.php”) might be necessary for this to work as needed in this case.

Sincerely,
Andrii / Satori Studio