WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] How to remove by Admin

[Resolved] How to remove by Admin

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator keesiemeijer

    @keesiemeijer

    Try removing this line in loop.php:

    <?php printf(__('By %s', 'pitch'), get_the_author_link()) ?>

    I don’t think that code is on the loop.php. I don’t know if this is kosher, but here is my entire loop.php:

    [ Code edited with backticks. Moderator note: when sharing code examples, please wrap the code in backticks or use the code button. ]

    <?php if(have_posts()) :  ?>
    	<div id="loop" class="loop-posts">
    		<?php while(have_posts()) : the_post(); ?>
    			<div id="post-<?php the_ID() ?>" <?php post_class() ?>>
    				<div class="post-info">
    					<div class="date">
    						<span class="day"><?php print get_the_date('d') ?></span>
    						<span class="month-year"><?php print get_the_date('M') ?><?php print get_the_date('Y') ?></span>
    					</div>
    
    					<div class="extras">
    						<div class="categories">
    							<?php the_category(', ') ?>
    						</div>
    						<div class="comment-count">
    							<?php
    								$comments = get_comment_count(get_the_ID());
    								if($comments['approved'] > 0){
    									printf(__('%s Comments', 'pitch'), $comments['approved']);
    								}
    							?>
    						</div>
    						<div class="author">
    							<?php printf(__('By %s', 'pitch'), get_the_author_link()) ?>
    						</div>
    					</div>
    				</div>
    				<div class="post-main">
    					<a>"><?php print get_the_post_thumbnail() ?></a>
    
    					<h2 class="post-title"><a>"><?php the_title() ?></a></h2>
    
    					<div class="excerpt content">
    						<?php the_excerpt() ?>
    					</div>
    
    					<div class="read-more">
    						<a>">
    							<?php _e('Read More', 'pitch') ?>
    							<i></i>
    						</a>
    					</div>
    				</div>
    				<div class="clear"></div>
    			</div>
    		<?php endwhile; ?>
    
    		<div class="pagination">
    			<?php if($GLOBALS['wp_query']->max_num_pages > 1) : ?><div class="separator"></div><?php endif ?>
    			<?php posts_nav_link(' ', __('Newer Entries', 'pitch'), __('Older Entries', 'pitch')); ?>
    			<?php if($GLOBALS['wp_query']->max_num_pages > 1) : ?><div class="clear"></div><div class="separator"></div><?php endif ?>
    		</div>
    	</div>
    <?php endif ?>

    I found it! =) It looks more organized when I sent it to you! Best part it worked! Thanks soooo much! I really appreciate this! =)

    Myrda J.

    <div class="author">
    <?php printf(__('By %s', 'pitch'), get_the_author_link()) ?>
    </div>

    that’s the section that pops the link in.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] How to remove by Admin’ is closed to new replies.
Skip to toolbar