WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
Title rewrite function (4 posts)

  1. DavidKristin
    Member
    Posted 1 year ago #

    Hi,

    I'd like to ask you if AIO SEO plugin has placeholder tag for function, which rewrites contain between <title> and </title> tag, like wp_title or get_the_title in WordPress.

    Thanks for your answer.

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

  2. Peter Baylies
    Member
    Plugin Author

    Posted 1 year ago #

    DavidKristin,

    Yes, All in One SEO Pack has a filter for this called aioseop_title to allow you to manipulate this, and also has a number of functions that it uses within the All_in_One_SEO_Pack class, which you can find in aioseop_class.php in the plugin.

  3. DavidKristin
    Member
    Posted 1 year ago #

    Sorry, I'm the beginner. Can you help me with the code implementation to the template?

    I tried put <?php get_aioseop_title() ?> between title tag in header.php and it doesn't work. I want to use AIO SEO function instead of wp_title(), because I have problems with template.

  4. Peter Baylies
    Member
    Plugin Author

    Posted 1 year ago #

    DavidKristin,

    The easiest thing to do here is to just use All in One SEO Pack to rewrite your titles for you; it will do this using output buffering, or, if you turn Force Rewrites off in Performance, then it will do it via the wp_title filter. Be careful if you make your theme dependent on a plugin (or vice versa) - if not done right that can cause problems if later that plugin got deactivated (or your theme got switched).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.