• Resolved Christiaan

    (@christiaan)


    I created an archives page using the archives.php template, and then I created a number of categories (and added some to existing posts) but these posts are not showing up on the Archives page:
    https://world-citizen.net/archives/

    Any ideas?

Viewing 14 replies - 1 through 14 (of 14 total)
  • kickass

    (@kickass)

    It would help if you posted the template code, then we could see what you left out. And you must have left something out.

    Thread Starter Christiaan

    (@christiaan)

    I chose it from the templates pulldown when I was creating the page (Kubrick theme). Here’s the code:

    <?php
    /*
    Template Name: Archives
    */
    ?>

    <?php get_header(); ?>

    <div id="content" class="widecolumn">

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

    <h2>Archives by Month:</h2>
    <ul>
    <?php wp_get_archives('type=monthly'); ?>
    </ul>

    <h2>Archives by Subject:</h2>
    <ul>
    <?php wp_list_cats(); ?>
    </ul>

    </div>

    <?php get_footer(); ?>

    Thread Starter Christiaan

    (@christiaan)

    No ideas?

    kickass

    (@kickass)

    Sidebar code looks okay. Did you change anything in header.php? Like in the head section of the html?

    Thread Starter Christiaan

    (@christiaan)

    No, nothing.

    Thread Starter Christiaan

    (@christiaan)

    No other ideas?

    Thread Starter Christiaan

    (@christiaan)

    Tried reuploading the theme directory, but didn’t help. This has to be a database doesn’t it?

    Thread Starter Christiaan

    (@christiaan)

    a database ‘problem’ I meant…

    I’m having the same problem, also using the Kubrick theme and using

    Thread Starter Christiaan

    (@christiaan)

    I assume you meant to say “using the archive.php template” bytedreams?

    Thread Starter Christiaan

    (@christiaan)

    I think I’ve figured out the problem. All my categories are nested in Parent categories. If I create an un-nested category and publish a post in that category, the category shows up on the archives page.

    So it seems the Kubrick Archives.php template is deficient in some way with regard to nested categories. Does anyone know how to fix this?

    ahh! thanks. I’m just getting back to the problem now in July, Lol but will try it out

    well, that didn’t work. When I click on archive link, it goes back to the site’s homepage, index.htm instead of the archive.

    You shouldn’t have an index.htm in the same directory where your WP is! Only index.php

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Categorised posts not showing up on archives.php template’ is closed to new replies.