WP -> Running PHP in pages (9 posts)

  1. Sproke
    Posted 11 years ago #

    I've been trying to figure this out, but I am having trouble. I want to make static archive and links pages (and later other sorts of pages) that run PHP, but I am finding that this is not working.

    This is the pluggin I'm using http://justinblanton.com/projects/smartarchives/

    and then I went to here:

    Because I was told that you needed a plugin to make php work in pages. But the plugin on the priyadi.net page does not work with

    Please help!
    Sproke :0)

  2. Try RunPHP - I'm using it with no problem.

  3. Sproke
    Posted 11 years ago #

    Thanks I will try that :0)

  4. Sproke
    Posted 11 years ago #

    Okay, I uploaded it, activated it, and unchecked " Options -> Writing, turn off the “WordPress should correct invalidly nested XHTML automatically� option." what am I missing?

  5. skippy
    Posted 11 years ago #

    When writing a post or page, are you checking the "eval() Content" option at the top-middle of the Advanced screen?

  6. Z33
    Posted 11 years ago #

    Actually, you don't have to make php run on pages if you wan to use the smart archives. you can create a new file, say archives.php in your theme folder. use this code:
    Template Name: Smart Archives
    <?php get_header()?>

    <?php smartArchives() ?>

    <?php get_sidebar() ?>
    <?php get_footer() ?>

    **Remember, the Template Name is required

    Then, create a new page (in your WP admin panel), and at the bottom (advance editing), you can choose which template to use, either default template or smart archives. Choose smart archives. Save the page.

    All done :D

  7. skippy
    Posted 11 years ago #

    See here for an expanded tutorial on this subject.

  8. Sproke
    Posted 11 years ago #

    Oh, now I understand what "eval() Content" thing is all about - I didn't know what it was until you said "check it". Have clicked it, and it works great now. Cheers very much.

  9. kappaluppa
    Posted 10 years ago #

    I could sure use some help on the RunPHP plugin.

    I installed, turned off the xhtml box, checked eval()php, am using [ instead of < , but cannot get it to work. I am using it in pages. Does that make difference?

    Thanks in advance for any help...

Topic Closed

This topic has been closed to new replies.

About this Topic