How to display category name as title wordpress?

alleminbe
54 Posts
alleminbe posted this 27 July 2016

How to display category name as a page title,
e.g. http://sitename.com/category/apple/
I would like 'Apple' to be the title of that page in the content.

How to display category name as a page title, e.g. http://sitename.com/category/apple/ I would like 'Apple' to be the title of that page in the content.
Vote to pay developers attention to this features or issue.
8 Comments
Order By: Standard | Newest
Support Team
Support Team posted this 27 July 2016

Hello,

When a category is selected, it uses Default template. So please follow these steps:
1. Open Default template from the list.
2. Navigate Insert tab >> More >> Page Title and insert it to the desired location on page. This page title will be the name of selected category.

Sincerely,
Nettie,
BillionDigital Team

Hello, When a category is selected, it uses Default template. So please follow these steps: 1. Open Default template from the list. 2. Navigate Insert tab >> More >> Page Title and insert it to the desired location on page. This page title will be the name of selected category. Sincerely, Nettie, BillionDigital Team
alleminbe
54 Posts
alleminbe posted this 27 July 2016

I did what you showed me and its showing this as the title:
Category_name(NS)Site_name .... (NS) means no space

I actually wanted to only show the category name on its own.

Would you please help me.

I did what you showed me and its showing this as the title: Category_name(NS)Site_name .... (NS) means no space I actually wanted to only show the category name on its own. Would you please help me.
Support Team
Support Team posted this 27 July 2016

Hi,

Please try adding CMS Code control (Insert tab >> More) with the following code:
<h1><?php wp_title('',true,'right'); ?></h1>
It should output a title only.

Thank you,
Olivia

Hi, Please try adding CMS Code control (Insert tab >> More) with the following code: `<h1><?php wp_title('',true,'right'); ?></h1>` It should output a title only. Thank you, Olivia
alleminbe
54 Posts
alleminbe posted this 27 July 2016

I added a CMS code and inserted the code it showed
Category_name(S)Site_name .... (S) means space
It output the category title and site name.

I want it to output the category name as the title.

I added a CMS code and inserted the code it showed Category_name(S)Site_name .... (S) means space It output the category title and site name. I want it to output the category name as the title.
Support Team
Support Team posted this 28 July 2016

Hi,

Hm, could you please try this function:

<?php single_cat_title(''); ?>

Please let us know the result.

Thank you,
Olivia

Hi, Hm, could you please try this function: `<?php single_cat_title(''); ?>` Please let us know the result. Thank you, Olivia
paolo.mazzagardi
19 Posts
paolo.mazzagardi posted this 14 February 2021

Ok i find a solution:

When a category is selected, it uses Default template. So please follow these steps:
1. Open Default template from the list.
2. Navigate Insert tab >> More >> CMS code and insert it to the desired location on page. (top page for me)

This page show the description of selected category.

the code is:

<?php echo category_description();?>

Ok i find a solution: When a category is selected, it uses Default template. So please follow these steps: 1. Open Default template from the list. 2. Navigate Insert tab >> More >> CMS code and insert it to the desired location on page. (top page for me) This page show the description of selected category. the code is: &lt;?php echo category_description();?&gt;
Support Team
Support Team posted this 15 February 2021

Thanks for sharing the solution!

Sincerely,
Themler team

Thanks for sharing the solution! Sincerely, Themler team
outreach4
1 Posts
outreach4 posted this 11 March 2025

I wanted to test the same for RailsCarma

I wanted to test the same for [RailsCarma][1] [1]: https://www.railscarma.com
You must log in or register to leave comments