array( 'waiting_family' ),
'post_status' => array( 'publish' ),
'category_name' => 'waiting',
'nopaging' => true,
);
// The Query.
$query = new WP_Query( $args );
// The Loop.
$order = 0;
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
// Gets the uploaded featured image
$featured_img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
// Checks and returns the featured image
$bg = (!empty( $featured_img ) ? "background-image: url('". $featured_img[0] ."');" : '');
?>
-
-
Print waiting families
Congratulations
array( 'waiting_family' ),
'post_status' => array( 'publish' ),
'category_name' => 'completed',
);
// The Query.
$query = new WP_Query( $args );
// The Loop.
$order = 0;
if ( $query->have_posts() ) {
while ( $query->have_posts() ) {
$query->the_post();
// Gets the uploaded featured image.
$featured_img = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' );
// Checks and returns the featured image
$bg = (!empty( $featured_img ) ? "background-image: url('". $featured_img[0] ."');" : '');
?>
-
-