Viljami Kuosmanen
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress PDF Templates] pdf from /my-post/printHi and thanks for using our plugin!
I’ve looked into your case and came up with a solution which also lead me to release version 1.1 of WP PDF Templates with stability improvements for situations like this.
My suggested solution is to update the plugin and then add a custom PDF template into your theme (e.g. index-pdf.php) that just echoes the HTML from the /print endpoint generated by the WP-Print plugin.
Here’s an example of the template file:
<?php /** * Filename: index-pdf.php */ // load my-post/print document into a variable $html = file_get_contents( get_the_permalink() . 'print' ); // echo the loaded html echo $html;Now you can simply go to /my-post/pdf or /my-post/pdf-preview to view the result.
Please remember to update WP PDF Templates to the newest version before applying this solution.
Let me know if there’s anything more I can help you with!
All the best,
AnttiForum: Plugins
In reply to: [WordPress PDF Templates] Automating plugin action with a linkHi! Thanks for using our plugin!
You can link from the post just by using relative links like so:
<a href="pdf" target="_blank">PDF download<\a>Cheers!
Forum: Reviews
In reply to: [WordPress PDF Templates] Developers will love this!I’ve now listed ottok as a contributor. Thanks for the helpful advice!
PS. Love the Douglas Adams references.
This issue was resolved in version 1.9.8. Thank you for your assistance!
Forum: Plugins
In reply to: [WordPress HTTPS (SSL)] Non-SSL host problem with FORCE_SSL_ADMIN@esmi: Yes, that’s exactly the case here.