WordPress.org

Forums

The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

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

  1. Davidlok
    Member
    Posted 4 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 4 years ago #

    Incredible, this solved it... THANKS!

  3. bwhontwerpers
    Member
    Posted 4 years ago #

    Thanks man!

  4. nicolaelvin
    Member
    Posted 4 years ago #

    Yes thanks, helped me too!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic