• The preview frame plugin takes the article html sticking it in an iframe in the article’s post edit so you can see your post.

    So… What can I put in the code below so that the print url replaces this “preview_url” and will display the print page in the iframe, without the theme, ads, and other content unrelated to the post?

    $preview_url = clean_url(apply_filters('preview_page_link', add_query_arg('preview', 'true', get_permalink($post->ID))));

    This capability may increase the usage of the print plugin, with people who don’t want a print function getting it for this preview application.

Viewing 1 replies (of 1 total)
  • Thread Starter thewebhead

    (@thewebhead)

    Make this change after installing wp-print on preview-frame.php line 14:

    $preview_url = clean_url(apply_filters('preview_page_link', add_query_arg('preview', 'true', add_query_arg('print', '1', get_permalink($post->ID)))));

    and that does the trick.

Viewing 1 replies (of 1 total)
  • The topic ‘Integrate wp-print into preview frame plugin’ is closed to new replies.