Archived topic
Selecting category post for specific page
5 replies · Started by Francois Charpentier on March 13, 2015
Hello,
I like very much the design and the speed of GeneratePress but I miss a function I had in my previous theme :
When I created a new page, I could select the category of posts I would show on this page.
For instance, I checked "mountain" and "winter", and only the posts with these category were displayed on this page.
Could you please add this very useful function in a next release ?
I know I could create a category menu in Wordpress, but it adds a directory in the url : /category/, or, at best : /cat/ and I don't want that.
For the moment, I use a plugin " List category posts " to achieve my goal, but the result is ugly as I lost your layout.
Could you give me a code to select a category post for a specific page, and get rid of this plugin ?
Thank you for your help.
Regards,
Francois
Hi Francois,
I probably won't be adding such a thing to GeneratePress, but I do plan on releasing a free plugin that allows you to display posts with a shortcode as soon as I get some free time.
For now, you can remove /category/ from the URL: https://wordpress.org/plugins/remove-category-url/
Hope this helps :)
Hi Tom,
Thank you for your help.
The plugin remove-category-url resolved my problem, thanks a lot !
I just don't know if, on the SEO side, it's better or not to have a Category instead of a Page. I'll Google it ;-)
Just a last detail : at the top of each Category page, the name of the selected category is showed. Is it a way to hide it ?
I use Simple Custom CSS, maybe there is a code for that...
About the free plugin to display posts with a shortcode : excellent !
That way, the code will be totally in phase and well updated with the theme.
Regards,
Francois
Hi there,
This CSS will hide the title of the category - although it's a good thing to keep for SEO reasons:
.category .page-header {
display: none;
}
Hi,
Thank you for your help !
Regards,
Francois
No problem! :)