I need help!
I'm doing this template page and I want to get content from pages with the same meta_key.
I want to display all pages thumbnails that has the value "red" in the meta_key.
The problem is that the meta_key value in the db is a string... I get nothing with this:
$Red = 'a:1:{i:0;s:9:"Red";}';
$Red = unserialize($Red);
$pages = get_pages(array('meta_key' => 'color', 'meta_value' => $red[0]));
foreach ($pages as $page):
<?php echo get_the_post_thumbnail($page->ID, 'thumbnail'); ?>
<?php echo $page->post_title; ?>
<?php echo $page->post_content; ?>
<?php endforeach; ?>
What am i doing wrong?