hey elliot,
that makes sense. so i don’t know if this should change forum feeds or not, but here is my archive page:
http://www.takeajourney.org/groups/
i have 5 regions that i’m trying to filter by. if you try any of these filter urls, they do not work:
http://www.takeajourney.org/groups/?region=1
http://www.takeajourney.org/groups/?region=2
http://www.takeajourney.org/groups/?region=3
http://www.takeajourney.org/groups/?region=4
http://www.takeajourney.org/groups/?region=5
where would my error be? in the function.php file or the archive.php file?
i’m trying to accomplish what you’ve done in this tutorial:
http://www.advancedcustomfields.com/resources/tutorials/creating-wp-archive-custom-field-filter/
thanks!
If I go into the database and manually change the region from
a:1:{i:0,s:1:”1″} to 1
Then when I do a filter on http://www.takeajourney.org/groups/?region=1, everything works just fine. If not, then I get this error:
Warning: Invalid argument supplied for foreach() in /home/takeajou/public_html/wp-content/themes/journeychurch/archive-groups.php on line 34
In the code, this is line 34:
`<?php foreach( $field[‘choices’] as $choice_value => $choice_label ): ?>