WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there any hook for a tag page, so I can alter it's content before outputting?

share|improve this question
Do you mean wp-admin page or front-end tag archive? What exactly do you want to modify? – Rarst Mar 21 '11 at 14:51
front-end only. – user4110 Mar 21 '11 at 16:38
Duplicate question wordpress.stackexchange.com/questions/12640/… – Wyck Mar 21 '11 at 17:48

There is a conditional called :


//From the codex

// When any Tag archive page is being displayed.

// When the archive page for tag with the slug of 'mild' is being displayed.

// Returns true when the tag archive being displayed has a slug of either "sharp", "mild", or "extreme".


share|improve this answer

Archive pages are not generated by some specific function, but are produced by processing template file from your theme.

For tag archive page see Template Hierarchy > Tag display to determine which file in your theme could be it.

If theme you are using comes from official repository and likely to be updated it's good practice to create Child Theme for it, so that your tweaks survive update.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.