Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Mostafa Soufi  >  LibWP  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: Wordpress index.php
Class: LibWP
Provide additional functionality within Wordpress
Author: By
Last change:
Date: 2012-07-17 15:03
Size: 391 bytes
 

Contents

Class file image Download
<html>
    <head>
        <title><?php echo $lib->Title(); ?></title>
        <meta name="keywoard" content="<?php echo $lib->Keywoard(); ?>">
    </head>

    <body>
        <?php $recent = new WP_Query("showposts=5"); while ($recent->have_posts()) : $recent->the_post(); ?>
            <p><img src="<?php echo $lib->Thumbnail('large''large.png'); ?>"/></p>
        <?php endwhile; wp_reset_query(); ?>
    </body>
</html>