Support

Account

Forum Replies Created

  • This should work and do what I want, but it does not work. Someone to help ?? I do not know where I’m going wrong.

    $args = array(
    	'taxonomy' => 'custom_taxonomy',
    	'orderby' => 'name',
    	'order' => 'ASC',
    	'meta_query' => array(
    		array(
    			'key' => 'my_custom_field', // name of custom field
    			'value' => "{$post_id}", // matches exactly "123", not just 123. This prevents a match for "1234"
    			'compare' => 'LIKE'
    		)
    	);
    	$atv = get_terms($args);
    	var_dump($atv)
  • remove this part and is now functioning normally
    add_filter (‘acf /settings/dir’, ‘my_acf_settings dir’);

  • Thank you for your help and the explanation. Was very good

  • I have a custom field of a button. He can activate it or not in the post. If it is post photos it should is enabled.

    It works very well in recent posts. But I have many old posts and can not edit one by one to activate the field.

    I wonder where I apply a filter to change the true or false depending on the category of the post. My doubt is exactly where I apply the filter. ‘the_content’, ‘acf/load_field’, ‘acf/load_value’?

    I’m a bit lost about it.

    Sorry for my bad English. I am doing my best.

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