Problem with WCFM

#8582
  • Resolved Khahina
    Rank Math free

    (ticket open after discussion on Facebook)

    Hello,

    i like Rank Math with Woocommerce, and work well with it

    But now i want to install it on WCFM plugins. (from Woo Lovers, Woocommerce for marketplace) .

    And i have two problems , the 2 on the same page.

    On vendor page, Rank Math did’nt find any seo information (meta or richsnppet) and says ‘page not found’.

    And the beadcrumb is not good neither.

    For now i can’t send you an url, the site is install on local

    Can you do something or did i must stay with yoast ?

    Thank you.
    —————————————

    i use the trio (frontend manager, multivendor marketplace and multivendor membership) but here i think it’s this https://wordpress.org/plugins/wc-frontend-manager/, (and theme oceanwp)
    —————————————-

    NB : not a theme prob , i had try with twentyseventeen, i have the same seo informations ‘page not found’ on my vendor page (who work well, show vendor information, banner, products …)

    ——————————————

    • This topic was modified 4 years, 9 months ago by Khahina.
Viewing 15 replies - 1 through 15 (of 20 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Your functions.php file is not writable, please share some FTP access since we would like to add some code to your theme to fix these errors.

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Jay Valento
    Rank Math pro
    Content AI Expert

    ,,,

    Jay you don’t add those details to the public forum.
    You should see a section highlighted called “Sensitive Data” Click edit and add your details to that. No-one else can see that section except you and the devs 😉

    hello
    I can’t give you ftp access (not just one site there), but give me the code to add in function.php and i will do it

    Hi Jay,

    Thanks for getting in touch as sorry for any inconvenience caused.

    As Paul mentioned, you can add some temporary access on the sensitive data section but this is only available to the OP and thus you can create a new ticket to access this section and add the access so that we can help you further.

    In regards to this issue, please add the below code to your functions.php file and let me know how this goes.

    /**
    * Only load if Rank Math plugin is activated
    */
    if ( defined('RANK_MATH_FILE' ) ) {
    
    /**
    * Adjusting homepage’s title tag
    * @return string
    */
    function rank_math_title_adjustment( $title ) {
    if ( ! is_null( $wp_query ) && ! is_admin() && is_main_query() && in_the_loop() && is_page() && is_wcfm_page() && is_wcfm_endpoint_url() ){
    	$endpoint = $WCFM_Query->get_current_endpoint();
    	
        if ( $endpoint_title = $WCFM_Query->get_endpoint_title( $endpoint ) ) {
    				$title = $endpoint_title;
    	}
    
    }
    return $title;
    }
    add_filter('rank_math/frontend/title', 'rank_math_title_adjustment', 16 );
    
    /**
    * Adjusting homepage’s meta description
    * @return string
    */
    add_filter( 'rank_math/frontend/description', function( $description ) {
    if ( wcfm_is_vendor() ) {
    $description = RankMath\Helper::replace_vars( RankMath\Helper::get_settings( 'titles.homepage_description' ) );
    }
    return $description;
    });
    
    /**
    * Adjusting homepage’s robots
    * @return string
    */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    if ( wcfm_is_vendor() ) {
    $robots = RankMath\Helper::get_settings( 'titles.homepage_robots' );
    if ( ! is_array( $robots ) || ! in_array( 'noindex', $robots ) ) {
    $robots['index'] = 'index';
    }
    if ( ! is_array( $robots ) || ! in_array('nofollow', $robots ) ) {
    $robots['follow'] = 'follow';
    }
    }
    return $robots;
    });
    }

    I hope this info helps. Thank you.

    ok i will try and give you back results

    Hi Khahina,

    Great! Let us know how this goes.

    Thank you.

    Good evening, sorry but nothing change always Page not found and any snippets and meta og false

    https://pro.zechef.com/fournisseur/pmarchesseau/
    <title>Page non trouvée – Zechef la boutique pro</title><meta name=”robots” content=”follow,noindex”/>
    <meta property=”og:locale” content=”fr_FR”>
    <meta property=”og:type” content=”object”>
    <meta property=”og:title” content=”Page non trouvée – Zechef la boutique pro”>

    You can see the yoast work on nearly the same page here : https://zechef.com/magasin/pmarchesseau/

    Your code stay in place, if you want look.
    Good night

    Perhaps you can work with WC-lovers team, they are very reactive too, and i’m sure they’re be happy to help and do rankmath work with their plugins.

    Hi Khahina,

    Thanks for the follow up.

    Do you think you could clone your site to a temporary dev server with write access so that I can be able to test and debug the code?

    I am looking forward to helping you.

    oh sorry no i can’t do that, it’s a private server .
    But i can send you a backup copy of my local, the prob is the same

    Todd
    Rank Math free

    Hello,

    Please do send us the copy so we can check.

    Hello
    i will send you the backup file (Updraft ) with wetransfer, i will send the link in sensitive data. I think i can to that this afternoon

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hi there,

    Thanks for the file.

    I will do some testing on this and get back to you.

    Thank you for the continued patience.

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

The ticket ‘Problem with WCFM’ is closed to new replies.