Special Character problem in custom field
-
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.
[No bumping, thank you.]
The topic ‘Special Character problem in custom field’ is closed to new replies.