<?php
//$args=array('post_type' => 'page');
$my_query = new WP_Query( array ('orderby' => 'menu_order', 'posts_per_page' => '5','post_type' => 'page' ));
//print_r($my_query);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post();
$id = get_the_ID();
$value = wp_specialchars( get_post_meta($id, 'class_name', true ));
?>
<div class="<?php echo $value;?>" id="<?php echo $value;?>">
<?php the_title();?><br>
<?php the_content(); ?>
</div>
<?php
endwhile;
}
?>
//$args=array('post_type' => 'page');
$my_query = new WP_Query( array ('orderby' => 'menu_order', 'posts_per_page' => '5','post_type' => 'page' ));
//print_r($my_query);
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post();
$id = get_the_ID();
$value = wp_specialchars( get_post_meta($id, 'class_name', true ));
?>
<div class="<?php echo $value;?>" id="<?php echo $value;?>">
<?php the_title();?><br>
<?php the_content(); ?>
</div>
<?php
endwhile;
}
?>