Title: want shortcode
Last modified: August 31, 2016

---

# want shortcode

 *  Resolved [CJBatson](https://wordpress.org/support/users/cjbatson/)
 * (@cjbatson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/want-shortcode/)
 * hi WhileTrue!
 * I LOVE your plugin – works great and looks awesome!!
 * Question: would it be possible to get a shortcode? I would like to embed “most-
   read” posts into a post – weekly recap kind of thing..
 * I would be glad to make a donation as I am getting great service from your plugin!!
 * my site is [https://charlottesogn.com](https://charlottesogn.com) if you want
   to have a look. Your widget is in the right sidebar (most popular this week) 
   and also at the bottom of the left sidebar (all-time most read).
 * thanks,
 * Charlotte
 * [https://wordpress.org/plugins/most-and-least-read-posts-widget/](https://wordpress.org/plugins/most-and-least-read-posts-widget/)

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

 *  Plugin Author [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * (@whiletrue)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/want-shortcode/#post-7232928)
 * Hi Charlotte,
    really a good idea, so good that I just implemented it!
 * Plugin 2.5.0 release is out, with experimental shortcode support. Use it like
   this:
    [most_read_posts type=”most” posts_number=”5″ show_thumbs=”false”]
 * Supported attributes:
    - type: “most” or “least”
    - posts_number
    -  words_excluded
    -  title_max_chars
    -  excerpt_max_chars
    -  show_thumbs: “true” or “false”
    -  add_line_break_before_thumbs: “true” or “false”
    -  show_hits: “true” or “false”
    -  show_hits_text (default: “views”)
 * Cheers!
 *  Thread Starter [CJBatson](https://wordpress.org/support/users/cjbatson/)
 * (@cjbatson)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/want-shortcode/#post-7232930)
 * You are so awesome!!! Thank you so much for this!!
 * I plugged in your shortcode just like you have it and got the following error
   message:
 * Warning: Invalid argument supplied for foreach() in /home/content/p3pnexwpnas02_data03/
   97/2788697/html/wp-content/plugins/most-and-least-read-posts-widget/most_and_least_read_posts.
   php on line 659
 * Also, I would like to eliminate the box around the posts. How can I do that?
 * Looking forward to working through a few tweaks to make it perfect!!
 * Thank you again so much and have a great day!
 * Charlotte
 *  Plugin Author [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * (@whiletrue)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/want-shortcode/#post-7232933)
 * Hi Charlotte,
    I fixed the warning with the 2.5.1 update (sorry, I was going 
   too fast).
 * As for the “box around the posts”, you should easily fix it with a couple CSS
   rules; if you point me to the page showing the issue, I’d suggest some.

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

The topic ‘want shortcode’ is closed to new replies.

 * ![](https://ps.w.org/most-and-least-read-posts-widget/assets/icon-256x256.png?
   rev=1294899)
 * [Most And Least Read Posts Widget](https://wordpress.org/plugins/most-and-least-read-posts-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/most-and-least-read-posts-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/most-and-least-read-posts-widget/reviews/)

## Tags

 * [post format](https://wordpress.org/support/topic-tag/post-format/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 3 replies
 * 2 participants
 * Last reply from: [whiletrue](https://wordpress.org/support/users/whiletrue/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/want-shortcode/#post-7232933)
 * Status: resolved