WordPress.org

Ready to get started?Download WordPress

Forums

wp-days-ago
How to put between link tags in HTML (1 post)

  1. itschrstn
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.