wordpress

how to make static page – dynamic with cats

setting reading static page and blog page

at first include pages

http://stackoverflow.com/questions/4090698/wordpress-include-content-of-one-page-in-another

loop of category in home page

http://codex.wordpress.org/Class_Reference/WP_Query

for example

<?php

// The Query
$the_query = new WP_Query( 'category_name=main' );
?>
<!-- // The Loop -->
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>

<div class=''>

<h3><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> 

 <?php the_content('أكمل قراءة التدوينة');?>    
</div>
<?php endwhile; ?>

<!-- // Reset Post Data -->
<?php wp_reset_postdata(); ?>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s