Home Forums WC Vendors Pro Support Titile, Description, Keywords on domain.com/vendors/vendorname

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #59681
    Anonymous
    Inactive

    Hello dear support

    i have launched my marketplace with you software and i see that the most promising pages are domain.com/vendors/vendorname

    it is clear because this pages has good content for rare and non competitive serch requests

    I have tried to change the Title, Description, Keywords for this pages with All it one seo pack pro, Yoast seo, but those plugins does not see the this pages -../vensdors/vendor1, ../vensdors/vendor22, ../vensdors/vendor333 ets

    Do you have any solution to manage title , description, keywords for vendors shops. This functionality is crutial for non cometitive search reqest. But SEO plugins and your plug does not alow to chnge this title and meta tags.

    At the moment all pages ../vensdors/vendor1, ../vensdors/vendor22, ../vensdors/vendor333 have the same title and description.

    ../vensdors/vendor1, title “My marketplace”
    ../vensdors/vendor22, title “My marketplace”
    ../vensdors/vendor333, title “My marketplace”

    It is not good and i dont know how to chnge it. Please give me an advise.

    #59687
    Anonymous
    Inactive

    Solved for All in one seo pack only

    
    
    // SEO Overwrite meta description for vendor pages
    function overwrite_vendor_meta($desc) {
    
        // Return the default value if we're not on a vendor shop page
        if(!WCV_Vendors::is_vendor_page()) return $desc;
    
        // Get the vendor description and return it
        $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) );
        $vendor_id   = WCV_Vendors::get_vendor_id( $vendor_shop );
        $desc = get_user_meta( $vendor_id, 'pv_shop_description', true );
    
        // Remove line breaks
        $desc = str_replace(array("\r", "\n"), " ", strip_tags($desc));
        // Remove extra spaces
        $desc = preg_replace( '/\s+/', ' ', $desc );
        // Escape special characters
        $desc = htmlspecialchars($desc);
        // Shorten it to 156 characters (153 + '...')
        $desc = substr($desc ,0,153).'...';
    
        return $desc;
    }
    add_filter( 'aioseop_description', 'overwrite_vendor_meta', 10, 1);
    
    // SEO Overwrite meta description for vendor pages
    function overwrite_vendor_title($title) {
    
        // Return the default value if we're not on a vendor shop page
        if(!WCV_Vendors::is_vendor_page()) return $title;
    
        // Get the vendor description and return it
        $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) );
        $vendor_id   = WCV_Vendors::get_vendor_id( $vendor_shop );
        $title = get_user_meta( $vendor_id, 'pv_shop_name', true );
    
        return $title;
    }
    add_filter( 'aioseop_title', 'overwrite_vendor_title', 10, 1);
    
    
    #59707
    Anna
    Member

    Nice! Thanks for sharing.

    #59762
    MDan
    Participant

    Hello,

    This is great news! Awesome work, thanks for the snippet. I think it is imperative for the vendors to get some traction in search results on specific keywords (long-tail or not).
    I’ve dealt with this challenge some time ago as well and I’ve let it go for a while. It would be great if someone has something similar for Yoast.

    I believe a complete SEO module is what WC Vendors is lacking at this time (I mean something for the vendor products as well – for individual single product pages/vendor archive pages).

    @fervous
    , an addon focused on SEO would be great, I surely would need one for my platform which is focused just on local vendors (local SEO) and I think a large part of the community would benefit of this too.
    Food for thought I guess.

    Regards,
    Daniel

    #59783
    Anna
    Member

    @mdan Noted– thanks! 🙂

    #59798
    Anonymous
    Inactive

    OK, one more point please))) =D

    This code should work for Yoast… if you use ‘pv_shop_description’ and ‘pv_shop_name’ on vendors pages

    
    // SEO Overwrite meta description for vendor pages
    function overwrite_vendor_meta($desc) {
    
        // Return the default value if we're not on a vendor shop page
        if(!WCV_Vendors::is_vendor_page()) return $desc;
    
        // Get the vendor description and return it
        $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) );
        $vendor_id   = WCV_Vendors::get_vendor_id( $vendor_shop );
        $desc = get_user_meta( $vendor_id, 'pv_shop_description', true );
    
        // Remove line breaks
        $desc = str_replace(array("\r", "\n"), " ", strip_tags($desc));
        // Remove extra spaces
        $desc = preg_replace( '/\s+/', ' ', $desc );
        // Escape special characters
        $desc = htmlspecialchars($desc);
        // Shorten it to 156 characters (153 + '...')
        $desc = substr($desc ,0,153).'...';
    
        return $desc;
    }
    add_filter( '_yoast_wpseo_metadesc', 'overwrite_vendor_meta', 10, 1);
    
    // SEO Overwrite meta description for vendor pages
    function overwrite_vendor_title($title) {
    
        // Return the default value if we're not on a vendor shop page
        if(!WCV_Vendors::is_vendor_page()) return $title;
    
        // Get the vendor description and return it
        $vendor_shop = urldecode( get_query_var( 'vendor_shop' ) );
        $vendor_id   = WCV_Vendors::get_vendor_id( $vendor_shop );
        $title = get_user_meta( $vendor_id, 'pv_shop_name', true );
    
        return $title;
    }
    add_filter( '_yoast_wpseo_title', 'overwrite_vendor_title', 10, 1);
    

    Enjoy!

    #68537
    JAVIER
    Participant

    @LOCALBARNDS @FERVOUS Hi friends.
    I think there is a small mistake. In the description of the store gives us the description of a product. I searched for the error but could not find it

    *all in one seo pro

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.