0
votes
0answers
26 views

Server Path Information

I have a plugin that uses server paths to define the location of an Image Folder, however, I have decided to have a CDM or a new separate server to host my images. Currently all the paths look like ...
1
vote
1answer
60 views

issues including a file from a plugin directory

I have a processForm.php in theme directory that does what it says. I am trying to include a file (which i need in order to run a specific function in processform.php) from a plugin directory and have ...
2
votes
1answer
185 views

Remove 'wp-content/themes/themename/' from Image path

I'm currently moving an old website based on some other CMS towards a new server, with WordPress. However, the site ranks good on Google, and I'm have to keep all the link structure, including the ...
2
votes
2answers
769 views

Why doesn't WP_PLUGIN_DIR definition use DIRECTORY_SEPARATOR?

Whilst writing some code that backs-up a plugin, I hit a problem with 'the wrong kind of directory slash' on my windows dev environment. Tracking it through I find in default-constants.php:91 ...
0
votes
2answers
8k views

How to get the path to the current theme?

This code is used to get the directory of the current plugin: plugin_dir_url( __FILE__ ). What should I use to get the directory of the current theme?
0
votes
1answer
410 views

wp_enqueue_script not loading my custom js file

I am using the following code below in my functions.php, However app.js is not found when I inspect it in the resources tab. It is looking for it in ...