Hello Everyone,
I’m using WP2PDF and I’m hoping someone might know how to accomplish this.
The following link can be inserted into the sidebar which will take the displayed post and convert it into PDF.
<a href="wp2pdf/wp2pdf.php?p=<?php the_ID(); ?>">Print Friendly</a>
However, I would need to use the following link for it to work with Pages.
<a href="wp2pdf/wp2pdf.php?page_id=<?php the_ID(); ?>">Print Friendly</a>
Is it possible to write some crafty PHP that will detect if it’s a page or post so I can use just one link?
Thanks!