The Semantic Web is meant to be the successor to the web we all use and love today. Its architect is no other than the creator of the web, Tim Berners-Lee. The idea behind the Semantic Web is making it easy for machines to understand a site’s content. Web development languages today, i.e., HTML, are designed for making content easily readable by people. It is very hard for software agents to extract the semantics (or meaning) of a website since no such information can be encoded by webmasters using HTML or any other popular web development technology used today.
You need to use a plugin that will enable you to execute PHP code on your post or page. You can use EXEC-PHP plugin for wordpress. After installing one of the plugin above, activate and configure them to suit your needs. Once done configuring the plugin, you may now paste the below code on your post or page. Don’t forget to change the category ID and number of post you want to display on the post or page.
<?php $recent = new wp_query("cat=&showposts="); while($recent->have_posts()) : $recent->the_post();?> <h4><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h4> <p><?php the_excerpt(); ?></p> <div class=”post-meta”>Posted by <?php the_author_posts_link(); ?><?php echo get_the_date(); ?></div> <?php endwhile; ?>
The above code must be inserted within the wordpress loop.