Title: Advanced custom fields
Last modified: August 21, 2016

---

# Advanced custom fields

 *  [genieforge](https://wordpress.org/support/users/genieforge/)
 * (@genieforge)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/advanced-custom-fields-4/)
 * How do I include “Advanced Custom Fields” in the PDF creation?
 * [http://wordpress.org/plugins/post-pdf-export/](http://wordpress.org/plugins/post-pdf-export/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [genieforge](https://wordpress.org/support/users/genieforge/)
 * (@genieforge)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/advanced-custom-fields-4/#post-4377280)
 * I reckon I could figure it out if I could add PHP to the template loop?
 *  Thread Starter [genieforge](https://wordpress.org/support/users/genieforge/)
 * (@genieforge)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/advanced-custom-fields-4/#post-4377401)
 * Bazzinga!!!!!!!
 * It may not be the most elegant fix but I made a new shortcode for “Post PDF Export”.
   I added the below to “post-pdf-export/post-pdf-export.php”, which you can get
   to by clicking edit under “Post PDF Export” on the plugin page:
 *     ```
       <?php
   
       //[custom1]
       function custom1_func( $atts ){
       $custom1 = get_field('field_name');
       return $custom1;
       }
       add_shortcode( 'custom1', 'custom1_func' );
       ?>
       ```
   
 * The “field_name” is the field name of the ACF field. Paste [custom1] into your
   template loop on “Post PDF Export” template manager in WordPress and ya done,
   ACF fields in a PDF!!!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Advanced custom fields’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/post-pdf-export_dfe0df.svg)
 * [Post PDF Export](https://wordpress.org/plugins/post-pdf-export/)
 * [Support Threads](https://wordpress.org/support/plugin/post-pdf-export/)
 * [Active Topics](https://wordpress.org/support/plugin/post-pdf-export/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/post-pdf-export/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/post-pdf-export/reviews/)

 * 2 replies
 * 1 participant
 * Last reply from: [genieforge](https://wordpress.org/support/users/genieforge/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/advanced-custom-fields-4/#post-4377401)
 * Status: not resolved