• I have WordPress 1.2 installed and running, and I have created a custom printable page for a client. My problem is that I use the content itself straight from the database because ad code needs to be inserted, and the Markdown plugin does not seem to work on the printable page.

    I used the same method to insert the code in the main blog index, and it worked fine. When I try to do it on the printable page, the special characters make it look horrible, and Markdown seems not to apply.

    ~A!

Viewing 2 replies - 1 through 2 (of 2 total)
  • What do you mean by “straight from the database” ?

    If you’re calling wp-blog-header.php and WordPress’ functionality, and outputting content with something like $post->post_content, try this:

    echo Markdown($post->post_content);

    If not, see if you can incorporate the plugin file with a regular PHP include, and access the Markdown function that way (although, thinking about it, the plugin as-is may not work, since it’s probably expecting WP-related functions to be defined).

    Thread Starter alevensalor

    (@alevensalor)

    That did it, thank you. Much obliged for the help.

    ~A!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Printable Page’ is closed to new replies.