Support

Account

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}}]