Get the URL, time and content in WordPress without displaying it

The URL’s of our posts in WordPress looks like: http://blogbysid.wordpress.com/2013/04/26/creating-google-oauth-api-keys-and-developer-key/

Using the_permalink() would generate the link but if you want to get the link only and don’t want it to get displayed, what should we do ?

A lot of of the WordPress function have ‘return’ alternates using get as the operative word.

get_the_permalink() - To get the link
get_the_time() - To get the time
get_the_content() - To get the content

Leave a Reply