Conversation
supporthi 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 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/
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!
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
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.
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!
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
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.