Title: Limit
Last modified: August 22, 2016

---

# Limit

 *  Resolved [scopie](https://wordpress.org/support/users/scopieg/)
 * (@scopieg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/limit-2/)
 * I looked in the WordPress Codex and there is a link parameter called limit, to
   limit the number of links in a list. I tried using it in the shortcode but couldn’t
   get it to work:
 * [linkview link_orderby=rand show_cat_name=0 target=blank limit=5]
 * Am I doing something wrong or does the plugin just not support that parameter?
 * Thanks!
 * [https://wordpress.org/plugins/link-view/](https://wordpress.org/plugins/link-view/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/limit-2/#post-5173880)
 * The correct attribute to change the number of displayed events is `num_events`.
 *  Thread Starter [scopie](https://wordpress.org/support/users/scopieg/)
 * (@scopieg)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/limit-2/#post-5173894)
 * I changed my shortcode to
 * [linkview link_orderby=rand show_cat_name=0 target=blank num_events=5]
 * and it is still not changing the number of links displayed in my list.
 * I’d just like to display only 5 random links so it doesn’t clutter my sidebar.
 * Anyone any other ideas?
 * Thanks!
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/limit-2/#post-5173896)
 * Sorry, but I mixed some of my plugins.
    The correct attribute is “num_links”.
 *  Thread Starter [scopie](https://wordpress.org/support/users/scopieg/)
 * (@scopieg)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/limit-2/#post-5173899)
 * I changed my widget shortcode to:
 * [linkview link_orderby=rand show_cat_name=0 target=blank num_links=5]
 * and it still displayed what looks like all of my links…
 * So I had a thought that maybe, even though I set show_cat_name to 0, that it 
   was showing me the first 5 of every category…nope, it looks like it is showing
   every link.
 * So I had a thought that maybe it was the rand setting that was causing the problem,
   so I changed it to asc and it is still showing what appears to be every link.
 * My shortcode now looks like this:
 * [linkview link_orderby=asc show_cat_name=1 target=blank num_links=1]
 * and it is still showing every link.
 * Any other ideas?
 * Here’s the page: [http://tinyurl.com/lw4js8q](http://tinyurl.com/lw4js8q)
 * Thanks for listening!
 *  Plugin Author [mibuthu](https://wordpress.org/support/users/mibuthu/)
 * (@mibuthu)
 * [11 years, 10 months ago](https://wordpress.org/support/topic/limit-2/#post-5173904)
 * I tried both shortcodes above and it is working as expected in my installation.
   
   Did you get any warning or error (please enable debug outputs for testing)? What
   php-version do you use?
 *  Thread Starter [scopie](https://wordpress.org/support/users/scopieg/)
 * (@scopieg)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/limit-2/#post-5173927)
 * Thanks for the response. I just updated WordPress for that site and the issue
   seems to have resolved.
 * Appreciate the help!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Limit’ is closed to new replies.

 * ![](https://ps.w.org/link-view/assets/icon.svg?rev=1024905)
 * [Link View](https://wordpress.org/plugins/link-view/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/link-view/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/link-view/)
 * [Active Topics](https://wordpress.org/support/plugin/link-view/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/link-view/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/link-view/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [scopie](https://wordpress.org/support/users/scopieg/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/limit-2/#post-5173927)
 * Status: resolved