Hi, I have a question about display post for a Category in home page
I am using the sider library, everything works fine for me except in home page I only want to display post for a specific Category named “home-page”, I did a few research for the GeneratePress doc
here is my code:
add_filter(‘generate_blog_columns’, ‘generate_custom_post_archive_columns’);
function generate_custom_post_archive_columns($columns)
{
if (is_category(‘home-page’)) {
return true;
}
return $columns;
}
But my site is still looks like this, the first two post is belongs to “Uncategorized”, but they are been displyed, what I am doing wrong? Please help, thanks a lot.
http://39.106.141.251/wordpress/