adding functionality before loop
-
I am trying to get something to happen before the loop runs inside ALM. For example, I am querying all posts in ‘archive’ and im querying 6 at a time. Before the loop runs, I want to echo the sub category every six are in. For now I just say ‘title’. Any way to add a filter to do this in $alm_query ?
$archive = new WP_Query( $archiveposts ); if ( have_posts() ) { echo 'title'; while ( $archive->have_posts() ) : $archive->the_post(); //Repeater endwhile; } wp_reset_postdata();
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘adding functionality before loop’ is closed to new replies.