• Resolved zlatkotesk

    (@zlatkotesk)


    Hello,

    is there a way how to show only standard posts in Recent posts section? I couldn′t find a way to do it through customization, maybe adding a code in CSS editor?

    Now the feed shows standard posts but also posts marked as Photo, that also appear in gallery section below, so they are on the homepage twice and I would like to have it only in gallery section.

    Thank you very much for your help

    Zlatko

Viewing 2 replies - 1 through 2 (of 2 total)
  • Theme Author Dinev Dmitry

    (@dimadinev)

    Hi,
    You can do this by changing the line in the file
    …/template-parts/section-blog.php

    	                $args = array(
    	                                'posts_per_page' => $limit_num,
    	                                'post_status' => 'publish',
    	                        );

    add after
    'post_status' => 'publish',
    this lines:

    				'tax_query'      => 	array(
    							array(
    								'taxonomy' => 'post_format',
    								'terms'    => array( 'post-format-image' ),
    								'field'    => 'slug',
    								'operator' => 'NOT IN',
    							),
    						),

    It is better to do these changes using the child theme.

    Thread Starter zlatkotesk

    (@zlatkotesk)

    Thank your for your help, it works,

    And thank you for a great theme!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Recent post section customizing’ is closed to new replies.