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}}]
hi guys, im having the same issue with Rev Slider returning YYYYMMDD instead of the format specified in the return format of ACF.
I cant get anything to work for me, any ideas?
Been on to the developers and they wrote a shortcode for me
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' );
[getdatefromacf metaid='date_to' postid=%post_id%]
[getdatefromacf metaid='date_from' postid=%post_id%]
It solves the problem
Thanks for the input John, I just cant figure out how the Plugin render the date at the moment, I’ve gone back to the free version of ACF as the EssGrid plugin renders the date correctly.
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.