Home Forums Basel support forum How to remove "related projects" section for existing project pages?

How to remove "related projects" section for existing project pages?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #19420

    jlerchen
    Participant

    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!

    #19427

    Artem Temos
    Keymaster

    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

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