Hi, can anyone tell me how I can display recent posts on a static page?
The idea is to create a home page looking like this:
-
Text
Recent inline posts
Text
Thanks for your help.
John
Hi, can anyone tell me how I can display recent posts on a static page?
The idea is to create a home page looking like this:
Thanks for your help.
John
Hi,
Add this code in static page of your blog:
<?php wp_get_archives('title_li=&type=postbypost&limit=10'); ?>
Change the post limit according to your requirement.
Thanks,
Shane G.
Sorry mate, that didn't work. Tried it even on the default theme and nothing came up. Thanks for your time anyway.
Is there any another way to implement this or is there something I haven't activated?
John
I'm desperate, please help.
There has to be a way to display recent WordPress posts on static pages.
go to wordpress settings and change the 'posts page' to your static page.
or else create a custom page template and add the above code in that template and Use that template to your static page.
<?php wp_get_archives('title_li=&type=postbypost&limit=10'); ?>
should be added before or after or without the WordPress Loop
I'm trying to archive the same thing.
Sorry, but where do you put this code exactly? I tried it in the html of a static page right where I want to display the posts but that didn't work.
Thanks already.
use exec-php plugin and add the php code in the static page or create a custom page template and add the code in that template.
This topic has been closed to new replies.