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

  1. tom373
    Posted 6 years ago #

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


  2. tom373
    Posted 6 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(); ?>
        <?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>";
    </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

  • PDF24 Article To PDF
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic