ThemeShaper Forums » Thematic

Adding this plugin code

(2 posts)
  • Started 2 years ago by cregy
  • Latest reply from nathanrice
  • This topic is not resolved
  1. Hi All

    In order to add this plugins code:
    <http://return-true.com/2008/12/wordpress-plugin-the-attached-image/>
    I am presuming I must do this via the function.php. Can anybody help or show me how please?

    Thanks

    Rich

    Posted 2 years ago #
  2. You have several options, depending on where (in the loop) and in which loop you are wanting the image to display.

    But as an example, you need to look through the extensions/content-extensions.php file and find an action hook in one of the loops that you'd like to use, then hook the 'the_attached_image' function to that hook, like so:

    add_action('hook_you_want_to_use', 'the_attached_image');
    Posted 2 years ago #

RSS feed for this topic

Reply

You must log in to post.