Sorry for asking again but where do I put that code?
I use child theme and this is how my functions.php looks now:
<?php
/**
* Generate child theme functions and definitions
*
* @package Generate
*/
if ( ! function_exists( 'generate_posted_on' ) ) :
/**
* Prints HTML with meta information for the current post-date/time and author.
*/
function generate_posted_on() {
if ( 'post' !== get_post_type() )
return;
printf( __( '<span class="byline">%1$s</span>', 'generate' ),
sprintf( '<span class="author vcard" itemtype="http://schema.org/Person" itemscope="itemscope" itemprop="author">%1$s <span class="author-name" itemprop="name">%2$s</span></span>',
__( 'by','generate'),
esc_html( get_the_author() )
)
);
}
endif;
add_filter( 'next_post_link', '__return_false' );
add_filter( 'previous_post_link', '__return_false' );
But it doesn’t work the rel=”prev” still shows in the source code.
Thanks!