Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1314208

    I purchased a plugin (WordPress Print Posts & Pages (PDF) https://codecanyon.net/item/wordpress-print-posts-pages-pdf/20234379) for converting pages to PDFs and print-friendly versions, but this plugin does not seem to be working with the theme. I took this intro from an existing thread as it is my problem also. I tested several other plugins but this one seems to be the only one which can create an individual header and footer for the PDF.

    Reading a couple of threads about incompatibilities between Enfold (Avia Layout Architekt elements) and PDF generators I have come to the conclusion that the rendering (timing) of the Avia shortcodes is the issue. (Using the WP editor is not an option). The only readable part seems to be the text in between the „av_textblock“. … images wrapped around „av_image“ e.g. on are not displayed.

    I contacted the developer of the plugin mentioned above and the response was:
    Avia does not seem to create the shortcodes before the INIT hook. So the shortcodes are not rendered before the PDF is generated with the result that the plugin cannot recognize and execute the shortcodes.

    I should ask you (Kriesi) if there is a solution that shortcodes can be mapped (?) beforehand. The Visual Composer for instance is able to do that.

    Sorry if someone can’t really follow my inquiry. I don’t really understand the technical part either. I’m just the mediator in this case. And partially translated from German…

    Thanks in advance
    Björn

    #1315998

    Hey markt8_gmbh,

    Thank you for the inquiry.

    Looks like the plugin author added a shortcode support in the latest version of the plugin.

    ======
    1.5.7
    ======
    – FIX: Important: Shortcodes not executed

    ======
    1.5.6
    ======
    – NEW: Option to disable “Render Shortcodes” (Enfold support)
    https://imgur.com/a/5S315F7

    Unfortunately, we are not really sure how or when the plugin creates the PDF file, so we cannot offer any help in this case.

    Best regards,
    Ismael

    #1316111

    Hello Ismael,

    thank you for your reply. That fix didn’t work.
    After this attempt the author told me to contact you.

    Maybe he can reply here, I’ll give it a try.

    Best regards,
    B

    #1316214

    The author wants you to reply to this:
    “Avia does not seem to create the shortcodes before the INIT hook. So the shortcodes are not rendered before the PDF is generated with the result that the plugin cannot recognize and execute the shortcodes.”

    It does not work with shortcodes before the INIT hook.

    Best regards,
    B

    #1316547

    Hi,

    We do not really understand how the plugin creates the PDF file during the init hook or how it retrieves the content during that time. The global $post variable will still be null by then or will not be available, so you cannot use default function like get_the_content to retrieve the content of a post.

    The Advance Layout Builder saves the shortcodes or content in the post_content, same as when you edit a page or post in the default editor, so the plugin should be able to use the get_the_content function to retrieve the shortcodes. It also saves the shortcodes in the _aviaLayoutBuilderCleanData custom field or meta info — the get_post_meta function might be useful as well. They are then processed in the themes\enfold\template-builder.php template file for rendering.

    Best regards,
    Ismael

    #1316647

    Thank you for you reply, Ismael!
    Let´s see if the author can deal with it.
    I’ll let you know.

    Regards,
    B

    #1317278

    Hi,

    Alright. Let us know when the author replies. We will keep the thread open.

    Thank you for your patience.

    Best regards,
    Ismael

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