Archived topic
Put Post categories under title and next to author and date
7 replies · Started by Sneaky on July 25, 2022
Is there way I can have the categories on the single post page to be inserted next to the author and date.
It would also be helpful to have an option to sort them, i.e. I may want author, category, date, or category, date, author etc.
Hi Sneaky,
You could use a Block Element - Post Meta Template with GenerateBlocks: https://docs.generatepress.com/article/block-element-post-meta-template/
Hope this helps!
It seems that every time I want to make a change I need to go and make a new element? This is apparently the go-to answer for any questions
Surely this sort of stuff should just be in the customiser? I mean the comments and author settings already go below the title, so why not enable categories there too?
I like GP (coming from Astra) and the Premium plugin, but having this reliance on users creating an element for even the most minor changes is a time-consuming and to be honest counter prdocuctive.
Thanks
To sort the post meta in an order you prefer, and place the categories along the author and date, creating a Block Element would be the easiest approach.
Another approach would be to use custom code.
In terms of solely using customizer settings to achieve that, sadly, it isn’t possible.
Fernando,
Is there an ability to limit the "list of terms" for category to 1 single category?
Hi Brandon,
Are you referring to limiting the number of categories a post can have? If so, you would need custom development for this. This is controlled by WordPress.
If you’re referring to limiting the categories shown to just one, this is possible.
Yes, I'm interested in limiting the Categories in my Post Meta Templates to just one shown instead of all of them it may be a part of. An old theme I had sorted this out somehow to show only 1 by either most popular or first selected, or maybe it was random. I'm not concerned with selecting which is shown.
As of now more than 2 is too many and breaks onto another line of text.
I see. Thank you for clarifying. Can you start a new topic and provide the link to the page in the site in question?