• I am building a very simple site using wordpress as a CMS. Using Dreamweaver to develop. I am able to pull all of the content from MySQL to display the post content along with the attached image (original size), but I can’t figure out how to display the thumbnail, as it is buried in the wp-postmeta field ‘_wp_attachment_metadata’ – is there a way to parse this out so that the thumbnail can be displayed? Is there a wordpress function that is called to display the thumbs, and if so how would I add that to my page?
    thanks for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mparkes

    (@mparkes)

    Thanks esmi
    I tried adding an include file to the head of my page for the thumbnail file:

    <?php include(“wp-includes/post-thumbnail-template.php”); ?>

    but when I test my page I get the error:

    Fatal error: Call to undefined function get_post_meta() in C:\xampp\htdocs\wordpress\wp-includes\post-thumbnail-template.php on line 37

    Are there a lot of other wordpress files I need to include in my page to get this function to work? As I am desiging in dreamweaver outside of the wordpress backend, I have to make sure all the hooks are in place… working a littl in the dark here so thanks for any tips.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display thumbnail image from wp_postmeta?’ is closed to new replies.