2
votes
0answers
88 views

Namespacing WordPress project according to FIG standards

I am trying to wrap my head around the namespaces, autoloaders and FIG standards and most importantly how to achieve their integration to WordPress as close as possible. Here is my file structure, ...
0
votes
2answers
70 views

Does wordpress allow me to add a php file to the root directory to execute custom scripts?

Does wordpress allow me to add a php file to the root directory to execute custom scripts? I need functionality similar to functions.php that you put into themes. Are there any work arounds that ...
0
votes
3answers
48 views

Permission functions within wordpress

I'm currently developing a website and am exploring all possible options to restrict file viewing. I'm trying to find a way where I can load php files like my theme-options.php and cpt.php without ...
1
vote
1answer
27 views

Correct folder permissions?

I just recently installed PHP and wordpress on our coldfusion box and wordpress is throwing me an dialog saying I need to input FTP information so wordpress can alter the files. I read up on this and ...
0
votes
2answers
50 views

PHP in CSS file?

so I have this in my CSS ... #mainnav li:after { content: url('images/nav-divider.png'); } obviously I need to have it link to 'bloginfo('template_directory'); /images/nav-divider.png' instead ...
0
votes
1answer
135 views

Correct Syntax for uploading files to custom directory in Wordpress

I have current PHP code that works when attaching files on a form. The files have to go to a certain directory. I know that while attaching in Wordpress I need to use a different syntax. However, I've ...
0
votes
1answer
65 views

WP white screen of death after duping a site that works fine on same server

I have simply duped a site that runs absolutely fine on a separate domain into a sub directory of another domain for development purposes. I have zipped the /httpdocs/ directory excluding cache and ...
1
vote
2answers
869 views

Accessing site's root from themes folder

Having some troubles with a PHP script I am trying to build. I need to access the a file which is located in the root folder of my Wordpress install: wordpress-root/live-config.php Problem is, my ...
1
vote
1answer
950 views

Change the actual (or viewable) Wordpress directory structure

I like the simplicity of wordpress and all it has to offer, but for security purposes I would like to change the actual (or viewable) directory structure of my site. The install has a set of files ...
1
vote
1answer
688 views

What's the proper way to use wp_enqueue_script/style?

First, let me tell you how I'm currently doing it. I have this function. It's purpose is to take the the string of a file system path (/root/web/dir/some/path/to/file) and return the equivalent URL ...