Viewing 7 replies - 1 through 7 (of 7 total)
  • This is also a problem for me. Please update!

    Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Hi cupflippr & Susie,

    Glad you like the plugin, and thank you for using it!

    To change the output you’re seeing, you’ll want to create a custom output template. We touch on this in the FAQ under “How do I change the Output Template?”

    1. Copy the template file post_loop_template.php from the plugin folder to your (parent) theme’s folder. You should find the plugin directory in your wordpress directory under wp-content/plugins/posts-in-page, and your theme should be in wp-content/themes/.
    2. Make sure to add the “template” attribute to your shortcode: template=’post_loop_template.php’.
    3. Edit your new custom template

    If you want to remove the Category section from the output, look for the <!-- This is the output of the META information --> comment. I’m guessing that you probably don’t want ANY of that meta info, so you can just delete the whole section if you want:

    delete the following

    <!-- 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>

    The resulting template will look like the following.

    <!-- NOTE: If you need to make changes to this file, copy it to your current theme's main
    	directory so your changes 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>
    
    </div>
    <!-- // End of Post Wrap -->

    If you JUST want to delete Categories, then delete…

    <?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; ?>

    if you JUST want to delete Comments, then delete…

    <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>

    Feel free to experiment. If you mess something up, you can always start over with a fresh copy from the plugin directory. 🙂

    Is that along the lines of what you’re looking for?

    Was looking for the same and it works like a charm, thanks a mill!!!

    Just a little thing the short-code to add is missing an ‘s’, it says

    Make sure to add the “template” attribute to your shortcode: template=’post_loop_template.php’.

    However if you use the same template it should be
    template=’posts_loop_template.php’

    Plugin Contributor Patrick Jackson

    (@pjackson1972)

    Good catch pothound, thanks! 🙂

    I tried the above and that worked for me. Thanks!

    I think I’m missing something here.

    I successfully completed Step-1, but I don’t understand how to implement Step-2 on my page?

    The current short code on my page is: [ic_add_posts showposts='1'][ic_add_posts post_type='naz-sect-news']

    What exactly do I need to put to remove the category section?

    My Site: http://www.naz-sect.com

    I figured out the problem, I’m using the X Theme. In the X Theme the php file has to be put in the child theme, NOT the parent theme.

    Thanks for the great Plugin!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘How to remove "Posted in… | Comments Off’ is closed to new replies.