Mini Loops
Get info from more fields in mini loops (3 posts)

  1. Patrick_Wolf
    Posted 3 years ago #

    Hello i'm trying to get information from another plugin in the shortcode loop of mini loops.

    I made this line:

    echo do_shortcode(" [miniloop number_posts=10 post_status=published current_category=1]
    <li>[ml_title][ml_image from=thumb width=200 height=150][ml_vanaf]</li>

    and in helpers.php i added:

    add_shortcode( 'ml_vanaf', 'miniloop_vanafPrijs');
    function miniloop_vanafPrijs() {

    But the output from ml_vanaf is not inserted in the
    but created outside the
    Anyone out here who can help?

  2. ebartan
    Posted 3 years ago #

    doesnt run custum filed code

  3. Kailey (trepmal)
    Volunteer Mod & Reviewer
    Plugin Author

    Posted 3 years ago #

    @Patrick_Wolf: The shortcode function should return data, not echo it.
    I don't know where meta() comes from, but you may need to either simply return that:
    return meta('vanafPrijs'); or find/create an alternate function that will return, perhaps return get_meta('vanafPrijs');

    @ebartan: You're going to need to be a bit more specific.

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic