Custom Posts with Polylang

Support General Custom Posts with Polylang

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #48418
    HardlyWorkingHardlyWorking
    Participant

    Hello,

    It seems like after a recent update, Metabox's custom post types don't seem to work with Polylang's "Duplicate Content" feature.

    Basically, when you create a post, you can select this option and it will populate the original language's custom field type values into the translation version boxes. This was really helpful for some post types that essentially had the same information across all languages.

    Can someone help look into this? I also queried Polylang support.

    #48426
    PeterPeter
    Moderator

    Hello,

    Thanks for reaching out.

    If you use the code to register the custom post type without using Meta Box, do you see the same issue?

    Please follow the documentation
    https://docs.metabox.io/extensions/mb-custom-post-type/#getting-php-code
    https://developer.wordpress.org/reference/functions/register_post_type/

    #48429
    HardlyWorkingHardlyWorking
    Participant

    Hello, I put in the PHP from Metabox for the CPT into functions.php but the issue persists.

    #48430
    HardlyWorkingHardlyWorking
    Participant

    Does this also mean the CPT needs to be removed from Metabox?

    #48432
    PeterPeter
    Moderator

    Hello,

    Yes, if you register the CPT by code, you can remove the CPT from the UI: Meta Box > Post Types page.

    Let me know how it goes.

    #48433
    HardlyWorkingHardlyWorking
    Participant

    OK, I was able to create the custom post type manually, and remove the CPT from Metabox (I tested this by adding/removing the CPT code from functions.php).

    The issue seems like the Custom Fields (created thru MB Custom Fields)related to this CPT post type are not being duplicated anymore for the other languages, but they were before.

    #48434
    PeterPeter
    Moderator

    Hello,

    Thank you for the details. I can reproduce the issue on my demo site and I've escalated this to the development team to support duplicating the field value along with the post.

    Hopefully it will be available soon.

    #48460
    HardlyWorkingHardlyWorking
    Participant

    Hello, I just found an additional related issue. I tried to add a new field to the custom fields (file_advanced) and it won't save due to something between Metabox and Polylang.

    Maybe this is related.

    Metabox error

    #48470
    PeterPeter
    Moderator

    Hello,

    Can you please follow the documentation to set the field group translation to Translate and recheck the issue with the field value when duplicating the post?
    https://docs.metabox.io/integrations/polylang/#custom-fields

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