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) ),
    		get_permalink()
    	);
    }

    However, this returns:
    14 days ago<time class="entry-date"><a href="http://mywebsite.com/another-test/"></a></time>
    instead of
    <time class="entry-date"><a href="http://mywebsite.com/another-test/">14 days ago</a></time>

    Can you help me?

    http://wordpress.org/extend/plugins/wp-days-ago/

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