WordPress.org

Ready to get started?Download WordPress

Forums

PDF24 Article To PDF
How-to include Custom Fields in PDF? (2 posts)

  1. tom373
    Member
    Posted 4 years ago #

    Please, how can I include custom fields of a post in the pdf output?

    http://wordpress.org/extend/plugins/pdf24-post-to-pdf/

  2. tom373
    Member
    Posted 3 years ago #

    Any replies? Just to provide a more detailed explanation of my problem:

    Added custom fields by "get" to my posts (single.php and the loop) and a category-based menu page.

    <?php the_content(); ?>
      <ul>
        <?php if ( get('CUSTOM_FIELD_NAME1',TRUE) ) {
         echo "<li>Custom Field Name1: ", get('CUSTOM_FIELD_NAME1'), "</li>";
         }
        ?>
        <?php if ( get('CUSTOM_FIELD_NAME2',TRUE) ) {
         echo "<li>Custom Field Name2: ", get('CUSTOM_FIELD_NAME2'), "</li>";
         }
        ?>
      </ul>
    </div><!-- .entry-content -->

    I want to create a pdf of the category-based menu including the fields. How-to?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic