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 5 years, 6 months ago by Khahina.
Viewing 5 replies - 16 through 20 (of 20 total)
  • I hope you find a solution, i like so much RankMath.
    And working with WCFM, will add Rankmath a mega bonus

    Hi Khahina,

    Thanks for the response.

    I have been able to do some testing on the site backup that you sent over and I have modified the code to the following to fix the title, description and robots meta issue:

    /**
    * Only load if Rank Math plugin is activated
    */
    if ( defined('RANK_MATH_FILE' ) ) {
    
    /**
    * Adjusting store page’s title tag
    * @return string
    */
    function rank_math_title_adjustment( $title ) {
    if ( wcfm_is_store_page()){
    	$store_user   = wcfmmp_get_store( get_query_var( 'author' ) );
    	$store_info   = $store_user->get_shop_info();
    	$sitename     = get_option('blogname');
    	$title = $store_info['store_name']." - ".$sitename;
    	return $title;
    
    }
    return $title;
    }
    add_filter('rank_math/frontend/title', 'rank_math_title_adjustment', 16 );
    
    /**
    * Adjusting store page’s meta description
    * @return string
    */
    add_filter( 'rank_math/frontend/description', function( $description ) {
    if (wcfm_is_store_page()) {
    	$description = RankMath\Post::get_meta( 'description', get_option( 'page_on_front' ) );
    	return $description;
    }
    return $description;
    });
    
    /**
    * Adjusting store page’s robots
    * @return string
    */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    if (wcfm_is_store_page()) {
    $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.

    I try in local and seem work.
    I have’nt the json-ld for the products but no matter it’s almost a double with shop page.

    Good job
    I’ll try tomorrow on the prod site.

    Thank you

    Hello,
    work well

    thank you so much

    Hello,

    We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.

    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/?rate=5#new-post about your overall experience with Rank Math? We appreciate your time and patience.

    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.

    Thank you.

Viewing 5 replies - 16 through 20 (of 20 total)

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