https://www.ads-software.com/plugins/wp-print/
]]>https://www.ads-software.com/plugins/vertical-scroll-recent-comments/
]]>I am using the Delisious child theme from Studio press and would like to remove the author from displaying on my posts and pages.
I have found a plugin that is supposed to remove the author from both pages and posts call Post Author, but it seems to have only worked for the pages as the author still shows on my posts – you can ee this in the link below
Post: https://www.the-chicken-shack.co.uk/2012/07/11/new-chicken-shack-at-roadchef/
Page: https://www.the-chicken-shack.co.uk/feedback/
Can any one tell me how to remove this bearing in mind i am using a Genesis Child theme?
Thanks
]]>I would really appreciate it if anyone could give me a clue on how to do it?
This is the code for comments.php:
<div id="comments">
<?php if ( post_password_required() ) : ?>
<div class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'magazine-basic' ); ?></div>
</div><!-- .comments -->
<?php
return;
endif;
?>
<?php
// You can start editing here -- including this comment!
?>
<?php if ( have_comments() ) : ?>
<h3 id="comments-title">
<?php
printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_comments_number(), 'magazine-basic' ),
number_format_i18n( get_comments_number() ), '<em>' . get_the_title() . '</em>' );
?>
</h3>
<?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
<div class="navigation">
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'magazine-basic' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'magazine-basic' ) ); ?></div>
</div>
<?php endif; // check for comment navigation ?>
<ol class="commentlist">
<?php wp_list_comments( array( 'callback' => 'mytheme_comment' ) ); ?>
</ol>
<?php if ( get_comment_pages_count() > 1 ) : // are there comments to navigate through ?>
<div class="navigation">
<div class="nav-previous"><?php previous_comments_link( __( '← Older Comments', 'magazine-basic' ) ); ?></div>
<div class="nav-next"><?php next_comments_link( __( 'Newer Comments →', 'magazine-basic' ) ); ?></div>
</div>
<?php endif; // check for comment navigation ?>
<?php else : // this is displayed if there are no comments so far ?>
<?php if ( comments_open() ) : // If comments are open, but there are no comments ?>
<?php else : // if comments are closed ?>
<!--<p class="nocomments"><?php _e( 'Comments are closed.', 'magazine-basic' ); ?></p>-->
<?php endif; ?>
<?php endif; ?>
<?php
$args = array(
'comment_notes_after' => '',
'comment_field' => '<p class="comment-form-comment"><textarea id="comment" name="comment" cols="45" rows="8" aria-required="true"></textarea></p>'
);
comment_form($args); ?>
</div><!-- #comments -->
Here is the code for index.php:
<?php get_header(); ?>
<?php
$options = get_option("widget_sideFeature");
$posts = theme_option('number_posts');
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
if (is_active_widget('widget_myFeature')) {
$args = array(
'cat'=>'-'.$options['category'],
'posts_per_page'=>$posts,
'paged'=>$paged,
);
} else {
$args = array(
'posts_per_page'=>$posts,
'paged'=>$paged,
);
}
if(!theme_option('number_posts')) {
$args = array(
'posts_per_page'=>6,
'paged'=>$paged,
);
}
$x = 1;
query_posts($args);
?>
<?php
if(is_front_page() && $paged < 2) {
if(theme_option('latest_story')=="on") { echo '<h5 class="latest">'.__('Latest Story', "magazine-basic").'</h5>'; }
$optionlayout = "option".theme_option('post_layout');
if($optionlayout) {
include (TEMPLATEPATH.'/layout/'.$optionlayout.'.php');
} else {
include (TEMPLATEPATH.'/layout/option3.php');
}
} else {
include (TEMPLATEPATH.'/layout/option1.php');
}
?>
<?php
if(function_exists('pagination')) { pagination(); }
?>
<?php get_footer(); ?>
And the code for single.php:
<?php get_header(); ?>
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1><?php the_title(); ?></h1>
<div class="meta">
<?php if(theme_option('dates_posts')=='on') { echo '<div class="date">'; the_time(get_option('date_format')); echo '</div>'; } ?>
<?php if(theme_option('authors_posts')=='on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } ?>
</div>
<div class="entry">
<?php $subtitle = get_post_meta($post->ID, 'subtitle', true);
if($subtitle) echo '<p class="sub">'.$subtitle.'</p>';
?>
<?php the_content(); ?>
<?php the_tags(__('<p class="tags"><small>Tags: ', "magazine-basic"), ', ', '</small></p>'); ?>
</div>
<?php wp_link_pages(array('before' => '<p><strong>'.__('Pages', "magazine-basic").'</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
</div>
<?php comments_template(); ?>
<?php endwhile; else: ?>
<p><?php _e("Sorry, no posts matched your criteria.", "magazine-basic"); ?></p>
<?php endif; ?>
<?php get_footer(); ?>
I tried by deleting <?php if(theme_option('authors_posts')=='on') { _e("By", "magazine-basic"); echo ' '; the_author_posts_link(); } ?>
from single.php, but it did not work. It still keeps on showing the name of the author, the only thing that has changed is that clicking on the name on the author will not work. I want to keep the date though.
Thanks!
]]>I’d like to remove the author from each post. It isn’t necessary for this info to be present.
How do I do this?
My site is https://www.snippetsofwisdom.com and the post author is ‘admin’.
I thought just deleting one line of code (re: post author) here would work but it hasn’t:
<h1><?php the_title(); ?></h1>
<p class=”post_author”>by <?php the_author(); ?></p>
<div class=”format_text”>
<?php the_content(‘<p>Read the rest of this entry »</p>’); ?>
<?php link_pages(‘<p>Pages: ‘, ‘</p>’, ‘number’); ?>
</div>
</div>