WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have some custom fields which I need to have square brackets inside. This would not be a problem apart from the fact that I need the end user to be able to reselect the custom field on another post but it is not visible. Any custom fields with a name with a square bracket is missing from the drop down list.

Is there any one that can help me to show the custom fields in the dropdown with a square bracket in it?

share|improve this question
Please show us some code. Hard to imagine what your situation looks like and what/where exactly "inside" is. – kaiser Mar 5 '13 at 16:26

Try using character entities: [ and ] for left and right square brackets, respectively.

share|improve this answer
Hi, thanks for your responses. It seems I was just misinterpreting what was happening. It was only showing 10 custom fields, rather than excluding certain fields. The question has been answered here: wordpress.stackexchange.com/questions/14103/… – johncarter Mar 6 '13 at 11:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.