• Resolved franciscogarciapr

    (@franciscogarciapr)


    I have read to remove a few lines, but I dont see exactly the same code im seeing in other who have this same issue. This is the code.

    <?php if ( has_post_thumbnail() ) {
    $mypostimage = the_post_thumbnail( 'large', array('class' => 'featsingle' , 'alt' => get_the_title() , 'title' => get_the_title() ));
    the_content(); } else { the_content(); } ?>

    If I remove all this, I can see the post just fine, although it removes the content, so I only see the tittle, but not the content.

    If I remove just a portion, I get the following error when trying to view the post:

    Parse error: syntax error, unexpected T_STRING, expecting ‘(‘ in /home3/radiojoe/public_html/rj2/wp-content/themes/dancefloor/single.php on line 15

    Exactly what code should I remove, and what not, so I remove only the thumbnail from the single post??? Please help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • remove only the thumbnail from the single post?

    for example, change the code to:

    <?php if ( !is_single() && has_post_thumbnail() ) {
    the_post_thumbnail( 'large', array('class' => 'featsingle' , 'alt' => get_the_title() , 'title' => get_the_title() ));
    the_content(); } else { the_content(); } ?>
    Thread Starter franciscogarciapr

    (@franciscogarciapr)

    Awsome! That did it! Thank you very much! I was really struggling with this one.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘How to remove fetured image from single posts’ is closed to new replies.