• Is it possible to remove the post author, date, category that shows on the left side-bar of posts? I want to utilize the slider for posts that don’t need a time/date/author stamp. Ideally I would like to keep the date/time on other more “news related” posts. I am using Magazino. Please help! 🙂

Viewing 1 replies (of 1 total)
  • Can’t believe I’m answering questions already. Been on wordpress since last week. You can edit the content-single.php file.

    Remove:

    <div class="single-meta">
    	<div><?php
    		printf( __( '<span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s" rel="author">%3$s</a></span>', 'magazino' ),
    		esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
    		esc_attr( sprintf( __( 'View all posts by %s', 'magazino' ), get_the_author() ) ),
    		esc_html( get_the_author() )
    	);
    	?></div>
    
        <div><?php
    		printf( __( '<span class="sep">on </span><a href="%1$s" title="%2$s" rel="bookmark"><time class="entry-date" datetime="%3$s">%4$s</time></a>', 'magazino' ),
    		esc_url( get_permalink() ),
    		esc_attr( get_the_time() ),
    		esc_attr( get_the_date( 'c' ) ),
    		esc_html( get_the_date() )
    	);
    	?></div>
    
        <div><?php
    		/* translators: used between list items, there is a space after the comma */
    		$category_list = get_the_category_list( __( ', ', 'magazino' ) );
    		printf( __('under %s', 'magazino'),
    			$category_list
    		);
    	?>
        </div>
    
        <div><?php
    		/* translators: used between list items, there is a space after the comma */
    		$tag_list = get_the_tag_list( '', ', ' );
    		if ( '' != $tag_list ) {
    			printf( __('tagged %s', 'magazino'),
    				$tag_list
    			);
    		}
    	?>
        </div>
    
        <div><?php
    		printf( __('∞ <a href="%1$s" title="Permalink to %2$s" rel="bookmark">Permalink</a>', 'magazino'),
    			get_permalink(),
    			the_title_attribute( 'echo=0' )
    		);
    	?>
        </div>
    
        <div>
        	<?php edit_post_link( __( 'Edit', 'magazino' ), '<span class="edit-link">', '</span>' ); ?>
        </div>
    </div>

    That is the top x number of lines.

    On the following line at the end you will see:

    <?php post_class('single-pad'); ?>>

    Delete also. Save, but know how to backup.
    Worked for me.

Viewing 1 replies (of 1 total)

The topic ‘Remove author, date, and category from specific posts’ is closed to new replies.