how to make static page – dynamic with cats

setting reading static page and blog page

at first include pages


loop of category in home page


for example


// 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('أكمل قراءة التدوينة');?>    
<?php endwhile; ?>

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


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 )

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s