Meta-data – Removing Permalink on Dates
-
How can I remove the link on the dates before the post? I’ve tried to remove all the ‘<a href…’ but the site broke.
function responsive_post_meta_data() { printf( __( '<i class="fa fa-calendar" aria-hidden="true"></i><span class="%1$s">Posted on </span>%2$s<span class="%3$s"> by </span>%4$s', 'responsive' ), 'meta-prep meta-prep-author posted', sprintf( '<a href="%1$s" title="%2$s" rel="bookmark"><time class="timestamp updated" datetime="%3$s">%4$s</time></a>', esc_url( get_permalink() ), esc_attr( get_the_title() ), esc_html( get_the_date('c')), esc_html( get_the_date() ) ), 'byline', sprintf( '<span class="author vcard"><a class="url fn n" href="%1$s" title="%2$s"><span class="author-gravtar">%4$s</span>%3$s</a></span>', get_author_posts_url( get_the_author_meta( 'ID' ) ), sprintf( esc_attr__( 'View all posts by %s', 'responsive' ), get_the_author() ), esc_attr( get_the_author() ), get_avatar( get_the_author_meta( 'ID' ), 32) ) ); ?> <span class='posted-in'> <?php printf( __( 'Posted in %s', 'responsive' ), get_the_category_list( ', ' ) ); ?> </span> <?php } }
Also is it possible to only display the meta information while in the post and not the homepage?
The page I need help with: [log in to see the link]
- The topic ‘Meta-data – Removing Permalink on Dates’ is closed to new replies.