wordpress coding question
heres what it looks like, maybe you guys can help me get it straightened out
<?php
= array(get_option('allowed_pages'));
foreach ( as ) {
echo ();
}
?>
thats the code that doesn't work right, I wan't it to list all the pages I got in the option, and the pages are set up in the options like 'contact us','about us','privacy policy' however the loop thinks its one string.
this is the code that worked before without the option, this looped through all the pages, and displayed them in a list, (I had them in an unordered list before).
<?php
= array('contact us','about us','privacy policy');
foreach ( as ) {
echo ();
echo "<br/>";
}
?>
contact us
about us
privacy policy
that right there works perfect but for some reason it doesn't work when I use the wordpress option.
edits: the variables are blocked, but if you know PHP you should recognize the structure
-
phpbbxpert -
[ 1 ] Thanks
{{ DiscussionBoard.errors[2851588].message }} -
-
scott33 -
Thanks
{{ DiscussionBoard.errors[2851830].message }} -
-
phpbbxpert -
Thanks
{{ DiscussionBoard.errors[2851997].message }} -
-
scott33 -
Thanks
{{ DiscussionBoard.errors[2855688].message }} -