picandocodigo / List-Category-Posts

WordPress plugin which allows you to list posts from a category into a post/page using the [catlist] shortcode.
http://wordpress.org/extend/plugins/list-category-posts/
GNU General Public License v2.0
241 stars 112 forks source link

Is it possible to use current page's category for conditional_title? #214

Closed peterallcdn closed 6 years ago

peterallcdn commented 7 years ago

On each page, I'm displaying a list of other pages that belong to the same category as the current page. I'd like this list to have a heading/title. If I understand correctly, I can use conditional_title to specify a static heading/title. I'm hoping however that it's possible to use the current page's category as the heading/title. This way I don't have to worry about editing the heading/title for each page as it'll be done automatically.

Is this possible and if so, how?

Thanks!

klemens-st commented 6 years ago

Yes, it's possible. Please read the documentation first!

catname – Show the title of the category (or categories), works exactly as catlink, but it doesn’t add a link to the category.

Example: [catlist categorypage=yes catname=yes catlist_tag=h1 catlist_class=my-class]

Issue can be closed.