How to display a raw HTML page (bypassing WordPress theme, scripts, etc)

I’m a software engineer with a WordPress site with hundreds of pages, and it’s working very well. There are certain cases, however, where I’d love to be able to code my own page with no interaction with / interference from the WordPress system (no themes, no styles, no javascript, etc) yet still have it located … Read more

Change the path where wordpress plugins are uploaded

Currently my plugins are getting uploaded to public_html/sitename/wp-content/plugins instead of public_html/wp-content/plugins. Is there any way that I can change the path where word press uploads the plugins? I had moved my site to the root folder and hence this issue arose. 1 1 You can change the Plugins directory using constants defined in wp-config.php: Set … Read more

Setting a custom sub-path for blog without using pages?

Warning: fairly pedantic request ahead. I have a design that makes use of posts (I.e., the blog) and a custom post type called “howto”. The site front page (“https://wordpress.stackexchange.com/”) has a template that displays the latest blog posts and latest howtos. When the user navigates to the blog section (“/blog”), they see a different template … Read more

Symbolic Links on dev box with plugins and stylesheets

I’m using mac os x 10.6 with xampp. http://wp3.1/ is the url to where I have WordPress installed. The physical path is /Users/myUserName/Sites/wp3.1/ I do not install plugins or themes in the “natural” way. I have created a directory named “git” which is located in /Users/myUserName/git/. This is where all my git repositories live. When … Read more

theme path in javascript file

I need to include the path to my theme file within a javascript file. How would I go about this? I have already tried: var templateUrl = “<?php get_stylesheet_directory_uri(); ?>”; function LightboxOptions() { this.fileLoadingImage = “‘”+templateUrl+”/img/loading.gif'”; this.fileCloseImage = “‘”+templateUrl+”/img/close.png'”; this.resizeDuration = 700; this.fadeDuration = 500; this.labelImage = “Image”; this.labelOf = “of”; } This does not … Read more

What’s the difference between get_home_path() and ABSPATH?

What’s the difference between get_home_path() and ABSPATH? Isn’t the point of both to point to the WordPress install root? 2 They should do the same thing, but under certain conditions, may not. First of all note: that the codex entry description is misleading that wp-admin/includes/file.php must be included in context else calling get_home_path() will lead … Read more