• I am pretty close to finishing the initial design of my site, except for an archive problem. My theme (unsleepable) recommends the Extended Live Archive plug in the the README, but I can’t get it to work. So I thought I would try another plug-in instead. I disabled the ELA and installed CleanArchive (http://www.sporadicnonsense.com/2006/05/04/clean-archives-20/). I did everything he wrote in the README file, and put the code on a new page – but it doesn’t show up. I’m stuck.

    I’m new to WordPress and haven’t had a lot of easy success getting plugins to show up on new pages. Every time I paste the code in the HTML window of the new archive page and then save it – it doesn’t change, and when I go back, the HTML is gone. Is there a key I need to insert? I had to use a key for the AMM plugin.

    Can anyone help this newbie?

    Thank you!

Viewing 8 replies - 1 through 8 (of 8 total)
  • I think when you are pasting the code you need to go into HTML mode before you paste.

    Does that fix the problem, or have you already gone to HTML mode in the WYSIWYG?

    Is the code purely HTML or does it contain PHP?

    Thread Starter varresa

    (@varresa)

    Yes, I’ve been going to HTML mode. This is the code it says I need to post for the CleanArchives:

    <?php srg_clean_archives(); ?>

    And I actived the Exec-PHP plug-in as well…

    This has me confused!

    Thank you!

    You probably misread something. THat kind of code that you posted above should NOT be in the content area but in the Page template for the archives, usually called archives.php (notice the S at the end!!!).
    About Page templates >> http://codex.wordpress.org/Pages#Page_Templates

    I’ve had issues with the Exec PHP plugin and ended up using RunPHP which I’ve had no qualms with so far. Maybe try RunPHP as well?

    http://www.nosq.com/blog/2006/01/runphp-plugin-for-wordpress/

    Thread Starter varresa

    (@varresa)

    Thanks again –

    Yes I must have understood that concept incorrectly. Another quick question then… I have been able to locate only 2 archive files – one called archive.php (no S) and one called page-archives.php (which says Do Not Use Manually – this is for ELA). These are in the unsleepable theme folder – is there someplace else that I can find the archives.php file that you talk about? At this point, should I be deleting any archive page from my WP admin and starting over?

    http://www.varresa.org

    Thanks!

    archives.php is in the theme folder for the default theme, and for most themes.

    archive.php – no S at the end, is a template file for WP which will display your monthly archive view and category archive view (practically when clicking on a month or a category name in the sidebar’s menu). See http://codex.wordpress.org/Template_Hierarchy

    On the other hand the Page templates can be called almost anything – you can call it moshu.php 🙂 just have the right code in it for displaying your archives – and select the proper Page template when creating the Page!
    [Yes, the archives.php of the default theme is a good starting point to see how to make an Archives Page]

    Thread Starter varresa

    (@varresa)

    Alright – I think I’m finally getting it! Your comment “select the proper Page template when creating the Page!” did the trick for me!

    Thank you so much!!!

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

The topic ‘Archives’ is closed to new replies.