Forums

Mini Loops
[resolved] Custom Taxonomy with mini loops (6 posts)

  1. shackep
    Member
    Posted 1 year ago #

    I am having trouble getting custom taxonomies to work with mini loops. I have tried the genera method... Here is what I have. It still gets everything in that custom post type.

    I have also tried tax and category...

    [miniloop post_type="employee" number_posts=0 order_by="date" order="ASC" departments="967"][ml_format][/miniloop]

    Could you point me in the right direction?
    Thanks,
    Peter

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

  2. Kailey ʇɹǝdɯɐl
    Volunteer Mod & Reviewer
    Plugin Author

    Posted 1 year ago #

    Try this

    [miniloop post_type="employee" number_posts=0 order_by="date" order="ASC" tax="departments=967"][ml_format][/miniloop]

    Somewhere on my to-do list is better documentation and more examples for Mini Loops...

  3. shackep
    Member
    Posted 1 year ago #

    Fantastic. Works a treat. Thanks!

  4. Tim Beam
    Member
    Posted 1 year ago #

    I have the same taxonomy "Teams" in different custom post types e.G. "Reports" and "Updates".
    With the code below (without post_type="xyz") it shows only the articles of the standard post type but not the articles of the custom post types.
    [miniloop number_posts=20 order_by="date" order="DESC" tax="teams=107"]...
    Hence I tried the following but it does not work, too:
    [miniloop number_posts=20 post_type="post" post_type="reports" post_type="updates" order_by="date" order="DESC" tax="teams=107"]...
    The above shows the content of the last given post type.
    I tried also a comma separated list and the & but all do not work.
    Any idea?

  5. Kailey ʇɹǝdɯɐl
    Volunteer Mod & Reviewer
    Plugin Author

    Posted 1 year ago #

    Try "any" as the post_type

    [miniloop number_posts=20 post_type="any" order_by="date" order="DESC" tax="teams=107"]

    Mini Loops does not currently support multiple post types outside of "any"

  6. Tim Beam
    Member
    Posted 1 year ago #

    Dear Kailey,
    you're incredible!!! "Any" works very fine. Hm... Any! How easy. Thank you for this great plugin. Before I tried the "Special Recent Posts Pro" Plugin but after purchasing I found out that it does not support custom taxonomies. Mini Loops is much easier (after understanding it) and more flexible regarding the formatting. You made me happy and I can concentrate on the design now.
    Thank you very much.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags