I've been looking into the issues with this snippet and I believe I have a fix for both the issue on facebook and the issue with this appearing on all URLs:
I've also tested with that facebook debugger on our demo + the above code snippet, and the link appears correctly:
Please try it with this snippet.
Regarding RankMath, I've been looking at it, but a special integration is needed - I think it is more realistic for product pages because those are actual pages (the vendor store page is a dynamically generated page).
The vendor link changes the title normally but in debugger fb still have errors.
I think the most suitable is to make the vendors a custom taxonomy? So it can play well with RankMath
Another thing i was thinking is that vendors are not going on sitemap.
I used this code and works fine as title and in og for social too.(my meta keys are in ACF to make them easier to edit them in vendor page as shortcodes)
Maybe you should examine vendors to be custom taxonomies? I'm not sure. In rank math now I cannot see the vendors in the site map only the products and categories 🤔
I think a taxonomy for vendors would not really help, because I imagine that would just lead to incorrect links in Rankmath (e.g. site.com/archive/vendor).
Since we make custom role for each vendor we will create a snippets and add all vendors to a custom sitemap. Will let you know when its done in case it helps. But it certainly need to have either a CPT or custom role for vendor in order to recognize it.
We are open to that and I know some plugins like Dokan do have a Rank Math module for product pages. I understand you'd be more interested in the vendor page. It's certainly an option for the future but I can't say we have an immediate plan for this right now.
A CPT would represent a Custom Post Type? It's possible I am not understanding it correctly as I am not super familiar with Rank Math, but I don't see how that could work.
I'm thinking that a vendor store page has a structure such as site.com/stores-list/vendor or site.com/vendor . Since a custom post type does not have that kind of frontend URL I am not sure how Rank Math could set SEO settings for the URL, even if we did have the settings page in place.
Hi. When using Elementor custom page there is a problem. In Title of page instead of showing vendors name it shows Stores-List - Sitename
The best for SEO is to have the ability of Vendors Name - Sitename
Is this possible?
Thank you
Hi,
MarketKing can replace the page title based on the Store SEO module functionality: https://woocommerce-multivendor.com/docs/store-seo
For this to work, each vendor must go to their vendor dashboard settings and choose a 'SEO title' there.
Great. Can hy default have the Store name as title?
I believe you can do that, by adding the following PHP snippet to the site:
It should then use the store name as the page title when on the vendor store page.
i see. Can this be done via RankMath in order to have more control?
Also when we use it in https://developers.facebook.com/tools/debug/ its not showing it correctly the title or the description and without any image
Also this snippet is making all site have the same title as one vendor.
Can we control the Vendors Store via RankMath?
Hi again,
I've been looking into the issues with this snippet and I believe I have a fix for both the issue on facebook and the issue with this appearing on all URLs:
https://pastecode.io/s/3er836ix
I've also tested with that facebook debugger on our demo + the above code snippet, and the link appears correctly:
Please try it with this snippet.
Regarding RankMath, I've been looking at it, but a special integration is needed - I think it is more realistic for product pages because those are actual pages (the vendor store page is a dynamically generated page).
The vendor link changes the title normally but in debugger fb still have errors.
I think the most suitable is to make the vendors a custom taxonomy? So it can play well with RankMath
Another thing i was thinking is that vendors are not going on sitemap.
I used this code and works fine as title and in og for social too.(my meta keys are in ACF to make them easier to edit them in vendor page as shortcodes)
https://pastecode.io/s/c1xmvwm4
Regarding the sitemap, I'm not really sure what the solution could be - I guess it depends on how the sitemap plugin generates it.
Generally a crawler should be able to get all links / all vendor pages, so it would only work if the sitemap generator actually crawls the site.
Maybe you should examine vendors to be custom taxonomies? I'm not sure. In rank math now I cannot see the vendors in the site map only the products and categories 🤔
I think a taxonomy for vendors would not really help, because I imagine that would just lead to incorrect links in Rankmath (e.g. site.com/archive/vendor).
I think we need to either add those as custom URLs (manually) to the sitemap: https://support.rankmath.com/ticket/add-specific-url-to-sitemap/
or do a custom integration between MarketKing and Rankmath.
We are open to the latter but it's not really something I could do now quickly.
Since we make custom role for each vendor we will create a snippets and add all vendors to a custom sitemap. Will let you know when its done in case it helps. But it certainly need to have either a CPT or custom role for vendor in order to recognize it.
Thank you
Hello there.
Do you have any plan to inegrate with rank math or make vendors a CPT so Rank math can add more functions to vendor pages?
Thank you!
Hi there,
Thank you for the feedback on that,
We are open to that and I know some plugins like Dokan do have a Rank Math module for product pages. I understand you'd be more interested in the vendor page. It's certainly an option for the future but I can't say we have an immediate plan for this right now.
Is there any way to create CPT for vendors and just connect the new created users in this ?
A CPT would represent a Custom Post Type? It's possible I am not understanding it correctly as I am not super familiar with Rank Math, but I don't see how that could work.
I'm thinking that a vendor store page has a structure such as site.com/stores-list/vendor or site.com/vendor . Since a custom post type does not have that kind of frontend URL I am not sure how Rank Math could set SEO settings for the URL, even if we did have the settings page in place.
Any feedback is welcome.
Custom Post type (cpt) can works well with rank math so every vendor will be readed in sitemaps xml with better control I suppose.
For now we use custom snippets on order to make rank math to see the dynamic vendor pages og data and meta details for better seo performance.