• Resolved Toby

    (@polyme)


    Hi all,

    I am attempting render a post without the normal surrounding info, if the $_GET[‘plain’] variable is passed to the page. I have got this working by using the conditional statement…

    if ( !empty( $_GET[‘plain’] ) ) {
    wp_head();
    get_template_part( ‘content’, ‘single’ );
    wp_footer();
    }

    This works fine for displaying the post title & meta data/links, however the content is missing from the page.

    It looks like the call to the_content() is not returning anything.

    Anyone have any ideas why this might be?

    Thanks,

    Toby

Viewing 1 replies (of 1 total)
  • Thread Starter Toby

    (@polyme)

    My bad. The “while ( have_posts() ) : the_post();” call was in the other conditional statement.

    All fixed now.

Viewing 1 replies (of 1 total)
  • The topic ‘Problems with $_GET?’ is closed to new replies.