Issue with Brackets once again
-
My template is working almost perfect now… there is only one issue when trying to display the values of the multi-select fields. I tried following the instructions in the wiki, but have not been able to figure out how to display the values without the brackets.
This is my code:
<?php $Q = new GetPostsQuery(); $args = array(); $args['post_type'] = 'resource'; $args['location']['like'] = '"Mississippi"'; // <-- note the quotes here $results = $Q->get_posts($args); foreach ($results as $r): ?> <table border="0" cellspacing="1" cellpadding="1" align="center"> <tbody> <tr> <td align="center" valign="top"><?php print wp_get_attachment_image($r['thumb'], thumbnail); ?></td> <td valign="top"><h2> < a >rel="bookmark"> <?php print $r['post_title']; ?> < /a > </h2> <b>Type:</b> <?php print $r['type']; ?> - <b>Grade Level:</b> <?php print $r['grade_level']; ?> <?php print $r['post_excerpt']; ?></td> </tr> </tbody> </table> <?php endforeach; ?>[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
You can view the results here:
http://civilrightsteaching.org/mississippir/
As you can see, the Grade Level displays with the brackets. How can I remove them?
Thanks again!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Issue with Brackets once again’ is closed to new replies.