'post_date', 'order'=> 'DESC', 'cat'=> $nbcatid, 'posts_per_page'=> $nbcatnnum, 'ignore_sticky_posts' => 1 ); $nbitem_query = new WP_Query($nbargs); if ($nbitem_query->have_posts()): ?>

'.esc_html($nbcatname).'

'; echo associationx_linkandtarget($nbcatnamef,$nbcatlink,$nbitemlt,'','nbcatlink'); echo '
'; while ($nbitem_query->have_posts()): $nbitem_query->the_post(); $nbittite = '

' .esc_html(get_the_title()). '

'; $nbitlink = get_the_permalink(); echo associationx_linkandtarget($nbittite,$nbitlink,$nbitemlt,'','nbitmplink'); endwhile; wp_reset_postdata(); echo '
'; echo associationx_linkandtarget($nbcatrall,$nbcatlink,$nbitemlt,'','nbcatlinkra'); ?>

'.$nboxheading.'

'; ?>
'post_date', 'order'=> 'DESC', 'cat'=> $nboxcatid, 'posts_per_page'=> $nboxcatnnum, 'ignore_sticky_posts' => 1 ); $nboxitem_query = new WP_Query($nboxargs); if ($nboxitem_query->have_posts()): $pcount = 0; ?>

'.esc_html($nboxcatname).'

'; echo wp_kses_post(associationx_linkandtarget($nbcatnamef,$nboxcatlink,$nboxitemlt,'','nbcatlink')); while ($nboxitem_query->have_posts()): $nboxitem_query->the_post(); $pcount++; $nbitlink = get_the_permalink(); $thumbimg = ''; $nfimage = ''; $nboxfpost = ''; if($pcount == 1 ): $thumbimg = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'associationx-catpage-thumb' ); $nboxfpost ='nboxfpost'; else: $thumbimg = $thumbimg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID )); endif; if($thumbimg): $thumbimg =''.esc_attr(get_the_title()).''; else: $thumbimg =''; $nfimage = 'nofimage'; endif; $nbittite = '

' .esc_html(get_the_title()). '

'; echo associationx_linkandtarget($thumbimg.$nbittite,$nbitlink,$nboxitemlt,'','nbitmplink '.$nboxfpost); endwhile; wp_reset_postdata(); echo associationx_linkandtarget($nboxcatrall,$nboxcatlink,$nboxitemlt,'','nbcatlinkra'); ?>