MB for Yoast SEO setup
- This topic has 9 replies, 2 voices, and was last updated 8 years, 7 months ago by
mark.
-
AuthorPosts
-
August 17, 2016 at 5:30 PM #3869
mark
ParticipantHello 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.
August 18, 2016 at 8:37 AM #3877Anh Tran
KeymasterHi 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 MB 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.
August 18, 2016 at 2:22 PM #3886mark
ParticipantThanks Anh, I have now set up the field config using MB 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).
August 25, 2016 at 5:55 PM #3936mark
ParticipantHi Anh,
MB for Yoast does not work - please can you advise the status of this?
Thanks,
MarkAugust 26, 2016 at 12:13 PM #3941Anh Tran
KeymasterI've just updated the plugin with fix for this. Please try it.
August 28, 2016 at 3:24 PM #3952mark
ParticipantHi 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.
August 31, 2016 at 2:23 PM #3969Anh Tran
KeymasterHi Mark,
Please add custom attributes to text or textarea field like this:
It works in my case. Can you please try again?
August 31, 2016 at 6:47 PM #3977mark
ParticipantHi 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
September 1, 2016 at 10:36 AM #3987Anh Tran
KeymasterHi 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.
September 2, 2016 at 4:28 AM #4000mark
ParticipantHi 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 -
AuthorPosts
- The topic ‘MB for Yoast SEO setup’ is closed to new replies.