Forums

Creating a page with PHP (4 posts)

  1. basketball
    Member
    Posted 7 years ago #

    Hey sorry to ask this newbish kind of question but I want to run an archives page using the SPS archives plugin from here http://stevepsharpe.co.uk/2005/05/02/sps-archives-v10-pr/

    The instructions say; "Create a page within you theme and call it archives.php or whatever you prefer. Do this step manually as you can’t run PHP on a page made from withing the admin control panel." So how would I go about doing this, I tried copying the archives.php file and putting in <?php get_sps_archives(); ?> and putting the file in the theme which doesn't work, then I tried putting the file in the main directory and that didn't work either. Any ideas?

  2. basketball
    Member
    Posted 7 years ago #

    NVM got it working, dunno how. I just one of my old chopped up pages from WP 1.2

  3. electrolund
    Member
    Posted 6 years ago #

    How did you get this working? I'm running into the same question with that archive plugin.

  4. jonimueller
    Member
    Posted 6 years ago #

    Use David Chait's QuickPHP plugin and you can put php code on Pages with that.

    http://www.chait.net/download.php?filename=cg-quickphp-08.zip

    Once the plugin is installed, this:

    <?php some_php_code_here ?>

    becomes this:

    <quickphp some_php_code_here; />

    And your code for the archive plugin becomes:

    <quickphp srg_clean_archives(); />

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags