|
|
| Author |
Message |
tom373
Joined: 20 Jul 2010 Posts: 1
|
Posted: Tue Jul 20, 2010 12:58 pm Post subject: WP3: Include custom fields in pdf output? |
|
|
Please, how can I include custom fields of a post in the pdf output? I added custom fields by "get" to my posts (single.php and the loop) and a category-based menu page.
| Code: |
<?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 -->
|
Now I want to create a pdf of the category-based menu including the fields, but my PDF output doesn't include the contents of the custom fields. How can I do that? |
|
| Back to top |
|
 |
pdf24 Site Admin
Joined: 14 Aug 2006 Posts: 331
|
Posted: Mon Nov 14, 2011 8:06 am Post subject: |
|
|
| I'll look at that. Maybe the custom fields are rendered after the plugin. I'll test that. |
|
| Back to top |
|
 |
nashua
Joined: 06 Apr 2012 Posts: 1
|
Posted: Fri Apr 06, 2012 1:15 pm Post subject: |
|
|
| pdf24 wrote: | | I'll look at that. Maybe the custom fields are rendered after the plugin. I'll test that. |
Is this already been solved? I have the same problem.
thank you
Jeroen |
|
| Back to top |
|
 |
pdf24 Site Admin
Joined: 14 Aug 2006 Posts: 331
|
|
| Back to top |
|
 |
|