Zurück ACF Feld als Shortcode WordPress Functions.php Datei

Wie kann ich eine Advanced-Custom-Field als Shortcode. Ive verwendet den folgenden code in das WordPress functions.php Datei, aber kein Glück.

Hier ist mein Code:

function location_date_func( $atts ){

    return "<?php the_field('location_date', 658); ?>";
}
add_shortcode( 'location_date', 'location_date_func' );
InformationsquelleAutor johnnyr209 | 2014-07-09
Schreibe einen Kommentar