WordPress.org

Ready to get started?Download WordPress

Forums

How to change title dynamically? (5 posts)

  1. Lucas Martins
    Member
    Posted 5 years ago #

    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?

  2. crispijn
    Member
    Posted 4 years ago #

    I'm looking for the same answer! Hopefully there's someone out there that could help us!

  3. inetwerx
    Member
    Posted 4 years ago #

    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.

  4. thetooon
    Member
    Posted 4 years ago #

    <title><?php wp_title('|', true, 'right'); ?> <?php if (get_query_var('paged')) { echo get_query_var('paged') . ' page'; } ?> <?php bloginfo('name'); ?></title>
  5. SoCalBoy
    Member
    Posted 4 years ago #

    Where do you insert this code?

Topic Closed

This topic has been closed to new replies.

About this Topic