Support » Fixing WordPress » Get content from pages with same meta_key.

  • Hi Guys
    I need help!

    I’m doing this template page and I want to get content from pages with same meta_key.
    I want to display all pages thumbnails that has the value “red” in the meta_key.

    To confuse it more I want to put this on different pages
    like this

    <?php if(is_page(12)){  
    
    echo all thumbnails from pages that are tagged with "red"
    } 
    
    elseif(is_page(13)){
    
    echo all tagged with "blue"
    
    }
    }
    ?>

    Does anyone know how to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get content from pages with same meta_key.’ is closed to new replies.