Jump to content


Photo
PageTitle

Show title of category archive only



Best Answer CliffordP , 13 June 2014 - 09:44 AM

Hi damaca. Thank you for your purchase.

I believe this might be a solution for your specific use case:
http://www.pagelines...ins/pl-nextbox/

Go to the category archive, add this, and use the WordPress PHP to display what you want ( http://codex.wordpre...onomy_Functions ) Go to the full post


  • Please log in to reply
2 replies to this topic

#1 damaca

damaca

    Newbie

  • Members


  • 2 posts
  • Country: Country Flag

Posted 13 June 2014 - 04:43 AM

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.



#2 CliffordP

CliffordP

    Advocate

  • Members


  • 455 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 13 June 2014 - 09:44 AM   Best Answer

Hi damaca. Thank you for your purchase.

I believe this might be a solution for your specific use case:
http://www.pagelines...ins/pl-nextbox/

Go to the category archive, add this, and use the WordPress PHP to display what you want ( http://codex.wordpre...onomy_Functions )

#3 CliffordP

CliffordP

    Advocate

  • Members


  • 455 posts
  • LocationOklahoma
  • Country: Country Flag

Posted 30 June 2014 - 05:51 PM

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







Also tagged with one or more of these keywords: PageTitle