Skip to content

The Print View renders a clean, print-optimized version of a wiki page, stripping away navigation, sidebars, and plugin UI. It opens in a new browser window and automatically triggers the browser’s print dialog.

The print view generates a standalone HTML document (not inside your theme’s template hierarchy) containing:

  • The page title as an <h1>
  • A retrieval note showing the date the page was accessed and the site name (e.g., “Retrieved March 12, 2026 from My Site”)
  • The full page content processed through WordPress’s the_content filter - meaning wiki links are resolved, the TOC is rendered, and any other content filters apply
  • A footer with the page’s canonical URL and last-modified date

The print view includes inline styles optimized for reading on paper:

  • Georgia serif font, 14px, max-width 800px
  • H1 with a bottom border, H2 with a lighter border
  • Images constrained to max-width: 100%
  • A @media print rule that removes any .no-print elements and resets margins

The print view is triggered via the ?wbmw_action=print URL parameter on the wiki dashboard, passing the page ID:

?wbmw_action=print&wbmw_page_id=123

The plugin also provides a helper function for generating print URLs:

$print_url = wbmw_get_print_url( $page_id );

This URL is typically linked from the single wiki page’s action bar via the wbmw_page_actions filter (see Hooks & Filters).

The print view is rendered by wiki-print.php. Override it in your theme at:

wp-content/themes/{your-theme}/wb-member-wiki/wiki-print.php

The template receives $page_id (int) - the ID of the page being printed.

Note: Because the print view outputs a complete <!DOCTYPE html> document, it bypasses WordPress’s standard template loading. Your theme header, footer, and sidebars are not included. Keep this in mind when overriding the template.

The print view applies apply_filters( 'the_content', $wiki_page->post_content ) so all content processing (wiki link parsing, TOC generation, shortcodes) runs on the printed output exactly as it does on the live page view.

To add content to the print view programmatically, override the template rather than using template hooks, since no wbmw_ hooks are defined inside the print template.