• Resolved ohsheglows

    (@ohsheglows)


    Does anyone know if there is a way I can create a php page like “printme.php” use the Post perma-link.

    ie: https://<domain>/<post_date>/<post_title>/printme.php

    So that I can use the get_the_content() function to pull a specific section of the page and display only that?

    The reason being is I want to display a printer friendly page for just a specific section of a post. So I can grab between 2 div’s that I specifically name (ie. <div id=”startprint” /> and <div id=”endprint” />.

    Any help would be greatly appreciated. I looked at the wp-print plugin but it doesn’t appear to have a functionality like this built in.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Want to create custom php page to pull WordPress content’ is closed to new replies.