Ever wondered how to display recent wordpress posts anywhere on your site? The answer is simple. Simply using the following code snippet and adjust the HTML to something of your choice that matches your website. All you need to do is include the wordpress config file of your installation you wish to retrieve posts from and use this small snippet of code on your website.
<ul>
<?php
require_once(’wp-config.php’);
$myposts = get_posts(’numberposts=5&offset=0′);
foreach($myposts as $post)
{
?>
<li><a href=”<?php the_permalink(); ?>”><?php the_title(); ?></a></li>
<?php
}
?>
</ul>
To change the number of recent wordpress posts that appear, change this part of the code to a number that suits you: “numberposts=5“.
To begin - remember this short and key rule:
The title of your post grabs the attention of your users.
If you can grab the attention of your audience, then you will find that one, if not both of the below factors will happen:
It has been announced that Wordpress 2.3 will be released on September 24th
. With the current availability of Beta 2 (at the time of writing this post) you should be aware that the code is still “rough” and you should be confident and comfortable with web technologies if you are willing to try it out.
That said, this is still rough code, so you should only test the beta if you are comfortable troubleshooting PHP issues, filing tickets, and backing up your blog’s data.
I’m sure most of you are aware of the social networking and the web 2 concept storming the internet at the moment. Luckily, there is an excellent plugin available which will allow you to select social networking websites from within a control panel, which will then be appended to your post content automatically for users to submit them to a social network.
As many of you are aware, the Internet is now bloated with companies offering free phpBB forum hosting. But why? The answer is simple - to make money. For many webmasters, the Internet has one purpose - to generate revenue. This is perfectly understandable as this can be some persons main and even only job. The idea of this article is to make you aware of free phpBB forum hosting, what you should look for in a host and why free forum hosting is not really a bad thing at all. I used to think that free phpBB forum hosts are unreliable, feature limited and unstable. Whilst the feature limited part is to some extent true, many efficient phpBB forum hosts extend their functionality which makes up for the lack of features to begin with.