Title: [Plugin: WordPress Popular Posts] Extra Characters in list (&quot;&gt;)
Last modified: August 20, 2016

---

# [Plugin: WordPress Popular Posts] Extra Characters in list (">)

 *  [apronstringsaflutter](https://wordpress.org/support/users/apronstringsaflutter/)
 * (@apronstringsaflutter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/)
 * Hi. I created a layout here…
 * [http://sweetnessoflife.com/blog/most-popular-posts/](http://sweetnessoflife.com/blog/most-popular-posts/)
 * But Im getting extra characters in the resulting list of popular posts…
 * “>
 * They are showing before the thumbnail and the post title. What am I missing?
 * Thanks!
 * [http://wordpress.org/extend/plugins/wordpress-popular-posts/](http://wordpress.org/extend/plugins/wordpress-popular-posts/)

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

 *  [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578032)
 * Hi there,
 * Just checked your site. You’re using the shortcode _[wpp]_, right? How did you
   add the popular posts listing to that page?
 *  Thread Starter [apronstringsaflutter](https://wordpress.org/support/users/apronstringsaflutter/)
 * (@apronstringsaflutter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578041)
 * Hi Hector…thanks for the response. Yes, Im using…
 * [wpp limit=’10’ thumbnail_width=’60’ thumbnail_height=’60’ cats_to_exclude=’15,16′
   range=’all’ stats_comments=’0′ order_by=’comments’ title_length=’35’]
 * Am I doing something wrong in the shortcode?
 * Thanks for your help!
 *  [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578081)
 * Everything seems OK to me. I’m going to check it out and will come back to you
   as soon as I can – probably tomorrow. In the meanwhile, you might want to disable
   thumbnails until I find a fix for this.
 *  Thread Starter [apronstringsaflutter](https://wordpress.org/support/users/apronstringsaflutter/)
 * (@apronstringsaflutter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578094)
 * Thank you! Yes, I tried that, but one still shows up before the post title so
   I dont think its associate with thumbnails? So weird!
 *  [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578144)
 * Hey there,
 * Just checked your site again and noticed that you’re using images for posts’ 
   titles, right? That is what is breaking the plugin. When my plugin check for 
   your posts’ titles it gets a <img /> tag instead, then my plugin inserts that
   into your link’s _alt_ attribute and this is what is messing with your page’s
   HTML, hence the extra > character.
 * I also noticed that the HTML code on your page is slightly different from the
   original version in my plugin so I’m assuming you’re using a modified version
   of WordPress Popular Posts, correct?
 *  Thread Starter [apronstringsaflutter](https://wordpress.org/support/users/apronstringsaflutter/)
 * (@apronstringsaflutter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578161)
 * I was wondering if it was conflicting with another plugin. No, I think Im using
   the one that I downloaded from WP plugin page. I didnt change anything in the
   HTML…just inserted the short code on the page.
 * Drat. Thanks for checking though…I appreciate getting responses from developers!
 *  [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578163)
 * No problem, I do like to take some time to help others whenever I can.
 * I did find, however, a flaw in my plugin. I’m not entirely sure it is what is
   causing the problem you described but it won’t hurt to check.
 * 1. Using an editor such as Notepad or Dreamweaver, open wordpress-popular-posts.
   php
    2. Find the function generate_post_thumbnail (should be around line 810).
   3. Replace it with [this code](http://pastebin.com/aJJ27mTG). 4. Save changes.
 * This fixes an extra `<a />` tag created by that function by mistake. It’ll still
   instert your `<img />` tag instead of a text title though, so it should keep 
   breaking your HTML anyway.
 * I already included this change in the current version of WordPress Popular Posts(
   version 2.2.1 at the time of writing), so future downloads will include this 
   fix.
 *  Thread Starter [apronstringsaflutter](https://wordpress.org/support/users/apronstringsaflutter/)
 * (@apronstringsaflutter)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578170)
 * Thanks Hector, it doesnt seem to fit the conflict with the other plugin but I
   appreciate you trying! Thanks gain…
 *  [alturnwall](https://wordpress.org/support/users/alturnwall/)
 * (@alturnwall)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578302)
 * Hector, thanks for your responses thus far.
 * That pastebin doesn’t seem to be working anymore 🙁
 * I’m having a similar issue when using wp-typography—which inserts spans in the
   title of some posts around different characters like quotes and ampersands, which
   are in turn being pulled into the results for WPP.
 * It looks like strip_tags isn’t working for the titles.
 * I looked through the wordpress-popular-posts.php file, but I’m not sure which
   section of the code applies to users who are using get_mostpopular() as opposed
   to the widget.
 * Any tips?
 * Thanks much…
 *  [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578303)
 * Hi alturnwall,
 * The _get\_popular\_posts_ function is what you’re looking for. Both the widget
   and the get_mostpopular function use it to retrieve the posts list.
 *  [alturnwall](https://wordpress.org/support/users/alturnwall/)
 * (@alturnwall)
 * [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578304)
 * Got it. Thanks.

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

The topic ‘[Plugin: WordPress Popular Posts] Extra Characters in list (">)’ is closed
to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [extra characters](https://wordpress.org/support/topic-tag/extra-characters/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 11 replies
 * 3 participants
 * Last reply from: [alturnwall](https://wordpress.org/support/users/alturnwall/)
 * Last activity: [14 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-popular-posts-extra-characters-in-list/#post-2578304)
 * Status: not resolved