Title: Doubs about title formating
Last modified: August 24, 2016

---

# Doubs about title formating

 *  Resolved [superamon](https://wordpress.org/support/users/superamon/)
 * (@superamon)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/doubs-about-title-formating/)
 * Hello,
 * Currently, I have two widgets showing post titles, being one of them WordPress
   Popular Posts. The other widget, which shows the most recently updated posts,
   replicates the title formatting, in other words, it automatically identifies 
   what appears in bold and what doesn’t in the original post title (as you can 
   see in [http://i.imgur.com/lXtK0ne.png](http://i.imgur.com/lXtK0ne.png)).
 * This is done using the ** tags on the title of the article, on the edit article
   section ([http://i.imgur.com/vVbHSB8.png](http://i.imgur.com/vVbHSB8.png)).**
 * I would like to know how can I also use this formatting in WPP widget.
 * Thank you in advance!
 * [https://wordpress.org/plugins/wordpress-popular-posts/](https://wordpress.org/plugins/wordpress-popular-posts/)

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/doubs-about-title-formating/#post-6140860)
 * Hi there!
 * WPP strips out all HTML tags from the post title by default, and there’s no way
   to change that from the widget. You’ll have to modify WPP’s code for this:
    1. Go to _Plugins > Editor_ and select _WordPress Popular Posts_ from the dropdown
       at the right.
    2. Find:
    3.     ```
           // Strip HTML tags
           $title = strip_tags($title);
           ```
       
    4. and change it to:
    5.     ```
           // Strip HTML tags
           //$title = strip_tags($title);
           ```
       
    6. Hit the _Update file_ button to save changes.
 * Keep in mind that any changes made to plugin’s files will be undone the next 
   time you update WPP, so make sure you bookmark / save this code somewhere for
   future references.
 *  Thread Starter [superamon](https://wordpress.org/support/users/superamon/)
 * (@superamon)
 * [10 years, 12 months ago](https://wordpress.org/support/topic/doubs-about-title-formating/#post-6140873)
 * Hello again,
 * It works perfectly.
 * Keep up the awesome work!
 * Thanks!

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

The topic ‘Doubs about title formating’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [superamon](https://wordpress.org/support/users/superamon/)
 * Last activity: [10 years, 12 months ago](https://wordpress.org/support/topic/doubs-about-title-formating/#post-6140873)
 * Status: resolved