Support Forum

Please login to receive premium support.

Support for the free plugin can be found here.

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Display Meta Without Link #30566
    Sean
    Participant

    Hi Elvin,

    Works like a charm… Thanks for your help.

    in reply to: Display Meta Without Link #30558
    Sean
    Participant

    Hi Elvin,

    I’ve added that snippet to my functions.php in my child theme and it still doesn’t seem to be doing anything.

    The date is still a hyperlink to the article.

    in reply to: Display Meta Without Link #30538
    Sean
    Participant

    Hi Elvin,

    Thanks for getting back to me – I tried to use the Date filter as above, but it’s throwing an error saying that it is expecting a “;” instead of the “}”.

    If I add the semi-colon in:

    add_filter( 'wpsp_date_output', function( $time_string ){ return sprintf(
    				'<span class="wp-show-posts-posted-on wp-show-posts-meta">
    					<a href="%1$s" title="%2$s" rel="bookmark">%3$s</a>
    				</span>',
    				esc_url( get_permalink() ),
    				esc_attr( get_the_time() ),
    				$time_string
    			); });

    The filter doesn’t throw an error but it also doesn’t remove the hyperlink from the Date.

Viewing 3 posts - 1 through 3 (of 3 total)