I want to show the projects that has had it's checkbox ticked as Branding, if it's on the Branding page (i.e the page title is Branding).
To explain the code a bit:
This line show's all the checkboxes that have been ticked for each project so it will output "Branding", "Web", "Print" if they have been ticked.
implode(', ',get_field('categories')
This next line is just checking the page title is "Branding":
implode(', ',get_field('categories')
I'm trying to put these both in an if statement where it would just output the checked boxes and if they match the title then output them.
<?php if(implode(', ',get_field('categories')) && $grid_title == "Branding"); {
echo "testing";
}
?>
The code above shows what I want to do but it doesn't quite work.
IMPORTANT: I'm using this plugin to create the custom checkboxes so please bear that in mind.
@Janwhen you reply in a comment and I get a notification) – Jan Fabry May 18 '11 at 12:43