Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Code to change title (anonimous entries)
- // To change for each entry title
- add_filter( 'the_title', 'ttshowcase_modified_post_title');
- function ttshowcase_modified_post_title ($title, $id = null) {
- if('ttshowcase' == get_post_type($id) && !is_admin() && in_the_loop()) {
- $title = 'Hospital Client';
- }
- return $title;
- }
- // To change in the page title
- add_filter( 'wp_title', 'ttshowcase_modified_page_title');
- function ttshowcase_modified_page_title ($title, $id = null) {
- if('ttshowcase' == get_post_type($id)) {
- $title = 'Hospital Client ';
- }
- return $title;
- }
Advertisement
Add Comment
Please, Sign In to add comment