• Resolved peterjabulani

    (@peterjabulani)


    Hi, thanks so much for this plugin – it is awesome how much I can customize it to how I want it to work for me. I am having a few problems with displaying items – probably because I am a noob.

    I want to display a gallery that is linked to the post – I have managed to get the post ID but it is showing as “Array” as it is just numbers in the database. How do I go about displaying the array of images?

    Code: <div class=”Condition”>gallery: ‘ . get_post_meta($post->ID, ‘_car_gallery’) . ‘</div>

    Thanks in advance

    https://wordpress.org/plugins/wp-mpdf/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author fkrauthan

    (@fkrauthan)

    Hey,

    You need to find out how the plugin you are using for it is working. Take a look if you had to add code to your template for example for the gallery. If yes you just add the same code to your PDF template.

    Thanks,
    Florian

    Thread Starter peterjabulani

    (@peterjabulani)

    I have tried this, however it is php code and as far as I can understand the $pdf_output uses html code – right? Am I missing something?

    Thanks

    Plugin Author fkrauthan

    (@fkrauthan)

    Yes $pdf_output needs to contain the final HTML code. But since it is PHP you can call any PHP function that generates the gallery HTML code for example.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display gallery from post’ is closed to new replies.