WordPress.org

Support

Support » How-To and Troubleshooting » Page with only archive entries?

Page with only archive entries?

  • tdellaringa

    @tdellaringa

    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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator James Huff

    @macmanx

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

    tdellaringa

    @tdellaringa

    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.

    Moderator James Huff

    @macmanx

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

    tdellaringa

    @tdellaringa

    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

    Moderator James Huff

    @macmanx

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Page with only archive entries?’ is closed to new replies.
Skip to toolbar