• Resolved acp693

    (@acp693)


    Hi, I have a simple custom post type (called Members) set up with some custom text fields and image fields. I created a page (Test), filled in all the custom fields and saved it. Now when I click on ‘Member’ in the left hand panel in WordPress admin, I see my Custom page ‘Test’ listed then when I click the Duplicate(wordpress) link under ‘Test’, and copy is made, but only the text fields are copied over, the image fields aren’t copied over, they are blank.

    I came across this because It’s also happening with Polylang, I create a new member, and translate the English page into German, and only the text fields are copied over, the custom image fields are blank. I tried the Duplicate(wordpress) idea to narrow down whether it’s Pods or Polylang, but it’s clearly Pods. Any ideas how to fix this?

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Scott Kingsley Clark

    (@sc0ttkclark)

    What plugin are you using for the “duplicate” functionality?

    Thread Starter acp693

    (@acp693)

    Hi, None at all, I assumed it’s a wordpress function? The plugins installed are Polylang, Pods, All in one WP migration, and Advanced editor tools. No ther plugins are installed. The only reason for advanced editor tools is because sometimes it’s impossible to type in a WYSIWYG Pods field and this plugin somehow fixes that. It’s a Bricks Builder site, so maybe that is providing the duplicate functionality? In any case using either the translate page functionality of polylang or the Duplicate function produces pages with filled in custom text fields, but empty image fields.

    Plugin Support Paul Clark

    (@pdclark)

    Yoast Duplicate Post or similar plugins may yield more reliable results.

    There is no WordPress core duplicate post functionality, so behavior would depend on the specific plugin.

    Thread Starter acp693

    (@acp693)

    I don’t understand why this issue has been marked as resolved, when it hasn’t. The issue is when using Polylang on a multi language site, the image content isn’t been copied over into the translated page. The text content is. I set up test pages using ACF custom field plugin and using this, both text and Image content is copied over when translating a page using Polylang. Using Pods, only text is copied over. There is something with the image fields in Pods which is preventing the copying over of images during translation/cloning of pages. This seems to be independent of whether it’s a polylang translation, a Yoast duplicate page clone, or a Bricks builder duplicate. I suspect this will be the case no matter what clone/duplicate/language plugin is used. I’m reluctant to swap to ACF at the moment given the current situation between WPE and WordPress.

    • This reply was modified 1 month, 2 weeks ago by acp693.
    Thread Starter acp693

    (@acp693)

    I did some more investigation and discovered that on the front end, the images are actually displayed after translating or cloning a page. I don’t know why I didn’t look before, I just assumed they wouldn’t be displayed because the Pods custom image fields for the translated/cloned page are blank, but the images are actually attached to the fields, you just can’t see them, just when viewing the page on the front end. Somehow when looking at the translated/cloned pages in the editor, the Pods Image fields are not updating, they are left blank, which is very confusing, because it looks like no image is there in the field, but it is!

    I also set up a wpml-config.xml file which can sync custom fields. This works, if I change the image on the english page, the german page on the front end is updated too, but it’s not shown in that custom field when looking at the page in the editor. Surely this is a bug with Pods and not polylang or Yoast etc. ? Any ideas?

    Plugin Support Paul Clark

    (@pdclark)

    An issue has been created at https://github.com/pods-framework/pods/issues/7363. This will be the best place to track development towards a resolution.

    It appears in testing with Yoast that while database values are duplicated, the field still does not display.

    Bricks may have additional issues if both keys image_field and serialized version of the same data with the key _pods_image_field are not copied over for a field named image_field, but resolving the issue on GitHub for Yoast may also resolve it for Bricks if data is displaying in the database post_meta table.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.