Title: Need Custom Field Help?
Last modified: August 20, 2016

---

# Need Custom Field Help?

 *  [wprock](https://wordpress.org/support/users/wprock/)
 * (@wprock)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/need-custom-field-help/)
 * Hi All,
 * I need a help now. I am using a custom field ‘postAuthor’. Now I am doing search
   based on custom value. But query_posts() function is not working when custom 
   field’s value have a special character. Eg:
 *     ```
       $company = 'IMB & IT CO';
       query_posts('posts_per_page=-1&meta_key=postAuthor&meta_value=' . $company);
       ```
   
 * Then I am not getting any record now. How to handle this special character problem?
   Anyone can give me idea.
 * Thanks for the help.

The topic ‘Need Custom Field Help?’ is closed to new replies.

## Tags

 * [custom field](https://wordpress.org/support/topic-tag/custom-field/)
 * [special character](https://wordpress.org/support/topic-tag/special-character/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [wprock](https://wordpress.org/support/users/wprock/)
 * Last activity: [13 years, 10 months ago](https://wordpress.org/support/topic/need-custom-field-help/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
