I have this query which I'm using in the sidebar, but when I place it in a php widget, the whole sidebar disappears... Any ideas?
global $wp_query;
$postid = $wp_query->post->ID;
if ( ! empty( get_post_meta($postid, 'TourURL', true) ) ) echo '<P>Show Link</P>';
else echo '<P>No Link</P>';
wp_reset_query();
Thanks
wp_reset_query(), which maybe destroying the query you wish to display earlier than it should? – David Gard Mar 20 at 12:15