add archive page list of blog posts
-
I would like to add an archive page that shows a list of all the blog posts i ever did – do not need sorted by month or category. So far I was able to get this code done, but it’s not giving the results I want.
<?php
/*
Template Name: Archives
*/
get_header(); ?><div id=”container”>
<div id=”content” role=”main”><?php the_post(); ?>
<h1 class=”entry-title”><?php the_title(); ?></h1><?php get_search_form(); ?>
<h2>Archives by Month:</h2>
-
<?php wp_get_archives(‘type=monthly’); ?>
<h2>Archives by Subject:</h2>
-
<?php wp_list_categories(); ?>
</div><!– #content –>
</div><!– #container –><?php get_sidebar(); ?>
<?php get_footer(); ?>The link to my page is: https://betterdecoratingbible.com/archives/
Please do not say I need a child theme – i’m working on it! :))
- The topic ‘add archive page list of blog posts’ is closed to new replies.