WordPress.org

Ready to get started?Download WordPress

Forums

Get Featured Image (1 post)

  1. paulofernandesj
    Member
    Posted 3 years ago #

    Hi everybody

    I'm using the following command to get my post data
    $query = new WP_Query('pagename=module/'.$slug);

    But, the featured image wasn't there. how can I get the featured image?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by paulofernandesj
  • This topic is not resolved
  • WordPress version: 3.1.3