Help me with Post Title
-
Hi there !
Now my title in browser are :
Title of post | Mywebsite.com
I’m using SEO Ultimate plugin for WP and i wanna modify title to show like this :
Title of post | Manufacturer | Platform | Mywebsite.com
In database, in wp_posts, in structure, i have fields for manufacturer and platform (with data entry for every posts).
If i change $post->post_title to $post->manufacturer or $post->platform it’s show me what i need ….but i need all of them in the title.
Thanks in advance.
Here is the code where i think i need modification:
//Load post/page titles $post_id = 0; $post_title = ''; $parent_title = ''; if (is_singular()) { $post = $wp_query->get_queried_object(); $post_title = strip_tags( apply_filters( 'single_post_title', $post->post_title ) ); $post_id = $post->ID; if ($parent = $post->post_parent) { $parent = &get_post($parent); $parent_title = strip_tags( apply_filters( 'single_post_title', $parent->post_title ) ); } }
The topic ‘Help me with Post Title’ is closed to new replies.