WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
Custom Tag Title for Category Posts (2 posts)

  1. Krishnaa
    Member
    Posted 10 months ago #

    Hi,

    I am using this plugin. I want to add custom tag tile to a certain category posts. I can add custom tag title to all posts easily by using this plugin. But there is no option for certain category posts. I have nearly 30-40 posts and changing the title tag for each will take too much time.

    Can you help out in this case?

    http://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 10 months ago #

    Krishnaa,

    This is possible with a bit of custom development - you could filter the title with the aioseop_title filter and change the title depending on the category of the post in question. Here's an example where I helped someone do just that; code follows below as well, you can add it to a plugin or to the functions.php in your theme:

    add_filter('aioseop_title', 'sfwd_custom_title');
    
    function sfwd_custom_title($title) {
       if ( is_category( "CategoryName" ) ) {
            $title = "Custom Category Title";
       } elseif ( is_category( "CategoryName2" ) ) {
            $title = "Custom Category Title 2";
       }
       return $title;
    }

Reply

You must log in to post.

About this Plugin

About this Topic