Support

Account

Forum Replies Created

  • Ended up changing the taxonomy field (taxonomy.php):

    Lines 115-134:

    $args = apply_filters('acf/fields/taxonomy/query', $args, $field, $options['post_id']);
    $args = apply_filters('acf/fields/taxonomy/query/name=' . $field['name'], $args, $field, $options['post_id'] );
    $args = apply_filters('acf/fields/taxonomy/query/key=' . $field['key'], $args, $field, $options['post_id'] );
    			
    // get terms
    $terms = get_terms( $field['taxonomy'], $args );
    		
    // sort into hierachial order!
    if( is_taxonomy_hierarchical( $field['taxonomy'] ) ) {
    // this will fail if a search has taken place because parents wont exist
    if( empty($args['search']) ) {
    $terms = _get_term_children( 0, $terms, $field['taxonomy'] );
    }
    }

    Replaced with:

    $all_taxonomies = get_taxonomies();
    $taxonomies = array();
    
    foreach ($all_taxonomies as $taxonomy) {
    if ($taxonomy != 'post_tag' && $taxonomy != 'nav_menu' && $taxonomy != 'link_category' && $taxonomy != 'post_format') {
    array_push($taxonomies, $taxonomy);
    }
    }
    		
    $args = array('orderby'           => 'name', 'order'             => 'ASC', 'hide_empty'        => false); 
    
    $terms = get_terms($taxonomies, $args);

    And Line 489:

    $terms = $this->get_terms( $field['value'], $field['taxonomy'] );

    Replaced with:

    $all_taxonomies = get_taxonomies();
    $taxonomies = array();
    
    foreach ($all_taxonomies as $taxonomy) {
    if ($taxonomy != 'post_tag' && $taxonomy != 'nav_menu' && $taxonomy != 'link_category' && $taxonomy != 'post_format') {
    array_push($taxonomies, $taxonomy);
    }
    }
    		
    $args = array('orderby'           => 'name', 'order'             => 'ASC', 'hide_empty'        => false); 
    
    $terms = get_terms($taxonomies, $args);

    The following will output all terms from the ‘category’ taxonomy and from all other registered taxonomies.

  • Hi @Elliot Condon

    You confused the_content with another ACF field, the default editor was removed by me in functions.php.

    Attached is another screenshot after I got it back:

    – Ido

  • This reply has been marked as private.
  • @Elliot

    The problem was partially solved, I’ll explain.
    Before the fix you sent, the problem occurred as soon as ACF was activated, meaning, even when no WYSIWYG field was present, the editor’s advanced controls were missing.

    Now, the problem only occurs when I add the WYSIWYG field and leave the default editor as well:

    This is the ACF WYSIWYG field:

    And this is the default editor:

    As soon as I’ll remove the WYSIWYG field – the advanced controls are back.

    Cheers

  • Elliot,

    Seems to have fixed the problem.
    Still, when having ACF WYSIWYG field together with the default editor, disables it’s advanced controls.

    Thank you!

    – Ido

  • nevermind, flexible content was the solution.

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