Support » Plugins » [Plugin: article2pdf] adding code to single.php

  • Marc Serra


    Good morning here!

    I’m using article2pdf and I think it’s a great plugin! good job!

    I’m trying to export to PDF some custom fields added to single.php theme file, I can see this custom fields in my post pages, but in the PDF this fiedls are not printed.

    In single.php I add:

    <p><strong>Títol: </strong><?php getCustomField('titol'); ?></p>

    For avoid a custom field problem, I try to print a simple image. I added to single.php:

    <img src="" />

    Again, I can see the image in my post page but no in the PDF.

    It’s possiblo to do that?

    You can see it here:


Viewing 1 replies (of 1 total)
  • you should use code like this:
    <a href="<?php the_permalink(); ?>?article2pdf=1"><img src="" /></a>

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: article2pdf] adding code to single.php’ is closed to new replies.