ACF & PHP-API (WordPress): verschil tussen versies
Naar navigatie springen
Naar zoeken springen
Regel 32: | Regel 32: | ||
?> | ?> | ||
− | + | </pre> | |
Uitvoer: | Uitvoer: | ||
Versie van 29 jul 2022 09:58
Zie ook
the_field()
Voorbeeld:
<?php # # ############################################################### # Set variables & load libraries ############################################################### # echo "Set variables & load libraries...\n"; $path="/var/www/example.com/"; require_once($path . "/wp-load.php"); ############################################################### # ACF - the_field ############################################################### # echo "ACF - the_field...\n"; the_field("hero_text",7); ?>
Uitvoer:
$ php 110.php Set variables & load libraries... ACF - get_field... Eet more chips!
Bronnen
- https://www.advancedcustomfields.com/resources/
- https://www.advancedcustomfields.com/resources/#functions - Alle PHP-functies bij elkaar!