WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] What is wrong with this php code

[Resolved] What is wrong with this php code

  • <?php
    global $test1;
    $test1 = get_post_meta($post->ID, ‘test’, $single = true);
    if($test1 === yes ) { the_content(); }
    else { the_excerpt(); } ?>

    please help rectify it …

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] What is wrong with this php code’ is closed to new replies.