Codes for Recent Entries in Wordpress
Last night, Alvin who changed his template asked me, what are the codes of “Recent entries” for Wordpress blogs.
Eventhough Blogsome is running on Wordpress content management system (CMS), its codes are very different from a true Wordpress blog. We searched through the Wordpress support forum but couldn’t find anything helpful.
Finally, I asked Idlan, who was kind enough to help us before getting ready for breaking fast. Thank you Idlan !
For anyone who need the codes, you have it here !
<!–This will show the last 10 posts, including the last one. To change the number of post shown edit the ‘nuberposts=x’ to whatever value you want, and to skip the last one (or last 2, 3, etc.) increase the value of ‘offset=x’ (default is “0″ so it will start by the last post)–>
<ul>
<?php $posts = get_posts(’numberposts=10&offset=0′); foreach ($posts as $post) : ?>
<li>
<a href=”<?php the_permalink(); ?>” title=”<?php the_title() ?>”><?php the_title() ?></a>
</li>
<?php endforeach; ?>
</ul><!– End of Activity –>
Also, thanks to Budu that solved my problem on how to display raw codes here. Before this, the codes couldn’t be shown as raw codes, because they were translated into the effect of what the codes represented. Thus, Budu suggested me to change all the < and > into their respective Html codes, namely & l t ; and & g t ; … It works ! Thanks Budu !






















