andradenation
Forum Replies Created
-
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] Change Page Title for Profile PageJeff:
Long time listener, first time caller… 🙂Following your thread.
Got a handle on most every part of your plugin except for the topic bento and mviens brought up here.I write my own WP themes so I keep much of the code clean. I am calling the
<?php the_title(); ?>call in the page template, I created thetheme-my-login-custom.phpin my base/pluginsI used the code you cited above (added the 10,2 to the add_filter line as I was getting a Missing argument 2 error and I saw they existed in code you had submitted in another post: ttp://tinyurl.com/5vs4kyj (the version I am using is below).
The title does not change.
I tried using the show_title fasle via short code and via template tag and it didn’t take.I saw you had provided on your forum a method for removing the title filter so that I can add it back in to page templates: http://tinyurl.com/6kqlgf4
But while I can do that and use template tags for separate templates, it would be cool if I could get the action based filter to snag.I left the returned title of Application since if that showed, I would know it was working and could then apply it to other actions, conceivably.
<?php function tml_title_filter( $title, $action ) { if ( 'register' == $action ) return __( 'Application' ); return $title; } add_filter( 'tml_title', 'tml_title_filter', 10, 2 ); ?>I am running WP 3.1, TML 6.1.2, PHP5, and the theme is of my own development.
The page in question is: http://tinyurl.com/649r9xl
The page template code is: https://gist.github.com/871861Let me know what you think.
Hi, all.
Wanted to check back in to see if there was a resolution on this one.
Same issue.I am using the 1.9.3-alpha3 version available.
It was happening with the release offered from the WP Repository so tried the dev version.Is there any place I can start a search for more digging or assistance?