Mini Loops
incrementing? + here's how-to build recent relateds mini-loop (3 posts)

  1. christopheran
    Posted 3 years ago #

    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 :)



  2. christopheran
    Posted 3 years ago #

    I should mention my recent relateds is on my single.php - it may need something more if used in a sidebar.

  3. simplejuan
    Posted 3 years ago #

    thaks for thid one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Mini Loops
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.