Hi @fractaleater
I’ve never used Yoast Duplicate Post. Have you seen if it has an option to decide what to copy when you duplicate a post? If it gives the possibility to exclude some meta-box, next time you duplicate a post or a page that has a mobile version, exclude these two meta-boxes:
eos_scfm_desktop_post_id
eos_scfm_mobile_post_id
The first one stores the ID of the related desktop version of a mobile version.
The second one stores the ID of the related mobile version of a desktop version.
Now that you have already duplicated it, you have more than a way to disconnect the mobile version.
The first way is deleting custom fields eos_scfm_desktop_post_id and eos_scfm_mobile_post_id.
So, go in the backend to the page that you want to disconnect. If you don’t see the custom fields, click on “Screen Options” that you see on the top and check “Custom fields”. In the Custom Fields section, delete the meta-box mentioned above.
Another way is going to Pages, select the pages that you want to unlink, and click on the bulk action “Unlink mobile version”.
Another way, if the Yoast Duplicate Post plugin gives that possibility, is duplicating again the post, but this time without the meta-boxes, and then delete the previous duplicated post.
I hope one of the methods described above will work for you.
Let me know.
Thank you for the prompt response.
I was able to disconnect the new draft from the original mobile version by showing custom fields of the new draft and deleting the eos_scfm_mobile_post_id field. I can also confirm the original mobile version had eos_scfm_desktop_post_id pointing to the original post.
Yoast Duplicate Post, under “WP Dashboard -> Settings -> Duplicate Post -> What to copy -> Do not copy these fields”, has an edit box that accepts a comma separated list of wild card fields to ignore. I entered “eos_scfm_*” in this field and saved. I then created a new draft from the original page and it did not copy the eos_scfm_ prefixed fields. The new draft was not connected to the original mobile version, and the new draft has the “Mobile version” button labeled “CREATE MOBILE VERSION”.
Using what you’ve said about the relationship of the eos_scfm fields, to duplicate a post *and* the mobile page, exclude “eos_scfm_*” as mentioned above, edit the original post and “Copy to a new draft” (note the resulting post id). From the original post, edit the mobile version and create a new mobile draft using “Copy to a new draft” (again, note the resulting post id).
To connect the two as desktop and mobile versions of the same page, from the new draft mobile version, add a custom field by selecting “eos_scfm_desktop_post_id” from the dropdown and entering the new draft post id. (note: I also added “eos_scfm_mobile_post_id” with the post id of the new draft mobile version as that was the observed setup of the original posts – but it is unclear why this might be required). From the new draft, add custom field “eos_scfm_mobile_post_id” with the post id of the new draft mobile version. After saving both draft versions, desktop and mobile should be connected.
Hi @fractaleater
Mobile and desktop have to be public, not draft.
eos_scfm_desktop_post_id stores the ID of the related desktop version of a mobile version.
eos_scfm_mobile_post_id stores the ID of the related mobile version of a desktop version.`
The mobile version must have eos_scfm_desktop_post_id, and the value must be the ID of the desktop page.
The desktop version must have eos_scfm_mobile_post_id, and the ID must be the ID of the mobile page.
In the worst case, after being sure the mobile and desktop versions are disconnected, you can create an empty new mobile version and then change the related mobile version in the section “Mobile” that you find on the desktop page. Just start typing the title of the mobile page in the field “Related mobile version”.
After you do that, delete the empty mobile version.
Hi @fractaleater
I will close this thread for inactivity. If you still need help don’t hesitate to open a new thread.