Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello ramstell,

    This is code in the loop template.

    You can place the posts_loop_template.php file in your theme file and edit it to remove those lines as you see fit.

    Thanks,

    Daniel

    Thread Starter ramstell

    (@ramstell)

    Thank you, that works fine.

    Regards
    Roger

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Glad to hear that worked for you, ramstell. 🙂 Thanks for using our plugin.

    I have the same issue, I want to remove the posted by and tagged lines after the post.

    I not a coder and I cant seem to find the posts_loop_template.php file in your theme file to and edit it to remove those lines.

    Please help, other than that this plugin is exactly what I have been looking for.

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Hi Richard,

    The posts_loop_template.phpfile is in the plugin directory. In most WordPress installs this would be at:

    mydomain.com/wp-content/plugins/posts-in-page/posts_loop_template.php

    When you open it up, you’ll see:

    <!-- Note: if you make changes to this file, move it to your current theme's
    	directory so this file won't be overwritten when the plugin is upgraded. -->
    
    <!-- Start of Post Wrap -->
    <div class="post hentry ivycat-post">
    	<!-- This is the output of the post title -->
    	<h2 class="entry-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
    
    	<!-- This is the output of the excerpt -->
    	<div class="entry-summary">
    		<?php the_excerpt(); ?>
    	</div>
    
    	<!-- This is the output of the meta information -->
    	<div class="entry-utility">
    		<?php if ( count( get_the_category() ) ) : ?>
    			<span class="cat-links">
    				<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>
    		<?php
    			$tags_list = get_the_tag_list( '', ', ' );
    			if ( $tags_list ):
    		?>
    			<span class="tag-links">
    				<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>
    		<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    		<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
    	</div>
    </div>
    <!-- // End of Post Wrap -->

    To remove the posted by and tagged lines, you may want to remove all of the meta information (this includes categories as well).

    If you want to remove all of the meta information, you’ll want to remove the following lines:

    <!-- This is the output of the meta information -->
    	<div class="entry-utility">
    		<?php if ( count( get_the_category() ) ) : ?>
    			<span class="cat-links">
    				<?php printf( __( '<span class="%1$s">Posted in</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-cat-links', get_the_category_list( ', ' ) ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>
    		<?php
    			$tags_list = get_the_tag_list( '', ', ' );
    			if ( $tags_list ):
    		?>
    			<span class="tag-links">
    				<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>
    		<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    		<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
    	</div>

    If you only want to take out the tags, for instance, you could just remove:

    <?php
    			$tags_list = get_the_tag_list( '', ', ' );
    			if ( $tags_list ):
    		?>
    			<span class="tag-links">
    				<?php printf( __( '<span class="%1$s">Tagged</span> %2$s', 'twentyten' ), 'entry-utility-prep entry-utility-prep-tag-links', $tags_list ); ?>
    			</span>
    			<span class="meta-sep">|</span>
    		<?php endif; ?>

    I hope that helps.
    Eric

    Will the editing of posts_loop_template.php persist in updates or is it required to re-edit with every update of the plugin?

    Plugin Author Eric Amundson

    (@sewmyheadon)

    Will the editing of posts_loop_template.php persist in updates or is it required to re-edit with every update of the plugin?

    Simply copy the posts_loop_template.php from the plugin’s directory to your theme directory and make changes as necessary. Updates won’t overwrite changes in your theme directory.

    More info at:
    http://wordpress.org/extend/plugins/posts-in-page/faq/

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Posted in and comments off’ is closed to new replies.