The way I have designed my blog, i have only 2 categories and basically i have 2 widgets to display posts, one show recent post, which displays the top 10 posts ; second one to display my blogs in chronological order. Often it was getting a headache for me to track my previous posts that are not in the recent section, since they were older than 10.
This lead to my search for a section in wordpress to display all the posts, something thats very similar to ecommerce sites to display all the products. To my surprise there weren’t many, some suggested having a RSS feed show in your website, though this was a good idea there weren’t that many codes available, and the ones that were available, only showed the link of your site.
What i am looking for,to show all the posts that I have ever blogged in a page, in their descending order (latest first, old last), with a small description of my posts and a readmore button, just like rest of my post in wordpress.
This is how I achieved it:
First download the plug in Exec-PHP http://wordpress.org/extend/plugins/exec-php/
which basically lets you run php coding in your posts or pages. currently our wordpress will not let you run these codes.
2nd copy this code, its not completely perfected…but suits me:
3rd Insert into header:
Now you want this page inserted in the header for easy navigation. This code will vary and will be based on your blogs theme.
My theme has categories listed in the header, so i will be editing header.php. I am looking for code where my HOME link is displayed, and copy something like this. The link is basically my page id
you can find your page id, by going to admin, open that particular page , on your address bar, it displays something like above.
Now when i meant the code isnt perfect this is because, right now it displays brief of all the blogs (the way i wanted) but then followed by the whole blog …dint understand, look all posts in my header, scroll down