• I have a shortcode for embedding a Flash video inside of posts. I’d like to load it with swfobject.js, so I need to load that script before loading the video. I thought I could just call wp_head() and insert the script element in the html head. However, it doesn’t seem to do anything.

    So I guess my question is if you can call wp_head() from a shortcode function? Otherwise, what would be the alternatives? (Except from inserting the script element in the html body.)

  • The topic ‘wp_head() from a shortcode function?’ is closed to new replies.