September 6, 2013 at 9:36 pm
#3839
shawnhoffman
Participant
I’m sorry- which part do I need to remove? — I remove it from the above code?
It looks like the code in content-extensions.php
function attitude_theloop_for_page() {
global $post;
if( have_posts() ) {
while( have_posts() ) {
the_post();
do_action( 'attitude_before_post' );
?>
<section id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<article>
<?php do_action( 'attitude_before_post_header' ); ?>
<header class="entry-header">
<h2 class="entry-title">
<?php the_title(); ?>
</h2><!-- .entry-title -->
</header>
<?php do_action( 'attitude_after_post_header' ); ?>
<?php do_action( 'attitude_before_post_content' ); ?>
<div class="entry-content clearfix">
<?php the_content(); ?>
<?php
wp_link_pages( array(
'before' => '<div style="clear: both;"></div><div class="pagination clearfix">'.__( 'Pages:', 'attitude' ),
'after' => '</div>',
'link_before' => '<span>',
'link_after' => '</span>',
'pagelink' => '%',
'echo' => 1
) );
?>
</div>
<?php
do_action( 'attitude_after_post_content' );
do_action( 'attitude_before_comments_template' );
comments_template();
do_action ( 'attitude_after_comments_template' );
?>
</article>
</section>
<?php
do_action( 'attitude_after_post' );
}
}
else {
?>
<h1 class="entry-title"><?php _e( 'No Posts Found.', 'attitude' ); ?></h1>
<?php
}
}
endif;
So I just paste that code into functions.php of the child theme and remove:
<header class="entry-header">
<h2 class="entry-title">
<?php the_title(); ?>
</h2><!-- .entry-title -->
</header>
I think? Do I need to remove more? less? Or do I need to even include all of that code?