[Plugin: Mini Loops] incrementing? here's how-to build recent relateds mini-loop
-
I’d like to use mini-loops to build out my home page, different sections pulling different categories for displaying articles.
Once question though, how to do set up incrementing? Like, if I put this on the home and category pages, how do I increment the starting place? I’m not sure how to do this with mini-loops are how wp does it, actually.
And, for anyone what wants it, I did manage to put together a mini-loop set up for recent relateds that works well. Goes like this:
//recent relateds setup using miniloops plugin
$tag_ids = wp_get_post_tags( $post->ID, array( ‘fields’ => ‘ids’ ) );
$tags = implode(‘, ‘, $tag_ids);and the args that affect this are:
‘maximum_age’ => ’30’,
‘tags’ => $tags,Hope you find this useful ??
Chris
- The topic ‘[Plugin: Mini Loops] incrementing? here's how-to build recent relateds mini-loop’ is closed to new replies.