WordPress.org

Support

Support » How-To and Troubleshooting » Conoditional Tags issue with Twenry Eleven theme

Conoditional Tags issue with Twenry Eleven theme

  • databell96

    @databell96

    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 -->
        } ?>
Viewing 1 replies (of 1 total)
  • Michael

    @alchymyth

    Forum Moderator

    <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 } ?>
Viewing 1 replies (of 1 total)
  • The topic ‘Conoditional Tags issue with Twenry Eleven theme’ is closed to new replies.
Skip to toolbar