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

Install WordPress with Multiple Domains or Subdomains

To change WordPress from the standard single site install to a WordPress Multisite which allows you to create a network of sites you need to:

  1. Update your wp-config.php file.
  2. Choose the structure of your Multisite in terms of whether you want to use sub-domains or sub-directories.
  3. Add the extra lines your WordPress installation generates into your wp-config.php.
  4. Add the generated mod_rewrite rules to your .htaccess file, replacing other WordPress rules.

You do this as follows:

Updating your wp-config.php file

  1. Locate your wp-config.php file on your hard drive.
  2. Open your wp-config.php file for editing.
  3. Add the following line to your wp-config.php file:
define('WP_ALLOW_MULTISITE', true);

above where it says /* That’s all, stop editing! Happy blogging. */: Continue reading