Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

wp query using the_post

<?php 
    query_posts(array( 
        'post_type' => 'portfolio',
        'showposts' => 10 
    ) );  
 while (have_posts()){
 		the_post(); ?>
        <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
        <p><?php echo get_the_excerpt(); ?></p>
<?php } ?>
 
PREVIOUS NEXT
Tagged: #wp #query
ADD COMMENT
Topic
Name
8+7 =