SpiceThemes Support Forum
Latest News by Category
Hey there, How to configure te latest news section due to categories? And how to limit the results by an amount of latest news of certain categories ?
This feature to show posts of specific categories is not included in the plugin . However, you can do this but you need to add some code manually in a file.
Follow the below steps:
1) Install a plugin
2 Find the
file located in your plugin folder >> inc folder >> functions folder >>sections folder.
Find the file.
4) Now edit the file, at line no. 63 you will notice this below line
$args = array( 'post_type' => 'post','post__not_in'=>get_option("sticky_posts")) ;
In that line, add one more parameter & it become like this. Or replace the whole line with below line
$args = array( 'post_type' => 'post','post__not_in'=>get_option("sticky_posts"), 'cat'=> '7,8') ;
You will notice only
is added. where the value 7 & 8 are two category Id which you want to show on homepage posts.
Above plugin add one column which reveals ID like this
This way you can customize feature to show only specific categories on homepage.
Let me know if further need assistance.
Did your issue resolved?
We haven’t heard from you all in a while so I’ll close this thread for now. Feel free to open a new thread if you have any trouble in the future.
This discussion has been closed.