WordPress.org

Forums

Archive page not working (13 posts)

  1. soulseed
    Member
    Posted 8 years ago #

    I am very in very unfamiliar territory when dealing with php, so I was wondering if someone could help me figure out why my archive page doesnt show any categories or dates. My website is http://www.soulseed.com and the help would be very appreciated.

  2. Chris_K
    Member
    Posted 8 years ago #

    It appears to be working. Did you fix it already?

  3. soulseed
    Member
    Posted 8 years ago #

    Well the category and dates are on my sidebar, but shouldnt they be on the actual archives page too? sorry if its a dumb question, im very very new to this.

  4. Chris_K
    Member
    Posted 8 years ago #

    If I click on your September link, I see " Archive for September, 2006" in big bold text at the top of that page. Isn't that what you want?

  5. moshu
    Member
    Posted 8 years ago #

    I guess the OP is referring to http://www.soulseed.com/?page_id=8
    but I'm not familiar with that theme, so I don't know what to expect there...

  6. Chris_K
    Member
    Posted 8 years ago #

    ah. yeah. Looks like it's intended to have an archive plugin there.

  7. soulseed
    Member
    Posted 8 years ago #

    yeah thanks moshu, i should have linked the archive page i was refering to, sorry...

    so is the archive page dependant on the theme? im using k2 with a style addon if that makes any difference

  8. moshu
    Member
    Posted 8 years ago #

    It does (make a difference). Have no idea what code is in that Page template and what is supposed to display.

  9. soulseed
    Member
    Posted 8 years ago #

    heres the only files i could find that had archive in them

    archive.php
    ----------------------------------------------------------
    <?php get_header(); ?>

    <div class="content">

    <div id="primary">
    <div id="current-content">

    <?php include (TEMPLATEPATH . '/rollingarchive.php'); ?>

    </div> <!-- #current-content -->

    <div id="dynamic-content"></div>
    </div> <!-- #primary -->

    <?php get_sidebar(); ?>

    </div> <!-- .content -->

    <?php get_footer(); ?>

    ----------------------------------------------------------
    rollingarchive.php

    <?php
    $prefix = '';

    // Get Core WP Functions If Needed
    if (isset($_GET['rolling'])) {
    require (dirname(__FILE__)."/../../../wp-blog-header.php");
    $prefix = 'nested_';
    }
    ?>
    <?php
    // Load Rolling Archives?
    if ( (get_option('k2rollingarchives') == 1) ) {
    $k2pagecount = k2countpages($wp_query->request);

    if ($k2pagecount > 1) {
    ?>
    <div id="<?php echo $prefix; ?>rollingarchives">
    <div id="<?php echo $prefix; ?>rollnavigation">
    rollprevious"><span>«</span> <?php _e('Older','k2_domain'); ?>
    rollhome"><img src="<?php bloginfo('template_directory'); ?>/images/house.png" alt="Home" />

    <div id="<?php echo $prefix; ?>pagetrack"><div id="<?php echo $prefix; ?>pagetrackend"><div id="<?php echo $prefix; ?>pagehandle"></div></div></div>

    <span id="<?php echo $prefix; ?>rollload"><?php _e('Loading','k2_domain'); ?></span>
    <span id="<?php echo $prefix; ?>rollpages"></span>

    rollnext"><?php _e('Newer','k2_domain'); ?> <span>»</span>
    </div>

    <div id="<?php echo $prefix; ?>rollnotices"></div>
    </div>
    <script type="text/javascript">
    // <![CDATA[
    var raUrl = window.location.href.match(/^(http:\/\/[^/]+)/)[1]
    + '<?php bloginfo('template_url'); ?>'.match(/^http:\/\/[^/]+(.+)/)[1];

    var <?php echo $prefix; ?>rolling = new RollingArchives('<?php echo $prefix; ?>primarycontent', raUrl + '/theloop.php', '<?php echo $wp_query->query; ?>', <?php echo $k2pagecount; ?>, '<?php echo $prefix; ?>');
    // ]]>
    </script>

    <?php } } ?>
    <div id="<?php echo $prefix; ?>primarycontent" class="hfeed">
    <?php include (TEMPLATEPATH . '/theloop.php'); ?>
    </div><!-- #<?php echo $prefix; ?>primarycontent .hfeed -->

    ----------------------------------------------------------

    It reads like greek to me, but hopefully one of you can please tell me if one of these is the right file and if i need to put something in to make categories and dates show up on the http://www.soulseed.com/?page_id=8 page...

  10. moshu
    Member
    Posted 8 years ago #

    1. Don't post long code here - it doesn't display correctly and nobody ever bothers to take a look at it.
    1a. Paste your long code always to http://wordpress.pastebin.ca and post back the URI
    2. For short code line there is always the "backtick" ` (probably where the ~ is)
    3. I am afraid this is not the one. Do you have a template file called archives.php, with S at the end?

  11. soulseed
    Member
    Posted 8 years ago #

    thanks for the tip i didnt know about pastebin.ca

    oddly enough there isnt an archives.php in there... another strange thing is that when i try to edit the archives page through the admin panel all it has is 'Do not edit this page' is there any way i can find out what php file this is pointing to so i can post that?

    and thanks for the persistant help mods, I know I can be a bit of a pain ;)

  12. moshu
    Member
    Posted 8 years ago #

    Look, K2 is a bit more than a simple theme - many people consider it a "modification" of WP.
    You should read all the details here: http://getk2.com/about/
    To be honest, I am not interested to learn about it...

  13. soulseed
    Member
    Posted 8 years ago #

    Alright thanks, I didnt know k2 changed wordpress or I would have been looking for help elsewhere. As I said, I am very new to this all.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags