WordPress.org

Support

Support » Themes and Templates » Custom Print Template

Custom Print Template

  • dcooney
    Participant

    @dcooney

    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()?

    thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • esmi
    Forum Moderator

    @esmi

    Try creating a print.css file.

    dcooney
    Participant

    @dcooney

    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

    pixelnate
    Member

    @pixelnate

    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.

    dcooney
    Participant

    @dcooney

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

    pixelnate
    Member

    @pixelnate

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

    Chip Bennett
    Theme Review Admin

    @chipbennett

    @pixelnate:

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Custom Print Template’ is closed to new replies.