Welcome, guest!

Feel free to read the blog, browse for themes, or join the club.

Get the Image with Query Posts using custom image fields

  1. Hi again - back for more.....
    I am using Query Posts to create a custom home page directory
    I have get the image installed.
    I would like to show thumbnails besides each excerpt
    My images are stored in custom field called my_image and I use full URL path to store them
    (i.e. http://domainname.com/images/imagename.jpg )

    I edited the array field in get the image to the following:

    Code deleted by the administrator. In the future, please post code between backtick characters so that it appears correctly on screen.

    No joy. What have I missed here?

    TIA

  2. You must be a logged-in exclusive member to view this reply.

  3. Plugin restored

  4. You must be a logged-in exclusive member to view this reply.

  5. Ask the risk of seeming idiotic for option 1 :

    I add the image in custom field named Thumbnail or thumbnail
    Can I use the full path or a relative path to the images?

    Thanks!

  6. You must be a logged-in exclusive member to view this reply.

  7. got it . thanks. one more assumption is the size of the image the size that gets shown? meaning there are no size image controls at this time?

  8. You must be a logged-in exclusive member to view this reply.

  9. Justin,
    What is the standard add filter code to use with the get the image plugin?

    TIA

  10. You must be a logged-in exclusive member to view this reply.

  11. function getimagefunction() {
    get_the_image(array('image_scan'=>true));
    
    }
    add_filter('the_content', 'getimagefunction');

    this displays the image but removes the rest of the content
    any suggestions?

  12. not sure if your problem is solved ... but your function replaces the_content ... there are many tutorials around gooogle is your friend :D - if still questions arise ask them :D

Reply

You must log in to post.

Limited Access

If you have an account, please take a moment to log in.

Non-exclusive members have limited access to the support forums.

To enjoy the full range of support, sign up for an exclusive membership in the theme club.

Support Forums

  • Bliss Theme (202 posts)
  • Hybrid Theme (17,018 posts)
  • Options Theme (10,322 posts)
  • Structure Theme (2,624 posts)
  • Visionary Theme (767 posts)
  • bbPress Themes (293 posts)
  • WordPress Plugins (1,617 posts)
  • General Discussion (3,978 posts)