Support

Account

Forum Replies Created

  • That was it. Thank you! Just need to add the new drop-downs.

  • I’ve labelled the repeater ID as ‘master_content_type’

    And referenced it in the content php file.

        <?php if (have_rows('master_content_type')) : ?>
        <section id="truffles_contentWrapper" class="truffles_contentType truffles_content">
            <?php while (have_rows('master_content_type')) : the_row(); 
      // Available Variables under sub field 'select'

    I also tried to register a new field in the functions.php file.

    acf_add_local_field_group( array(
    	'key' => 'group_649377b3715ff',
    	'title' => 'Master Page Builder',
    	'fields' => array(
    		array(
    			'key' => 'field_649377b3bddda',
    			'label' => 'Master Content Type',
    			'name' => 'master_content_type',
    			'aria-label' => '',
    			'type' => 'repeater',

    Should I be modifying something else? Or registering the new field with JSON?

  • Should I change it to ‘content_type’ then, like the advanced custom layout?

    I have the repeater ID labelled ‘master_content_type’

    and then referenced in the content file:

        <?php if (have_rows('master_content_type')) : ?>
        <section id="truffles_contentWrapper" class="truffles_contentType truffles_content">
            <?php while (have_rows('master_content_type')) : the_row(); 
      // Available Variables under sub field 'select'

    There’s also this code in the functions.php

    add_action( 'acf/include_fields', function() {
    	if ( ! function_exists( 'acf_add_local_field_group' ) ) {
    		return;
    	}
    
    	acf_add_local_field_group( array(
    		'key' => 'group_649377b3715ff',
    		'title' => 'Master Page Builder',
    		'fields' => array(
    			array(
    				'key' => 'field_649377b3bddda',
    				'label' => 'Master Content Type',
    				'name' => 'master_content_type',
    				'aria-label' => '',
    				'type' => 'repeater',

    Should I use JSON to register new fields?

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