WordPress WP_ Settings
The snippet let you set some WordPress directories / paths directly to the server name.
1 2 3 4 5 6 7 |
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/wordpress'); define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']); define('WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content'); define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp-content'); |
Source: Snipplr
List current post taxonomies and terms
The following snippet will let you list current post taxonomies