WordPress tip: check if a post has a galleryJuly 27, 2013Simply paste the function below into your functions.php file: function hasgallery(){ global $ post; return (strpos($ post->post_content,'[gallery') !== false); } Once done, you can use it ... Read More