Title: Inserting function in theme template file
Last modified: August 21, 2016

---

# Inserting function in theme template file

 *  [Profusion](https://wordpress.org/support/users/profusion/)
 * (@profusion)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/inserting-function-in-theme-template-file/)
 * Hi. Thanks for the great plugin.
 * I’ve managed to get your “BlogPostExample” file to work. Is it possible to insert
   the function anywhere I want in my theme template file with something like
 * ” <?php if(function_exists(‘XXX’))echo XXX(); ?> “
 * I really want to position the flag and link better than just placing it at the
   end of the post.
 * Thank you.
 * [http://wordpress.org/plugins/bp-moderation/](http://wordpress.org/plugins/bp-moderation/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [llud](https://wordpress.org/support/users/llud/)
 * (@llud)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/inserting-function-in-theme-template-file/#post-4400442)
 * I second this.
 * I need to position the plugin better, it goes all around.
 *  [NicolaCirotto](https://wordpress.org/support/users/nicolacirotto/)
 * (@nicolacirotto)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/inserting-function-in-theme-template-file/#post-4400450)
 * Me too
 *  [vaperooms](https://wordpress.org/support/users/vaperooms/)
 * (@vaperooms)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/inserting-function-in-theme-template-file/#post-4400451)
 * Me too I need it A) based on category and also b) a break space to drop it down
   somewhat as too close to featured images!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Inserting function in theme template file’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/bp-moderation.svg)
 * [BuddyPress Moderation](https://wordpress.org/plugins/bp-moderation/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/bp-moderation/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/bp-moderation/)
 * [Active Topics](https://wordpress.org/support/plugin/bp-moderation/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bp-moderation/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bp-moderation/reviews/)

## Tags

 * [theme template](https://wordpress.org/support/topic-tag/theme-template/)

 * 3 replies
 * 4 participants
 * Last reply from: [vaperooms](https://wordpress.org/support/users/vaperooms/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/inserting-function-in-theme-template-file/#post-4400451)
 * Status: not resolved