How to remove "related projects" section for existing project pages?
-
Dear Basel team,
when I click on a project in my portfolio, there is an automatic “related projects” section at the bottom of the project page.
How can I remove this section?
Thank you!
Hi,
You can remove the following code from the single-portfolio.php
file
<?php
$args = array(
'post_type' => 'portfolio',
'order' => 'DESC',
'orderby' => 'date',
'posts_per_page' => 12,
'post__not_in' => array( get_the_ID() )
);
$query = new WP_Query( $args );
echo basel_generate_posts_slider(array(
'title' => esc_html__('Related Projects', 'basel'),
'slides_per_view' => 3,
'hide_pagination_control' => 'yes'
), $query);
?>
Regards