<?php
global $test1;
$test1 = get_post_meta($post->ID, 'test', $single = true);
if($test1 === yes ) { the_content(); }
else { the_excerpt(); } ?>
please help rectify it ...
<?php
global $test1;
$test1 = get_post_meta($post->ID, 'test', $single = true);
if($test1 === yes ) { the_content(); }
else { the_excerpt(); } ?>
please help rectify it ...
it only displays the_content but not the_excerpt
resolved. thanks anyway
Whats the resolution?
By providing the resolution, even if self resolved, can help others with the same query.
You must log in to post.