Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I am looking to add content before the post title but not included in the markup of the title itself so adding to the_title doesn't seem to be the right hook for this.

Thanks

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

No, there is no reliable hook. The markup is provided by the theme, and there unlimited variants. You will have to change the theme’s markup directly.

share|improve this answer
    
hmmm, not the answer I was looking for :) I'm looking to have the plugin operate totally independently to the theme so it looks like it's back to the drawing board. Thanks, K –  kerrin Jul 4 '12 at 2:58
    
Why can't you use the_title filter and just prefix your markup? –  KDM Jul 4 '12 at 4:16
    
@KDM Because you cannot break out of a <h1> without creating some orphaned markup. –  toscho Jul 4 '12 at 4:26
add comment

Your Answer

 
discard

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.