Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Evaluate parent field from child post

$
0
0

I have tried this code from your site and it works for the post itself.

[wpv-if image="_thumbnail_id" evaluate="!empty($image)"]<div class="my_featured_image">
  [wpv-post-featured-image size="full"]
</div>[/wpv-if]

However what I'm trying to do is to query the parent post to see if the parent has a thumbnail so I can display that. My custom post name for the parent is "clinics"

How can I modify the above code to achieve that?

Thanks


Viewing all articles
Browse latest Browse all 20145

Trending Articles