This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[acf-render name="acfr_demo_image"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$wordpress_path = "/path/to/my/wordpress/install"; | |
// may not be needed if inside WP and hooking into actions | |
// activate_plugin() is in plugin.php | |
require_once( $wordpress_path . "/wp-load.php" ); | |
require_once( $wordpress_path . "/wp-admin/includes/plugin.php"); | |
$plugins = array("cforms", "w3-total-cache", "wordpress-seo"); | |
foreach ($plugins as $plugin){ | |
$plugin_path = $wordpress_path."wp-content/plugins/{$plugin}.php"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$plugin_path = 'custom-plugin'; | |
activate_plugin( $plugin_path ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="acf-template acf-template-text"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[acf-render name="my-field"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[acf-render name="first_name" post="123" template="text"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[acf-render name="first_name"] | |
Basic example rendering a text field value. Field name is "first_name". Default template (text) will be used to render. No label will be shown. | |
[acf-render name="first_name" label=1] | |
Default template (text) will be used, Field label will be shown. | |
[acf-render name="first_name" post="89"] | |
Load the value of first_name field from post ID 89. | |
[acf-render name="first_name" template="custom-text"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'color' => array( | |
'field_types' => array('color'), | |
), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<razor> | |
<catalogs> | |
<catalog> | |
<name>Catalog One</name> | |
<path>/catalog-one</path> | |
</catalog> | |
<catalog> | |
<name>Catalog Two</name> | |
<path>/catalog-one/catalog-two</path> | |
</catalog> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<razor> | |
<catalogs> | |
<catalog> | |
<name>Catalog Name</name> | |
<path>/path</path> | |
</catalog> | |
</catalogs> | |
</razor> |