Custom Print Template (7 posts)

  1. dcooney
    Posted 4 years ago #

    Anyone know of a quick and simple way of creating a custom print page template?

    For example print.php?id=3625

    I'm looking to create a very basic, no styling print page for recipe posts. Im hoping to not have a need for a custom print style sheet.

    Can I pass the recipe via querystring to the print page? and then just display the_title() and the_content()?


  2. esmi
    Forum Moderator
    Posted 4 years ago #

    Try creating a print.css file.

  3. dcooney
    Posted 4 years ago #

    Sorry, thats what I don't want to do.
    The client wants to click 'print page' and get taken to a separate, not syled page where the user can then print.

    The un styled page will only have the_title() and the_content() along with a PRINT button

  4. pixelnate
    Posted 4 years ago #

    Did you ever come up with a solution for this dcooney? I want to do something similar, like how they do print template on tastykitchen.com . The print layouts are completely separate files.

  5. dcooney
    Posted 4 years ago #

    @pixelnate no i did'nt.
    Just heavily customized a print stylesheet.
    Did not have the budget to pursue this any further

  6. pixelnate
    Posted 4 years ago #

    I found this link that looks promising. I'll be trying it out this weekend, and will report my findings.

  7. Chip Bennett
    Theme Review Admin
    Posted 4 years ago #


    The WPSE answer you linked was going to be the method that I recommend: register a query variable, and then do a template_redirect based on that query var.

Topic Closed

This topic has been closed to new replies.

About this Topic