WordPress.org

Ready to get started?Download WordPress

Forums

custom page title for one template page (4 posts)

  1. tomleads
    Member
    Posted 4 years ago #

    Hello.

    I have a custom page template for a wpmu site with the url like this:

    http://www.me.com/topic/?topicID=8

    I need to edit the page title because at the moment I just have "Topic >"

    So, how, if possible, do I edit the page title within a custom template with php?

    Thanks

  2. MichaelH
    Member
    Posted 4 years ago #

    In your template, just replace the the_title(), with what you want for the title.

    echo 'This is my title';

    Related
    Pages
    Stepping Into Template Tags
    Stepping Into Templates
    Template Hierarchy

  3. tomleads
    Member
    Posted 4 years ago #

    It is the page title I need to edit, ie: what goes between in

    <title>whatever</title>

    in the head tag

  4. MichaelH
    Member
    Posted 4 years ago #

    I believe the plugin headspace2 could help you with that.

Topic Closed

This topic has been closed to new replies.

About this Topic