Make a Sitemap/Latest post list in WordPress

Sitemap for WordPress

You can easily make a sitemap or a list of your latest posts by following these simple steps.

Step 1

Download and install the PHP Exec plugin

Step 2

Create a new post with your desired name and add this code inside the page content:

<div style=”width:300px;margin-left:50px;font-size:10px”>
<br /><br />
<phpcode>
<?php wp_get_archives('type=postbypost&limit=100'); ?>
</phpcode>
<br /><br />
</div>

The number 100 in the code stands for number of pages to be displayed.
(Before the code starts you can write some text like “Marcus Sitemap” or something else nice.

Finished!

Now it should look something like this: Latest 50 posts

Now you can create a page and use the page-slug to link it to the post. That way you can have your list/sitemap easy to spot.

Thanks to Jim for this.

Inspiration in this post is taken from: Jim´s Sitemap tutorial

One thought on “Make a Sitemap/Latest post list in WordPress

  1. What are the best tips on SEO today on the market? Any one can suggest some online tutorial links, please. I am a new to this field and would like to learn more. Thank you!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>