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
<?php | |
/* | |
* ----------------------------------------------------------------------------- | |
* Advanced Custom Fields Modifications | |
* ----------------------------------------------------------------------------- | |
*/ | |
function PREFIX_apply_acf_modifications() { | |
?> | |
<style> |
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
$taxonomy_term = 'example'; | |
$related_terms = array( | |
__( 'Parent' ) => array( | |
__( 'Child 1' ), | |
__( 'Child 2' ), | |
), | |
__( 'Parent 2') => array( | |
__( 'Child 3' ), | |
__( 'Child 4' ), |
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
<?php | |
/** | |
* Plugin Name: Advanced Custom Fields: Gutenberg Blocks | |
* Plugin URI: https://www.n7studios.co.uk | |
* Version: 1.0.0 | |
* Author: n7 Studios | |
* Author URI: https://www.n7studios.co.uk | |
* Description: Example code to register Advanced Custom Field Groups as Blocks. Requires ACF 5.8+ | |
*/ |
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
// For one level deep Wordpress nested terms. | |
$taxonomy_term = 'example'; | |
$related_terms = array( | |
__( 'Parent' ) => array( | |
__( 'Child 1' ), | |
__( 'Child 2' ), | |
), | |
__( 'Parent 2') => array( |