Home › Forums › General Issues › ACF and Revolution Slider date display › Reply To: ACF and Revolution Slider date display
Hi John
Thanks for all the info, i ended up creating a shortcode the Ess. Grid and Rev Slider plugins.
function getdatefromacf_shortcode( $atts ) {
// Attributes
extract($atts = shortcode_atts(
array(
'postid' => '',
'metaid' => 'date_from'
),
$atts
));
return get_field($metaid, $postid);
}
add_shortcode( 'getdatefromacf', 'getdatefromacf_shortcode' );
This in Ess. Grid
[getdatefromacf metaid='date_from' postid=%post_id%]
and this in Rev SLider
[getdatefromacf metaid='date_from' postid={{id}}]
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.