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

pretty simple. I'm creating a plugin and I want to dynamically insert some text that will change every hour into the line that is directly below the title of a post (So filters are no good). It's the <div class="entry-meta">. The <div class="entry-utility"> at the bottom of the post would be good too. I can't seem to find a hook for this and I'm guessing there is none.

Right now the solution I have is to hook into "the_content" and place it as a footer, but it looks reaaally bad because it's a small piece of text with an entire line to itself. It would look considerably better if I could insert it into those lines mentioned.

share|improve this question
up vote 1 down vote accepted

The lines you mention are most likely part of your theme.

You will need to either:

  • figure out which functions/templates output them and if they have hooks to use;
  • edit theme (create child theme) to add your own function to output what you want.
share|improve this answer
Crap, I didn't want the plugin to become a theme : / Doesn't that run the risk of colliding with other themes? – Thirlan Mar 30 '11 at 21:47
@Thirlan essentially yes. If you want to release such functionality as public plugin you should probably provide template tag function that others can insert in their theme. There isn't really any clean way to insert something at arbitrary point without hooks available. – Rarst Mar 30 '11 at 22:11

Your Answer


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

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