Create template for just a print

by Pavel Janicek   Last Updated July 26, 2019 07:08 AM

I have custom post which prints some content in tabbed table, where only selected tab is visible.

Now, if print is selected, I would like to print contents of all the tabs. The problem is, that some content of these tabs is stored in post_meta, therefore I need to come up with different way of displaying the content for print and for usual displaying.

Is there a way to have single-custom.php for displaying custom post and (say) single-custom-print.php for printing it?

I have searched several print plugins and none of them do what I want them to do. If interested, here is example of the site in developement. Theme used: WP Travel

Tags : templates pdf

Related Questions

How to add new CSS file to new PHP file

Updated April 15, 2015 20:03 PM

Get name of the current template file

Updated July 24, 2015 13:03 PM

Stuck with a message across all my pages?

Updated March 15, 2016 08:03 AM

Creating a template - simple as copy paste?

Updated May 08, 2016 08:03 AM