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