Support Forum
Hello Anh, I have set up Meta Box and use your MB Builder, taxonomy and custom post type extensions. I have installed MB for Yoast SEO, but can't find where to insert the code: 'add_to_wpseo_analysis' => true
Please can you tell me which file I need to modify, and its folder location? I assume it is somewhere in one of the Meta-Box plugin folders, but have looked and can't identify which is the right one.
Hi Mark,
That line is added to the field parameters when you use code to define meta boxes. Please follow this documentation to know how to do that. And in the array of field parameters, simply add 'add_to_wpseo_analysis' => true
.
PS: I see you purchased Meta Box Builder extension. If you want to add the field to the Yoast SEO analysis, in the field configuration panel, click the Show Advanced link, then click Add Custom Attribute button, and enter the param to the inputs like in this screenshot.
Thanks Anh, I have now set up the field config using Meta Box Builder as this is how I have set up my custom fields.
MB for Yoast is activated, but unfortunately does not work (latest version of Yoast SEO 3.4.2). Please can you advise?
Note that it also has caused an error with images in widgets when previewing pages (although these seem to work okay on the live site).
Hi Anh,
MB for Yoast does not work - please can you advise the status of this?
Thanks,
Mark
I've just updated the plugin with fix for this. Please try it.
Hi Anh, I have tried this and it still doesn't work. Any other ideas?
It would also be good to see documentation to setup MB for Yoast for MB Builder users, so the field entry details are clear.
Hi Mark,
Please add custom attributes to text or textarea field like this:
It works in my case. Can you please try again?
Hi Anh,
I have tested this and it works if I create a new Meta Box, but it does not work for existing Meta Boxes within Custom Post Types. How can I make my existing Meta Boxes be "seen" by Yoast?
Mark
Hi Mark,
I made a screencast http://take.ms/rshlfx, can you please take a look? It just works for me for both new and existing posts.
Hi Anh, problem solved! I was following your instructions correctly, but to get the Yoast plugin to "see" the meta box contents I had to remove the attribute settings on the existing fields, save the meta box, then add the attribute info again, and re-save. I also had to go into each existing record, and update it for the Yoast result to appear correctly.
Thank you,
Mark