Constants

[REMIX]

[php] include(TEMPLATEPATH.”/includes/breadcrumb.php”);[/php]

[php] the_title(); [/php]

[/REMIX]

WordPress Defined Paths

Here is a list of some common WordPress directory path constants:

  • ABSPATH
  • PLUGINDIR
  • WP_PLUGIN_DIR

Examples

Some Path Examples
echo 'ABSPATH = '.ABSPATH;
echo 'PLUGINDIR = '.PLUGINDIR;
echo 'WP_PLUGIN_DIR = '.WP_PLUGIN_DIR;
 

These constant produce output similar to the following:

ABSPATH = /var/www/html/
PLUGINDIR = wp-content/plugins
WP_PLUGIN_DIR = /var/www/html/wp-content/plugins

The exact output will be different from server to server, and whether you have your WordPress Blog installed into a sub directory or not.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>