Support

Account

Home Forums Search Search Results for 'taxonomy'

Search Results for 'taxonomy'

topic

  • Helping

    Taxonomy Term checkboxes order in admin

    Is it possible to order the taxonomy terms alphabetically with the admin. I have an ACF Taxonomy field with checkboxes, but it’s outputting them in the order the terms were created and not alphabetically. How would I go about changing that? Here’s a screenshot for reference: http://b3.ms/Oq5nRlBQe90w

  • Solved

    Only list custom post types that match sub field taxonomy

    I have a custom post type (Colour Swatches) The post type allows you to add a colour and allocate it a category in a repeater. I am listing the post types on a page along with the colours that match a specific category.
    Listing the correct colours or each post type is working, this uses a for each loop querying the category sub field. However if no colours match the query the title still appears. I would like the page not to be listed at all if any of the sub fields do not match the category.
    I assume the best way to achieve this is through a meta query, but I am not sure where to start with this.

    The code below is as far as I’ve got..

    <?php 
    $args = array(
        'post_type'     => 'colourswatch',
        'order'       => 'ASC',
        'meta_query' => array(
            array(
                // no idea
            )
        )
    );
    $query = new WP_Query( $args );
            
    if ( $query->have_posts() ) : 
    ?>
    <div class="container container--narrow swatches">
        
        <?php while ( $query->have_posts() ) : $query->the_post(); ?>
        <div class="swatches__material">
            
            <?php if( have_rows( 'colour_swatch' ) ): ?>
            // I need to hide this if the category does feature for any colours
            <h3 class="swatches__title"><?php the_title(); ?></h3>  
            <ul class="swatches__colours">
                <?php while ( have_rows( 'colour_swatch' ) ) : the_row();
                
                $terms = get_sub_field( 'availability' );            
                foreach( $terms as $term ) {
                    if ( $term->name == 'windows' ) : ?>
                    <li class="swatches__swatch">
                        <div class="swatches__colour" style="background:<?php the_sub_field( 'colour' ); ?>"></div>
                        <h4 class="swatches__name"><?php the_sub_field( 'colour_name' ); ?></h4>
                    </li>
                    <?php endif; ?>
                <?php } ?>
                <?php endwhile; ?>
            </ul>
            
            <?php endif; ?>
        </div>
        <?php endwhile; ?>
    </div>
    <?php endif; wp_reset_query(); ?>
  • Unread

    [backend] Can't add image field to custom taxonomy

    Hello,

    I’m not 100% sure but it looks like a bug to me.

    I have a CPT called “Event”. With CPT UI, i created a custom taxonomy called “Event type”. This “Event type” taxonomy is only used in the Event post type.

    After few months, i need to add an image field to this taxonomy. I tried 2 ways to do this but nothing worked. See my screenshots and you will understand.

    How should i do what i want to do? Please tell me.

    Thanks for your help,
    Josy

    ———————————–
    I run ACF Pro v5.9 + CPT UI 1.7.4.

  • Helping

    Taxonomy Term Image 'post_per_page' posts_per_page doesn't work

    This code working with image and title but post_per_page doesn’t work and trying 'number' =>1
    is work but if any taxonomy Less than one Or equal to one Info will not be showing.

    
                    <?php 
                        $tax = 'studio';
                        $types = get_terms( array( 
                            'post_per_page' => 1,
                        )
                    );
                        foreach($types as $type) { ?>
                        
                        <?php 
                            $term_link = get_term_link( $type );
                            $image = get_field('studio_avatar', 'studio_' . $type->term_id . '' ); 
                            if ( has_term( $type->term_id, 'studio')) {
    
                                echo '<a class="author author-avt inline" href="' . esc_url( $term_link ) . '">';
                                    echo '<img class="si-user" src="' . $image['url'] . '" /> ';
                                    echo '<span>'. $type->name . '</span>';
                                echo '</a>';
                                
                                echo '<span class="posted-on inline">';
                                    echo '<i class="si-clock"></i><time>'. $post_date = get_the_date("j F Y") .'</time>'; 
                                echo '</span>';   
                            }    
                        ?>
                     <?php } ?>
    
  • Solved

    Can't get link field in taxonomy-studio.php

    I’m trying to use this code from documentation and tweak it a bit.
    but in taxonomy-studio.php not showing.

    I’m trying inspect in chorme code not showing.

    <?php 
        $link = get_field('website');
        if( $link ): 
            $link_url = $link['url'];
            ?>
            <a class="button" href="<?php echo esc_url( $link_url ); ?>" >
                <span>
                    <i class="si-globe">website</i>
                </span>
            </a>
    <?php endif; ?>
  • Solving

    use get_field() inside acf/fields/taxonomy/query/ filter

    Hi !
    Is it possible to use get_field() inside acf/fields/taxonomy/query/ filter ?
    I try to get the value from an other field from the filter function but it’s seems that what is return is null. The get_filed() function works well outside of this filter. Also how can i debug my variable inside the acf/fields/taxonomy/query/ filter ? When i use var_dump or echo inside the filter, it prevent the filter function from working.

    
    function custom_acf_taxonomy_filter( $args, $field, $post_id ){
        $parent = get_field('field_5f326eac0b9d8', false);
        $args['parent'] = $parent->term_id;
        return $args;
    }
    add_filter('acf/fields/taxonomy/query/key=field_5f32a57681da9', 'custom_acf_taxonomy_filter',11,3);
    

    Thanks a lot for your help

  • Unread

    List the taxonomy archive pages

    Hello,
    I’ve got a taxonomy setup for posts that I use to create relations for archive pages and I’ve now connect these with pages through ACF taxonomy field. I’m trying to setup a custom filter for Elementor that will list the archive pages on my page.

    I’ve gotten the suggestion to use the acf/fields/taxonomy/query filter but I can’t figure out how to: https://www.advancedcustomfields.com/resources/acf-fields-taxonomy-query/

    I’ve got a working code that list child pages in Elementor which seems easy enough:

    // Showing children of current page in Posts Widget
    add_action( ‘elementor_pro/posts/query/my_custom_filter’, function( $query ) {
    // Get current post tags
    $current_page = get_queried_object_id();
    // Modify the query
    $query->set( ‘post_parent’, $current_page );
    } );

    I’ve tried adapt the code but I don’t seem to have enough knowledge to find a way forward. Can anybody help me figure out how to make a similar code for listing archive pages as described above? Would be really grateful for any help or suggestion.

reply

  • Hi there,

    I’m encountering a similar issue with my site. After updating some plugins, I started getting an error about converting a WP_Term object to a string, especially when using ACF and Elementor Pro together. The error message I’m getting is quite similar to the one posted here.

    In my case, when ACF is enabled, the error appears, but once I disable it, the issue seems to resolve, although that causes other problems with my site’s functionality. It seems like the issue is with how ACF is handling taxonomy fields and Elementor’s dynamic tags.

    Here’s how I solved it on my website:

    Check ACF Field Settings: I went to the ACF field that was causing the issue and made sure the Return Value for taxonomy fields was set to “Term Name” instead of “Term Object.” This ensured that a string value (the term name) was returned instead of a WP_Term object.

    Custom PHP Fix: I also added a small function to handle WP_Term objects, which converts them to a string (the term name) when necessary. Here’s the code I added to my theme’s functions.php:

    php
    Copy
    Edit
    function convert_wp_term_to_string($term) {
    if (is_a($term, ‘WP_Term’)) {
    return $term->name; // Or $term->slug, depending on what you need
    }
    return $term;
    }
    This ensured that any WP_Term object passed to ACF or Elementor was converted properly to a string before being processed.

    Tested with Other Plugins: Finally, I made sure there were no conflicts with other plugins by disabling them one by one. The issue was only occurring with the combination of ACF and Elementor, so after tweaking the ACF settings and adding the custom PHP, the error was resolved.

    If anyone is still facing this issue, I recommend trying these solutions out. They worked for me, and the error no longer appears on my site Cinema Apk.

    Thanks in advance!

  • So I will answer my own question. For image and taxonomy fields, the way to set a default value is programmatically using add_filter for acf/load_value. In both cases, the filter function returns an ID value, the ID of the image or the ID of the term.

    function gci_acf_load_value_graphic($value, $postid, $field) {
    	$retval = $value;
    	// We only do this for fields named "graphic".
    	if ($field['_name'] != 'graphic') {
    		return($retval);
    	}
    
    	$flds = ['fb1_graphic', 'fb2_graphic', 'fb3_graphic', 'fb4_graphic'];
    	if (in_array($field['name'], $flds)) {
    		if (!$value) {
    			$img = gci_acf_get_default_graphic($field['name']);
    			$retval = $img['ID'];
    		}
    	}
    	return($retval);
    }
    add_filter('acf/load_value/type=image', 'gci_acf_load_value_graphic', 11, 3);
  • This error started after we created a custom image field for categories in ACF and now when we try to create a new Archive template in Elemetor we get the following error:

      Uncaught Error: Object of class WP_Term could not be converted to string in /nas/content/live/stage/wp-content/plugins/advanced-custom-fields-pro/includes/acf-value-functions.php:96
    Stack trace:
    #0 /nas/content/live/stage/wp-content/plugins/advanced-custom-fields-pro/includes/api/api-template.php(246): acf_get_value(Object(WP_Term), Array)
    #1 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/dynamic-value-provider.php(48): get_field_object('field_67a642620...', Object(WP_Term))
    #2 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/dynamic-value-provider.php(60): ElementorPro\Modules\DynamicTags\ACF\Dynamic_Value_Provider->get_field_object('field_67a642620...', Object(WP_Term))
    #3 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/dynamic-value-provider.php(22): ElementorPro\Modules\DynamicTags\ACF\Dynamic_Value_Provider->get_taxonomy_field_data('field_67a642620...', 'category_carous...')
    #4 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/module.php(170): ElementorPro\Modules\DynamicTags\ACF\Dynamic_Value_Provider->get_value('field_67a642620...')
    #5 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/dynamic-tags/acf/tags/acf-image.php(40): ElementorPro\Modules\DynamicTags\ACF\Module::get_tag_value_field(Object(ElementorPro\Modules\DynamicTags\ACF\Tags\ACF_Image))
    #6 /nas/content/live/stage/wp-content/plugins/elementor/core/dynamic-tags/data-tag.php(44): ElementorPro\Modules\DynamicTags\ACF\Tags\ACF_Image->get_value(Array)
    #7 /nas/content/live/stage/wp-content/plugins/elementor/core/dynamic-tags/manager.php(207): Elementor\Core\DynamicTags\Data_Tag->get_content()
    #8 [internal function]: Elementor\Core\DynamicTags\Manager->get_tag_data_content('f61fc6a', 'acf-image', Array)
    #9 /nas/content/live/stage/wp-content/plugins/elementor/core/dynamic-tags/manager.php(100): call_user_func_array(Array, Array)
    #10 /nas/content/live/stage/wp-content/plugins/elementor/core/dynamic-tags/manager.php(61): Elementor\Core\DynamicTags\Manager->parse_tag_text('[elementor-tag ...', Array, Array)
    #11 /nas/content/live/stage/wp-content/plugins/elementor/includes/controls/base-data.php(91): Elementor\Core\DynamicTags\Manager->parse_tags_text('[elementor-tag ...', Array, Array)
    #12 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/controls-stack.php(1329): Elementor\Base_Data_Control->parse_tags('[elementor-tag ...', Array)
    #13 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/controls-stack.php(1176): Elementor\Controls_Stack->parse_dynamic_settings(Array)
    #14 /nas/content/live/stage/wp-content/plugins/elementor/core/files/css/post.php(315): Elementor\Controls_Stack->get_parsed_dynamic_settings()
    #15 /nas/content/live/stage/wp-content/plugins/elementor/core/files/css/post.php(297): Elementor\Core\Files\CSS\Post->render_element_styles(Object(Elementor\Widget_Image_Box))
    #16 /nas/content/live/stage/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(36): Elementor\Core\Files\CSS\Post->render_styles(Object(Elementor\Widget_Image_Box))
    #17 /nas/content/live/stage/wp-content/plugins/elementor/core/dynamic-tags/dynamic-css.php(40): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles(Object(Elementor\Widget_Image_Box))
    #18 /nas/content/live/stage/wp-content/plugins/elementor/core/files/css/post.php(178): Elementor\Core\DynamicTags\Dynamic_CSS->render_styles(Object(Elementor\Includes\Elements\Container))
    #19 /nas/content/live/stage/wp-content/plugins/elementor/core/files/css/base.php(687): Elementor\Core\Files\CSS\Post->render_css()
    #20 /nas/content/live/stage/wp-content/plugins/elementor/core/files/base.php(155): Elementor\Core\Files\CSS\Base->parse_content()
    #21 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/loop-builder/files/css/loop-css-trait.php(161): Elementor\Core\Files\Base->get_content()
    #22 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-taxonomy-base.php(97): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Taxonomy_Base->print_dynamic_css(51, 7304)
    #23 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-taxonomy-base.php(75): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Taxonomy_Base->render_post()
    #24 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-taxonomy-base.php(55): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Taxonomy_Base->render_loop_content(Array, 7304)
    #25 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/loop-builder/skins/skin-loop-taxonomy-base.php(40): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Taxonomy_Base->prepare_template_loop(Array, 7304)
    #26 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/woocommerce/skins/skin-loop-product-taxonomy.php(25): ElementorPro\Modules\LoopBuilder\Skins\Skin_Loop_Taxonomy_Base->render()
    #27 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/skin-base.php(79): ElementorPro\Modules\WooCommerce\Skins\Skin_Loop_Product_Taxonomy->render()
    #28 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/widget-base.php(634): Elementor\Skin_Base->render_by_mode()
    #29 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/widget-base.php(775): Elementor\Widget_Base->render_content()
    #30 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content()
    #31 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(1442): Elementor\Element_Base->print_element()
    #32 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
    #33 /nas/content/live/stage/wp-content/plugins/elementor/core/base/document.php(1890): Elementor\Element_Base->print_element()
    #34 /nas/content/live/stage/wp-content/plugins/elementor/core/base/document.php(1806): Elementor\Core\Base\Document->do_print_elements(Array)
    #35 /nas/content/live/stage/wp-content/plugins/elementor/core/base/document.php(1204): Elementor\Core\Base\Document->print_elements(Array)
    #36 /nas/content/live/stage/wp-content/plugins/elementor/includes/frontend.php(1203): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
    #37 /nas/content/live/stage/wp-content/plugins/elementor/includes/frontend.php(1271): Elementor\Frontend->get_builder_content('7002', false)
    #38 /nas/content/live/stage/wp-content/plugins/elementor-pro/modules/library/wp-widgets/elementor-library.php(47): Elementor\Frontend->get_builder_content_for_display('7002')
    #39 /nas/content/live/stage/wp-includes/class-wp-widget.php(394): ElementorPro\Modules\Library\WP_Widgets\Elementor_Library->widget(Array, Array)
    #40 /nas/content/live/stage/wp-content/plugins/megamenu/classes/widget-manager.class.php(891): WP_Widget->display_callback(Array, Array)
    #41 /nas/content/live/stage/wp-content/plugins/megamenu/megamenu.php(641): Mega_Menu_Widget_Manager->show_widget('elementor-libra...')
    #42 /nas/content/live/stage/wp-includes/class-wp-hook.php(324): Mega_Menu->add_widgets_to_menu(Array, Object(stdClass))
    #43 /nas/content/live/stage/wp-includes/plugin.php(205): WP_Hook->apply_filters(Array, Array)
    #44 /nas/content/live/stage/wp-includes/nav-menu-template.php(234): apply_filters('wp_nav_menu_obj...', Array, Object(stdClass))
    #45 /nas/content/live/stage/wp-content/plugins/megamenu/classes/widgets/widget.class.php(55): wp_nav_menu(Object(stdClass))
    #46 /nas/content/live/stage/wp-content/plugins/elementor/includes/widgets/wordpress.php(284): Mega_Menu_Widget->widget(Array, Array)
    #47 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/controls-stack.php(2366): Elementor\Widget_WordPress->render()
    #48 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/widget-base.php(636): Elementor\Controls_Stack->render_by_mode()
    #49 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/widget-base.php(775): Elementor\Widget_Base->render_content()
    #50 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Widget_Base->print_content()
    #51 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(1442): Elementor\Element_Base->print_element()
    #52 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
    #53 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(1442): Elementor\Element_Base->print_element()
    #54 /nas/content/live/stage/wp-content/plugins/elementor/includes/base/element-base.php(483): Elementor\Element_Base->print_content()
    #55 /nas/content/live/stage/wp-content/plugins/elementor/core/base/document.php(1890): Elementor\Element_Base->print_element()
    #56 /nas/content/live/stage/wp-content/plugins/elementor/core/base/document.php(1806): Elementor\Core\Base\Document->do_print_elements(Array)
    #57 /nas/content/live/stage/wp-content/plugins/elementor/core/base/document.php(1204): Elementor\Core\Base\Document->print_elements(Array)
    #58 /nas/content/live/stage/wp-content/plugins/elementor/includes/frontend.php(1203): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
    #59 /nas/content/live/stage/wp-content/plugins/elementor/includes/frontend.php(1271): Elementor\Frontend->get_builder_content('890', false)
    #60 /nas/content/live/stage/wp-content/plugins/header-footer-elementor/inc/class-header-footer-elementor.php(638): Elementor\Frontend->get_builder_content_for_display('890')
    #61 /nas/content/live/stage/wp-content/plugins/header-footer-elementor/inc/hfe-functions.php(89): Header_Footer_Elementor::get_header_content()
    #62 /nas/content/live/stage/wp-includes/class-wp-hook.php(324): hfe_render_header('')
    #63 /nas/content/live/stage/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
    #64 /nas/content/live/stage/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
    #65 /nas/content/live/stage/wp-content/themes/astra/inc/core/theme-hooks.php(143): do_action('astra_header')
    #66 /nas/content/live/stage/wp-content/themes/astra/header.php(62): astra_header()
    #67 /nas/content/live/stage/wp-includes/template.php(810): require_once('/nas/content/li...')
    #68 /nas/content/live/stage/wp-includes/template.php(745): load_template('/nas/content/li...', true, Array)
    #69 /nas/content/live/stage/wp-includes/general-template.php(48): locate_template(Array, true, true, Array)
    #70 /nas/content/live/stage/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(9): get_header()
    #71 /nas/content/live/stage/wp-includes/template-loader.php(106): include('/nas/content/li...')
    #72 /nas/content/live/stage/wp-blog-header.php(19): require_once('/nas/content/li...')
    #73 /nas/content/live/stage/index.php(17): require('/nas/content/li...')
    #74 {main}
      thrown
  • Hello here,

    Maybe my explanations are not clear?
    What should I do to group all the dates of the repeater field associated with a taxonomy term in this repeater ?

    Thank you for your reply in advance.

  • I managed to resolve it, I have found this filter to do so.
    acf/fields/taxonomy/wp_list_categories

  • Ben, you can do this at ACF taxonomy settings: Visibility > Show Admin Column.

  • Hi folks, I know this has been a long time coming – but it’s here 🎉

    We’ve recently shipped ACF 6.3 with improved conditional logic. This means you can actually select terms of a Taxonomy field when defining conditional logic rules!
     
    It works for the Taxonomy, User, Post Object, Page Link, and Relationship fields:
     
    https://www.advancedcustomfields.com/blog/acf-6-3-0-released/#conditional-logic-relational-fields

  • It’s frustrating when you can’t selectively hide the Taxonomy Meta Box. Having visibility in the dashboard while hidden in the editor would be ideal.

  • @floatingpoint Just the Post Object field.

    With further testing, it seems that it is the Taxonomy field that returns an ID instead of a Term Object even when the return format is Term Object.

    Or maybe this is happening only when I access properties directly instead of using get_field(). I would expect the return type to save the data in that format, but maybe it is storing only IDs in any case, and only using ACF functions does it return the specified format.

  • limiting the selection to only two specific terms from the standard taxonomy of WP categories

  • Same issue 🙁 I am trying to pull in ACF Taxonomy field but it will not show – only returns null values.

  • i used this solution to solve that without using the ACF options:

    function val_update_prodotto_rewrite_rules() {
    $args = get_post_type_object(‘prodotto’);
    $args->rewrite = array(
    ‘slug’ => ‘prodotti/%categoria-prodotto%’,
    ‘with_front’ => false
    );
    register_post_type(‘prodotto’, $args);
    }
    add_action(‘init’, ‘val_update_prodotto_rewrite_rules’);

    function val_custom_post_type_permalink($post_link, $post) {
    if (‘prodotto’ === $post->post_type) {
    $terms = wp_get_object_terms($post->ID, ‘categoria-prodotto’);
    if ($terms) {
    return str_replace(‘%categoria-prodotto%’, $terms[0]->slug, $post_link);
    }
    }
    return $post_link;
    }
    add_filter(‘post_type_link’, ‘val_custom_post_type_permalink’, 10, 2);

    function val_update_categoria_prodotto_rewrite_rules() {
    $args = get_taxonomy(‘categoria-prodotto’);
    $args->rewrite = array(
    ‘slug’ => ‘prodotti’,
    );
    register_taxonomy(‘categoria-prodotto’, ‘prodotto’, $args);
    }
    add_action(‘init’, ‘val_update_categoria_prodotto_rewrite_rules’);

  • yes i just did that but the result is the same, after the changes if i go on the taxonomy page the url is correct but the page is a 404

  • And once again I answer myself 😉
    I forgot the $post_id inside the acf-field. This is how it works perfectly:

    function update_post_taxonomy( $post_id ) {
    $myfield = get_field('my_field_name', $post_id);
    if( $myfield ) {
    wp_set_object_terms($post_id, 'myterm', 'mytaxonomy', true);
    } else if ( empty( $myfield ) ) { 
    wp_remove_object_terms( $post_id, 'myterm', 'mytaxonomy', true );
    }
    }
    add_action( 'acf/save_post', 'update_post_taxonomy', 10 );
  • No, is not working.

    If i use a CSV like this:
    Title;Relationships;Taxonomies
    Test;651,649;18,19

    The element created have only the first Relationship with 651 post but not the second one 649.
    And have only the first taxonomy selected 18 but not the second one 19

    I’m not understanding what the wp-ultimate-csv-importer does with the pro version to import that kind of fileds.

  • Given the information provided, if I was building something like this I would not be using a repeater to list all of the shops in a mall. I would:

    Have a CPT for Malls, each mall would be a different post in this post type

    Have a CPT for the stores/shops/whatever you want to call it. Each store would have it’s own post.

    There would be a one-to-many bidirectional relationship between the mall and the stores. A post object field on the store post to select the mall and a relationship field on the mall post to select the stores in that mall. I would use my plugin to create this bidirectional relationship because it is beyond what the ACF relationship field can do.

    I would have a custom taxonomy for selecting the type of store/shop/whatever

    I would have a value in the store to indicate what floor the store is on.

    If the same operator can be located in multiple malls I would also have a custom post type for this with a one-to-many relationship between the operator and store post types.

    Because you are using Elementor, I would be using Elementor Pro’s theme builder and/or templates to build the templates for showing pages on this site. Using the post widget using a custom query to show the archive pages of of the various post types.

  • Like, through a custom taxonomy I have added this under-category which I can add stuff to. But I cannot in the documentation see what code to use to filter for “uses this taxonomy”. Is it a category? a product type?
    My setup

  • Hi! Thank you!
    However, I think I might have worded the questions wrong.

    I’m working with code. On the front page for instance, I want to have a section which shows all of the names & images of all of my authors. How do I tell to pull of everything that is classified as this specific taxonomy?

Viewing 25 results - 576 through 600 (of 3,191 total)