WordPress.org

Forums

[Plugin: article2pdf] adding code to single.php (2 posts)

  1. Marc Serra
    Member
    Posted 5 years ago #

    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/

  2. Rhama
    Member
    Posted 4 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic