• Marc Serra

    (@elseudomininet)


    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="http://s.wordpress.org/style/images/feedicon.png" />

    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: http://www.elseudomini.net/elrebost/?p=87

    Thank’s!

    http://wordpress.org/extend/plugins/article2pdf/

Viewing 1 replies (of 1 total)
  • you should use code like this:
    <a href="<?php the_permalink(); ?>?article2pdf=1"><img src="http://s.wordpress.org/style/images/feedicon.png" /></a>

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