Home › Forums › Front-end Issues › Displaying a group outside WordPress Loop › Reply To: Displaying a group outside WordPress Loop
Hi @jazibzaman
Did you try the global variable solution I gave you before?
Also, could you please check if your data.php can get extra parameters from the $_GET variable like the following?
In template:
<li><a href="<?php echo get_stylesheet_directory_uri(); ?>/includes/tabs/data.php?postid=123" class="tab">HTML</a></li>
In data.php:
$group_ID = $_GET['postid'];
This page should give you more idea about it: http://php.net/manual/en/reserved.variables.get.php.
Hope this helps!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.