Support

Account

Forum Replies Created

  • 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

  • Sure, thank you very much.

    I’ll keep the thread open; in case I find a solution, I’ll post it here; otherwise, I’ll close it.

  • 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.

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