I'm using Visual Composer in my Wordpress site. I need to get the ID of the post which is rendered by grid builder (VC).
In this file, i tried the following things in this file: vc_gitem_post_meta.php:
$post = get_post();
$postid = $post->ID;
$id = get_the_ID();
$idloop = $wp_query->post->ID;
All of them are returning an empty result.
Any ideas?
Thanks for looking at the problem.