Support

Account

Forum Replies Created

  • 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.

Viewing 4 posts - 1 through 4 (of 4 total)