WordPress.org

Ready to get started?Download WordPress

Forums

WP-Print
custom post types + print (7 posts)

  1. nkuttler
    Member
    Posted 3 years ago #

    the generated print_link() doesn't seem to work on custom post types

  2. Bassscape
    Member
    Posted 3 years ago #

    I agree.

    I have a blog in testing where I can view the wp-print page for pages and posts but not either of the custom post types which have been set up.

    I don't have a solution for this at the moment.

  3. nkuttler
    Member
    Posted 3 years ago #

    It's just the permalink that is broken.

    blah works.

  4. nkuttler
    Member
    Posted 3 years ago #

    Oh nice, the forum just shows the link. Anyway, href="?print=1" works ;-)

  5. Bassscape
    Member
    Posted 3 years ago #

    Ok - the wp-print page works ok for custom post types but on ly when permalinks are set to default.

    You can't have custom permalinks for custom post types if you want them to work with wp-print.

  6. Chris Reynolds
    Member
    Posted 3 years ago #

    @Bassscape
    that's not entirely true. You just can't use the print_link function. This is what I've got (which works):

    <?php if(function_exists('wp_print')) { ?><a href="<?php the_permalink()?>?print=1">Print this page</a> <?php } ?>

  7. Bassscape
    Member
    Posted 3 years ago #

    @jazzs3quence
    Thanks for the tip ........ I'll be able to use WP Print again! Much appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic