WordPress.org

Ready to get started?Download WordPress

Forums

how to get page title without extra stuff? (5 posts)

  1. forgetcolor
    Member
    Posted 4 years ago #

    I want to be able to get my Page's title from within the template, but I want it without the >> character or the site name. So, if my site is called CoolSite, and the Page is titled CoolPage, when I invoke wp_title() in the template I get:

    >> CoolPageCoolTitle

    I just want

    CoolPage

    Is there another function to do this?

  2. vtxyzzy
    Member
    Posted 4 years ago #

    This may be controlled by an option in your theme, or else the theme author may have added a filter to the title. If you are using a free theme, post a link to your site and someone may be able to help.

  3. vtxyzzy
    Member
    Posted 4 years ago #

    This may be controlled by an option in your theme, or else the theme author may have added a filter to the title. If you are using a free theme, post a link to your site and someone may be able to help.

  4. John Levandowski
    Member
    Posted 4 years ago #

  5. w3dgie
    Member
    Posted 3 years ago #

    <title><?php echo substr(get_the_title(), $startingPoint, $characterLimit); ?></title>

    http://www.php.net/manual/en/function.substr.php

Topic Closed

This topic has been closed to new replies.

About this Topic