Forum Replies Created

  • Sorry John, it is PHP, in the parent theme there’s a file which is /acf-fields/team.php and in there is:

    add_action( 'acf/include_fields', function() {
    	if ( ! function_exists( 'acf_add_local_field_group' ) ) {
    	acf_add_local_field_group( array(
    	'key' => 'group_652407356c71f',
    	'title' => 'Practice Team',
    	'fields' => array(
    	'location' => array(
    				'param' => 'page',
    				'operator' => '==',
    				'value' => '247',
    	'menu_order' => 0,
    	'position' => 'acf_after_title',
    	'style' => 'seamless',
    	'label_placement' => 'top',
    	'instruction_placement' => 'label',
    	'hide_on_screen' => array(
    		0 => 'the_content',
    	'active' => true,
    	'description' => '',
    	'show_in_rest' => 0,
    ) );
    } );

    So this is on many sites but on this 1 particular site I need to be able to just add an additional image field to one of my repeaters, so was hoping to overwrite this function in the child themes functions.php without needing to copy the file.

  • When you create a new custom post type, you don’t automatically get a new template created for it, you can however create your own and upload it in to your theme.

    For your archive template, you can create archive-{post_type}.php and for the single post template you can create single-{post-type}.php

    Hope this helps.

  • Hi John

    I’ve just noticed on github that you’ve updated the plugin so have updated this on site, tested it and it works a charm, that’s great work considering you weren’t confident you could do it. I’d like to buy you a beer, how can I donate…

  • I’m not an advanced developer but can sort of understand why it’s happening myself, the user doesn’t have write permissions to that field but requires it to write the value to another row ID in the repeater (something along those lines?)

    So if I were to make the text field visible to all, but read-only to users, would this have the same issue?


  • Hi vespino

    I am having the same trouble you did, I used your code above but I got ‘Can’t find variable: infoWindows’ in the console.

    When I changed all infoWindows to infoWindow I then got ‘TypeError: infoWindow.push is not a function. (In ‘infoWindow.push(infoWindow)’, ‘infoWindow.push’ is undefined)’

    I’m assuming you have got yours working, could I please see your full script for the map?


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