• Resolved Vera

    (@vera)


    Anyone that uses this plugin: srg_clean_archives that was successful, please let me know what I did wrong.

    My WordPress version is 1.5.1.3 and I want to make a seperate archives page. What I did was upload the plugin – active it. And I called the function <?php srg_clean_archives(); ?> in the page I’ve made called “wp-archives.php”. That’s all I have in there. And when I visit that link to the wp-archives.php page, I get this:

    Fatal error: Call to undefined function: srg_clean_archives() in /home/sleepii/public_html/vera/wp/wp-archives.php on line 1

    What did I do wrong? Thanks.

Viewing 10 replies - 16 through 25 (of 25 total)
  • You should put it in the archives.php template.
    In a theme a did the following:
    1. took the searchform.php from the default theme and saved the file in my theme directory
    2. put this line – exactly as it is, don’t change anything! in the archives.php where I wanted to appear:
    <?php include (TEMPLATEPATH . '/searchform.php'); ?>

    Thread Starter Vera

    (@vera)

    Okay. What I did was use the “search form” code and placed it where I want it to appear in the Archives Template I’ve made. And I believe this alternate method works too =) maybe people would like to know.

    Also, Is there a way to show the title of the page you’ve made?
    I inserted this for my PAGES:

    <div class=”post”>
    <h3 class=”storytitle” id=”post-<?php the_ID(); ?>”><?php the_title(); ?></h3>
    </div>

    and it worked. But I tried it for Archives, and it didn’t. Is it something else? – cause this code is for Pages ( doesn’t work with Archives I guess =/ )

    Thread Starter Vera

    (@vera)

    Hmm.. anyone? xD

    Although I am not using any title in my archives.php I tried to put in the code you quoted above and it worked perfectly.
    This is what I have in my archives.php:
    http://pastebin.com/333035

    I didn’t have any problem inserting the php code in a new page I called My Archives. Check it out at http://www.jwurster.us/wordpress/. I’m not really sure what you are trying to do. What is a link to see what is happening?
    Thank you, jim

    Thread Starter Vera

    (@vera)

    @moshu:

    the link didn’t work =(

    @jwurster:

    I meant to say that I want the the title of the page you’ve named to show up.

    here’s the link:
    http://vera.pyhra.org/wp/wp-archives/

    (You see a purple link above the search form? Above the search line “should have the title of the page I’ve named. But I don’t see it visible. =/

    Thanks guys!

    Thread Starter Vera

    (@vera)

    Sorry about my spelling errors near the end of the post, let me write it again:

    (You see a purple LINE above the search form? Aobe the search line.. “should” have the title of the page I’ve named. But I don’t see it visible. =/ Any ideas??

    Thanks guys!

    Vera, if you don’t mind, I’d say this title issue is a minor problem that can be dealt with later… but there are some major problems with the design of the site at the link above. I’d rather focus on those πŸ™‚

    Thread Starter Vera

    (@vera)

    Nevermind, I forgot this:

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

    &

    <?php endwhile; else: ?>
    <?php _e(‘Sorry, no posts matched your criteria.’); ?>
    <?php endif; ?>

    <? print_pg_navigation() ?>

    Before and after the tags. My bad.

    Thread Starter Vera

    (@vera)

    My design has an issue? LOL. Yes, I’ve written a post about my footer not (behaving) and no one could seem to figure it out. (Until then.. it’s still like this ='( .. unless you can figure it out?)

    Then you are truely a genious!

Viewing 10 replies - 16 through 25 (of 25 total)

The topic ‘srg_clean_archives’ is closed to new replies.