Wp all import Jumunona

#35702
  • Resolved JMNN JuMuNoNa
    Rank Math free

    I have create WP all image ticket and here provide login and password.
    1)https://monosnap.com/file/KYNhhaPAcC8M8CvcSFhKp5m044tPpj

    2) What i need to do for show 3 category what have selected? because i can not write code so i dont know how to do.

Viewing 15 replies - 1 through 15 (of 15 total)
  • Hello,

    Thank you for contacting Rank Math today.

    I cannot seem to find your previous ticket, could you please recap what the issue was?
    You mentioned that %categories% was not working for you?

    Looking forward to helping you. Thank you.

    ​​​​​​

    / JMNN JuMuNoNa / In this ticket you ask me for login and password. There i have no found provide place for write so i have create new one / JMNN JuMuNoNa /

    Todd
    Rank Math free

    Hi,

    I can not find a ticket with that title. Can you please link us to it or describe the issue once more so we can take a closer look?

    https://support.rankmath.com/ticket/wp-all-import/
    this link.
    1)What i need to do for show 3 category what have selected? because i can not write code so i dont know how to do. Michael Davis gived me code but i dont know what need write and where need put that code.
    https://monosnap.com/file/hTBnlUYk7rxvsf3a4w6F7597A2Z01H
    Can you tell me where need put the code and what i need add for showing 3 category or more?

    Todd
    Rank Math free

    Hi,

    The code needs to go in your theme’s functions.php file.

    But, you must edit it first as simply copy-pasting it won’t do anything.

    If you are unsure about coding, we would request you to wait for the implementation from WP All Import team.

    Thank you for understanding, we have given the reason on your other post.

    Thank you.

    No this code i need for your plugin i need show 3 or more category in Meta description.
    Now im using this code
    %wc_shortdesc% Артикул:%wc_sku%. БЕСПЛАТНАЯ доставка по Таджикистану! %customterm(product_cat)% %focuskw%
    in Meta description but its showing only one category. I need show another like :
    Shoes>Children’s shoes>Sneakers>
    and in meta description show this category. Icon ” > ” in not metter

    Hello,

    Thank you for contacting Rank Math today.

    You can add the following code snippet to your theme’s functions.php file to register a custom variable replacement called %All_product_categories%

    /**
     * Action: 'rank_math/vars/register_extra_replacements' - Create a custom variable replacement to return all product cats
     */
    
    add_action( 'rank_math/vars/register_extra_replacements', function(){
     rank_math_register_var_replacement(
     'All_Product_Categories',
     [
     'name'        => esc_html__( 'All product categories', 'rank-math' ),
     'description' => esc_html__( 'Get and return all product categories', 'rank-math' ),
     'variable'    => 'All_Product_Categories',
     'example'     => my_variable_callback(),
     ],
     'my_variable_callback'
     );
    
    });
    function my_variable_callback(){
    	global $post;
    	$taxonomy = 'product_cat';
     
        // Get the term IDs assigned to post.
        $post_terms = wp_get_object_terms( $post->ID, $taxonomy, array( 'fields' => 'ids' ) );
     
        // Separator between links.
        $separator = '> ';
     
        if ( ! empty( $post_terms ) && ! is_wp_error( $post_terms ) ) {
     
        $term_ids = implode( ',' , $post_terms );
     
        $terms = wp_list_categories( array(
            'title_li' => '',
            'style'    => 'none',
            'echo'     => false,
            'taxonomy' => $taxonomy,
            'include'  => $term_ids
        ) );
     
        $terms = rtrim( trim( str_replace( '<br />',  $separator, $terms ) ), $separator );
     
        // Display product categories.
        return  $terms;
    }

    Looking forward to helping you. Thank you.

    ​​​​​​

    Thank you for code.
    But can you see why i can not save code in functions.php ?
    https://monosnap.com/file/1BJSgYQwY2AAP50uMu7nI26bZLNMmd

    Hi there,

    Thanks for the follow up.

    This error is related to your server environment.
    You can either temporarily change to a different theme to be able to save changes to the current one or make the changes via FTP.

    I hope this info helps.

    I have add code use Wp Filw Manager but it’s giving error and can not enter to site use wp-admin.Now i will delete code use FTP manager. but can you help me see and add that code i have provide my login and password you can enter.

    2)Are this focus word works ? %focuskw% i have put in products description and its doesn’t show focus word.

    Hi there,

    Thanks for the follow up.

    It is likely that you did not copy the code on the right location. Can you confirm that the code was added before the closing ?>

    Your site appears to be in debugging mode, can you please clear all the code or rollback to previous site backup so that I can be able to login and help?

    The variable %focuskw% will only return the primary focus keyword.

    I hope this info helps. Thank you.

    It is likely that you did not copy the code on the right location. Can you confirm that the code was added before the closing ?>
    — Yes

    The variable %focuskw% will only return the primary focus keyword.
    –Thank you

    Site is working now, you can enter

    Hi there,

    Thanks for the patience.

    I have added the code and tested on this product “Детские спортивные кроссовки” by setting the variable as the meta title.
    What the code does is to display all the selected product categories separated by >

    Please check and let me know if this is the functionality that you are after.

    Hello i have seen this thanks you very much.
    But i have see and after i need check description but there not showing. And after i delete %All_product_categories% from product name after put again its does not showing too.
    i just need show in meta description. In all my product now is %All_product_categories% code in meta description.Can you see what the problem ?
    https://monosnap.com/file/eSxxiSn8PX0ZIGBfM4RyYzjthxEwve
    this admin panels settings image here is that products link
    https://jumunona.com/molodyozhnyaya-zimnyaya-kurtka/

    2)And i have search on google but have no found. Can add or change related links on product or in setting? i just have seen choise with tittle and focus word but dont understad what is the difference. Because for this product what i gived to you now related links go to bracelet product there is nothing similar or compatible from this product. So i wanna now can change this ? and how to do?

    Hello,

    Thank you for contacting Rank Math today.

    You have to use the custom variable in the right case for all the letters ie the same as it has been registered ie %All_Product_Categories% and not %All_product_categories% for this to work.

    2). I am afraid that this is related to the theme. I can suggest that you reach out to your theme author so that they can check this. I can also suggest that you check whether the related products are sharing any categories with the product being viewed.

    Looking forward to helping you. Thank you.

    ​​​​​​

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 15 replies - 1 through 15 (of 15 total)

The ticket ‘Wp all import Jumunona’ is closed to new replies.