Support » Plugin: wp-days-ago » How to put between link tags in HTML

  • Hi, I am generating my displayed time with this function:

    function posted_difference() {
    	printf( __( '<time class="entry-date"><a href="%2$s">%1$s</a></time>', 'tdsimple' ),
    		esc_html( wp_days_ago(1) ),

    However, this returns:
    14 days ago<time class="entry-date"><a href=""></a></time>
    instead of
    <time class="entry-date"><a href="">14 days ago</a></time>

    Can you help me?

  • The topic ‘How to put between link tags in HTML’ is closed to new replies.