Support » Fixing WordPress » How to change title dynamically?

  • How do I change the title tag only using php code?

    For example, I wrote a plugin that generate some pages automatically, using data from a database, and I need to set different titles to each of these pages. How can I do this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m looking for the same answer! Hopefully there’s someone out there that could help us!

    All in one SEO plugin allows you to choose the page title of any individual page. Not sure if this is what you’re looking for.

    <title><?php wp_title('|', true, 'right'); ?> <?php if (get_query_var('paged')) { echo get_query_var('paged') . ' page'; } ?> <?php bloginfo('name'); ?></title>

    Where do you insert this code?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to change title dynamically?’ is closed to new replies.