Code into Template-Tags.php File
-
Hey there,
I’m trying to add the code <?php wp_days_ago_v3 ($showDateAfter) ?> into the php where the date coding resides. However, I’m having trouble doing this. This is the code and you can see below where I’m trying to insert the plugin code. Any help would be greatly appreciated. Thanks!
printf( __( ‘<span class=”byline”><i class=”fa fa-user”></i>%1$s</span><span class=”posted-on”><i class=”fa fa-calendar”><?php wp_days_ago_v3 ($showDateAfter) ?></i>%2$s</span>’, ‘themememe’ ),
sprintf( ‘<span class=”author vcard”>%2$s</span>’,
esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
esc_html( get_the_author() )
),
sprintf( ‘<!––>%2$s<!––>’,
esc_url( get_permalink() ),
$time_string)
);
- The topic ‘Code into Template-Tags.php File’ is closed to new replies.