• 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/

Viewing 1 replies (of 1 total)
  • Plugin Author wpdreams

    (@wpdreams)

    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

    This should solve this until the next update 🙂

Viewing 1 replies (of 1 total)
  • The topic ‘Capitalization issue’ is closed to new replies.