Title: Capitalization issue
Last modified: August 31, 2016

---

# Capitalization issue

 *  [JenWebDev](https://wordpress.org/support/users/jenwebdev/)
 * (@jenwebdev)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/capitalization-issue/)
 * I have a custom post type, and am using the ajax search lite plugin to search
   titles which include names of company members (first, last).
 * When the search term involves the last name of the person, the description displays
   correctly. However, when you use the first name to search, the description is
   no longer capitalized.
 * For example if using the name Joe Bloe, if I search for Bloe, the description
   will read:
    Joe is an awesome guy.
 * However, if I search for Joe, the description in the results says:
    joe is an
   awesome guy.
 * There are some instances where this happens in reverse. Where the first name 
   is Thomas, The description shows up capitalized when searching his first name,
   but not capitalized when searching the last name. It’s inconsistent and should
   always be retaining capitalization. The css reads text-transform:none; so this
   behaviour seems to be a code issue. Please advise.
 * [https://wordpress.org/plugins/ajax-search-lite/](https://wordpress.org/plugins/ajax-search-lite/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * (@wpdreams)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/capitalization-issue/#post-6951771)
 * Hi!
 * Indeed. I think I have found why. In the recent version I have added a new option
   to display the description in context by default.
 * The problem is in the processing function, which returns the lower case version
   of the string if the context is not the beginning of the string.
 * I need to properly test possible solution, so I rather not suggest a quick change
   in the code, it may cause more problems.
 * Luckily you can disable this feature on the bottom of the **General Options**
   panel: [http://i.imgur.com/v9QXPS0.png](http://i.imgur.com/v9QXPS0.png)
 * This should solve this until the next update 🙂

Viewing 1 replies (of 1 total)

The topic ‘Capitalization issue’ is closed to new replies.

 * ![](https://ps.w.org/ajax-search-lite/assets/icon-256x256.png?rev=3192672)
 * [Ajax Search Lite - Live Search & Filter](https://wordpress.org/plugins/ajax-search-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-search-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-search-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-search-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-search-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-search-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wpdreams](https://wordpress.org/support/users/wpdreams/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/capitalization-issue/#post-6951771)
 * Status: not resolved