• Hi there,

    I’m using your plugin with Advanced Custom Fields and WPML, and I’ve encountered an issue that I need your help with. When I upload a PDF for the default language and then duplicate the post type for a secondary language, the fields are prefilled with the PDF, but the PDF thumbnail doesn’t appear unless I use a different PDF or upload a new one. Is there a way to fix this so that the thumbnail appears correctly for the secondary language? Right now I manually regenerated the thumbnail using “
    Generate missing PDF thumbnails” but that isn’t ideal.

    Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author kubiq

    (@kubiq)

    Hello,

    are you sure you duplicate post type and not just a post ? Because otherwise I don’t understand how can a post type contain PDF.

    Also I would need to know how exactly you duplicate it… in ACF or in WPML?

    Give me exact steps how to replicate this please ??

    Thread Starter yanickc

    (@yanickco)

    Hi there Kubiq,

    Apologies for the confusion earlier, I meant posts.

    Here are the steps I take to duplicate a post:

    1. Create the post in the default language (French).
    2. Add the PDF in the WordPress edit screen using the ACF field “File” and click save. The preview for that PDF works perfectly.
    3. Check the “Duplicate” box (WPML). You can see it here: https://cln.sh/dxfX4jLM
    4. Navigate to the secondary language where I duplicated the post (English) and click “translate independently.” You can see it here: https://cln.sh/wr0KDWtz
    5. Change the title and hit save.

    The issue arises when the PDF thumbnail does not regenerate for the duplicated post. If I delete the PDF and add a new one, the thumbnail appears correctly. However, if I don’t, your plugin doesn’t regenerate the thumbnail since it was already generated for the main language (French). Visually, the thumbnail appears as a broken link.

    The only way I can resolve this is by going to your plugin settings and clicking “Generate Missing PDF Thumbnails” or removing the PDF and adding it again. This process is not ideal or optimal for my client.

    Hopefully, this explanation is clearer. I really appreciate your help on this.

    Cheers,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Issue with Thumbnail Generation when Duplicating WPML Post Type Item’ is closed to new replies.