Skip to content

October 5, 2009

Running quick tags outside of the loop

For anyone who has had the same frustration I have where you need tocall a function from a plugin, but they only have a quick tag you insert into the post/page.

Solution

<?php echo apply_filters(“the_content”,”[Insert Your Quick Tag Here]“); ?>

This will apply the filter that is usually applied when a post is queried, and display the quick tag as it would normall if you inserted via the backend.

Popularity: 2% [?]

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments