Grid Post

  1. how to display certain tags post in grid from in only home page?
  2. i couldn’t display my blog(post) page in no sidebar form.

Hi @xuanxuan23,

I hope you are well today and thank you for your questions.

1) how to display certain tags post in grid from in only home page?

You can try achieving this by using the attached small plugin specially developed for you that contains the following custom code.

function colorlib_home_category( $query ) {
    if ( $query->is_home() && $query->is_main_query() ) {
        $query->set( 'tag_slug__in', array( 'tag-slug', 'tag-slug-2' ) );
    }
}
add_action( 'pre_get_posts', 'colorlib_home_category' );

Change the tag slugs ‘tag-slug’ in the above plugin code to the tag slugs from where you want to display posts on the home page.

2) i couldn’t display my blog(post) page in no sidebar form.

Do you want to only display that page in no sidebar form and other pages with sidebar?

Could you please share me the blog page URL from your site where it’s not working correctly so that i can troubleshoot it?

Best Regards,
Movin