forgetcolor
Member
Posted 1 year 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?
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.
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.
John Levandowski
Member
Posted 1 year ago #
w3dgie
Member
Posted 11 months ago #
<title><?php echo substr(get_the_title(), $startingPoint, $characterLimit); ?></title>
http://www.php.net/manual/en/function.substr.php