O
O
Ole_Jack2013-12-02 13:48:53
Taxonomy
Ole_Jack, 2013-12-02 13:48:53

How to make your Title in a separate WordPress category?

There is a site on Wp, in fact, you need to change the TITLE in only one separate category, preferably without plugins. There is already an All in One Seo Pack, but I did not find a similar setting for categories there.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Larionov, 2013-12-02
@Zidar

For example, like this:

function my_title_filter( $title ) {
  if (is_category('category-slug'))
    return 'my title';
  else
    return $title;
}
add_filter( 'wp_title', 'my_title_filter', 11, 1 );

category-slug, respectively, must be replaced with the slug of the desired category
. Place the code in the functions.php of the theme.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question