• 0

PageTitle Show title of category archive only

Question

Posted · Report post

G'day Clifford,

 

I am wanting to show the title of the category archive only. Is there a short code that I can use to achieve this?

 

So instead of:

 

Category Archive

3 Posts in "CategoryName"

 

 

I just want:

 

"CategoryName"

 

 

The [post_categories] short code works if all posts in the loop have a single category, but not when any posts have more than one. So that solution does not work in this instance. I'm guessing that I'm looking for a shortcode that displays the name of the page, but there seems to be no documentation for it.

Share this post


Link to post
Share on other sites

2 answers to this question

  • 0

Posted · Report post

Marked as solved since I didn't receive a reply.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now