Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Dynamic pages on my site automatically have their own Title.

I'd like to tell these pages to pull certain fields to load into the Title tag and thus display on the Title to the viewer.

Is this possible to do through the Theme Editor? I see certain templates listed in the Theme Editor. Taxonomy.php or single-listing.php which sounds like the listing pages that I want to set up these Title tags for.

THANKS

share|improve this question
1  
You'll need to be much more specific to get a worthwhile answer. What fields do you want? Where are these fields stored? Can you give an example of what you're talking about? When you say "Dynamic Page," do you mean date, tag, and category "Archives"? – mrwweb Apr 30 '12 at 22:09
Please rephrase your question. It is very hard to tell what's being asked here. – toscho May 1 '12 at 0:12

closed as not a real question by toscho May 13 '12 at 12:31

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

1 Answer

The title tag will be in header.php. However the best way to create custom title tags is to use the wp_title function which is filterable. That way you can keep your template files tidy.

If you're not sure how to set this function up and filter it to your needs the best option would be to use a plugin such as yoast's WordPress SEO. This gives you the ability to setup title templates that will display by default for example category_name - post_name - site_name, or, it also gives you the ability to add a custom title tag on a per page/post basis which will overide the default title template for that post type.

Note that if you go down the plugin path your header.php file will still need wp_title function placed between the title tags.

<title><?php wp_title(); ?></title>
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.