WordPress.org

Ready to get started?Download WordPress

Forums

Page with only archive entries? (6 posts)

  1. tdellaringa
    Member
    Posted 8 years ago #

    Awhile ago I had a page, called it my notebook, and it only had a listing of the months of entries on the left, and the categories on the right. I can't seem to remember how I did this and am coming up empty on search.

    It seems like I merely want to display archives.php, which has this in it:

    <h2>Blog entries by Subject:</h2>

      <?php wp_list_cats(); ?>

    <h2>Blog entries by Month:</h2>

      <?php wp_get_archives('type=monthly'); ?>

    those are the two things I want, but how do I get a page I can link to, to do that?

    Thanks

    Tom

  2. Go to Write/Write Page. What options do you have under the pull-down menu for "Page Template"?

  3. tdellaringa
    Member
    Posted 8 years ago #

    Do you mean "Page parent"? This is no page owner drop. I have made about 6 single pages (all blank as of yet), and they are listed there.

    I tried to insert the code from my archives.php page into a "page" but it doesn't execute (it is not parsed as php), it gets written out as text.

  4. No, the "Page Template" drop-down menu. You may have to enable "Advanced controls" in Options/Writing.

  5. tdellaringa
    Member
    Posted 8 years ago #

    Strike that - now I do see it for some reason. Under page options. I have:

    Default
    Archives
    Links

    And it is using default. I found I can use page.php to customize the page using tags which is great, but then ALL my pages will be that one page essentially. I assume you are getting at making a custom template "page.php" that I can use only for that page? And then use tags to call whatever cats/archives I want?

    If so, how do I make a custom/additional 'page' template...

    Tom

  6. Nope, all you have to do is create a new page, title it whatever you wish, enter absolutely no content, and select "Archives" as the Page Template. As long as your theme offers an "Archives" template, it's as simple as that.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags