Home Forums WoodMart support forum CATEGORIES IN TITLE – 2

CATEGORIES IN TITLE – 2

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #391348

    Anne
    Participant

    Hello,
    I am sorry but I have re-open this topic because the problem came back.
    In “settings”, “product archives”, “page title” the categories to exclude do the same thing than before, it doesn’t find all my categories, just 5.

    This code is in the php:

    if ( ! function_exists( ‘woodmart_get_taxonomies_by_query_autocomplete’ ) ) {
    /**
    * Autocomplete by taxonomies.
    *
    * @since 1.0.0
    */
    function woodmart_get_taxonomies_by_query_autocomplete() {
    $output = array();

    $args = array(
    ‘number’ => 5,
    ‘taxonomy’ => $_POST[‘value’], // phpcs:ignore
    ‘search’ => $_POST[‘params’][‘term’], // phpcs:ignore
    ‘hide_empty’ => false,
    );

    $terms = get_terms( $args );

    if ( count( $terms ) > 0 ) { // phpcs:ignore
    foreach ( $terms as $term ) {
    $output[] = array(
    ‘id’ => $term->term_id,
    ‘text’ => $term->name,
    );
    }
    }

    echo wp_json_encode( $output );
    die();
    }

    add_action( ‘wp_ajax_woodmart_get_taxonomies_by_query_autocomplete’, ‘woodmart_get_taxonomies_by_query_autocomplete’ );
    add_action( ‘wp_ajax_nopriv_woodmart_get_taxonomies_by_query_autocomplete’, ‘woodmart_get_taxonomies_by_query_autocomplete’ );
    }

    I have checked by deactivating all plugins and then activated them one by one. And I also have refreshed the cache but nothing solves the problem can you help please?
    Below is the site access,
    Thanks

    #391715

    Anne
    Participant

    Any idea to help please? I have disabled all plugins but it didn’t solved the issue.

    #391859

    Hello,

    Please activate the child theme and keep it activated.

    If you have any questions please feel free to contact us.

    Best Regards

    #391874

    Anne
    Participant

    It was that simple! I didn’t even know that it had switched to the main theme.
    Sorry, thanks a lot.

    #391942

    You are welcome! We are here to help.

    Wish you a wonderful day!

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