WordPress.org

Ready to get started?Download WordPress

Forums

Conoditional Tags issue with Twenry Eleven theme (2 posts)

  1. databell96
    Member
    Posted 2 years ago #

    I'm having an issue with the content-page.php script. I'm trying to change it where on page id 52, the header does not appear but I keep getting PHP errors. My code is below. Where am I screwing up?

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    	if ( is_single() ) {
    	<?php if ( !is_page('52') ) {
        <header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header><!-- .entry-header -->
        } ?>
  2. alchymyth
    Forum Moderator
    Posted 2 years ago #

    <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    
    	<?php if ( !is_page('52') ) { ?>
        <header class="entry-header">
    		<h1 class="entry-title"><?php the_title(); ?></h1>
    	</header><!-- .entry-header -->
        <?php } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic