WordPress.org

Ready to get started?Download WordPress

Forums

Media Library Categories
Bugreport/Solution - Limit in shortcode (4 posts)

  1. Davidlok
    Member
    Posted 2 years ago #

    With the shortcode you can do:
    [mediacategories categories="1" limit="1"]

    In /wp-content/plugins/media-library-categories/includes/shortcodes.php you have:

    if($limit>0)
    {
    	$query.="LIMIT ".$limit;
    }

    Add an extra space before LIMIT:

    if($limit>0)
    {
    	$query.=" LIMIT ".$limit;
    }

    http://wordpress.org/extend/plugins/media-library-categories/

  2. alexo05
    Member
    Posted 2 years ago #

    Incredible, this solved it... THANKS!

  3. bwhontwerpers
    Member
    Posted 2 years ago #

    Thanks man!

  4. nicolaelvin
    Member
    Posted 2 years ago #

    Yes thanks, helped me too!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic