• Hi,

    Each post on my site shows a time stamp and is followed by a space and the letters “est”, using the after attribute, as seen in the example below.
    $post_meta .= '[post_time format="g:i" before="<i class=\'fa fa-clock-o\'></i>" after=" est"]';

    I would like to change this so that ” est” is followed by two or three words I’ll use as anchor text and link that anchor text to an external URL. (see below where I’ve surrounded my anchor text in tags just to highlight.

    $post_meta .= '[post_time format="g:i" before="<i class=\'fa fa-clock-o\'></i>" after=" est <strong>this is my anchor text</strong>"]';

    Could anyone share with me the proper code (I think maybe I have to use the echo function) to make this work?

The topic ‘How to add hyper link to after attribute within post_time function’ is closed to new replies.