WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. christopheran
    Member
    Posted 1 year 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 :)

    Chris

    http://wordpress.org/extend/plugins/mini-loops/

  2. christopheran
    Member
    Posted 1 year ago #

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

  3. simplejuan
    Member
    Posted 1 year ago #

    thaks for thid one.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.