The tag has no usage guidance.

learn more… | top users | synonyms (3)

0
votes
1answer
461 views

Unwanted redirect in admin area

I have a strange behaviour on my backend. This is possible due to the way my WordPress is located. I installed it in a VirtualBox, using Ubuntu from the standard repository (i.e., apt-get install ...
0
votes
1answer
481 views

After changing wp from subdirectory to root I can't preview any changes to a page or post

I followed the guideline from WP Codex. Changed the site url in general settings Copied the .haccess and the index.php files from the subdirectory to the root Edited the root index.php (new copied ...
4
votes
4answers
262 views

What WP folder can I use to write files to?

I am working on a theme that uses dynamic in head CSS and gives admin an option to also place the same in a file. Problem is that I am not sure what WP folder is always writable. I originally added ...
0
votes
2answers
467 views

WordPress in a Subdirectory

I am trying to install WordPress in a subdirectory. This is a new fresh install. Here is what I did: Assuming my site is example.com, and I wanted to install wordpress in example.com/wordpress A) I ...
0
votes
1answer
25 views

Featured Image not displayed

I noticed after I updated the WordPress, the featured images are now not displaying properly. Also the directory path is changed, the old path is like thiswww.example.com/files/filename and now the ...
0
votes
1answer
810 views

Working with Reverse Proxies and Multisite Installation

We have a wordpress multi site, the main site has a URL similar to mainsite.com Each of the sub sites have a URL such as subdomain1.mainsite.com, subdomain2.mainsite.com etc Each of the sub sites we ...
1
vote
1answer
29 views

Is it possible to place custom post type files inside a folder in theme directory?

I have created a custom post type called customtype. From my understanding the template file for it would be single-customtype.php which is placed inside wp-content/themes/mytheme. Can I place the ...
0
votes
1answer
908 views

Allow Access To Subfolder Of HTML For Logged In Visitors

I have a WordPress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in WordPress users to be able to have access to ...
0
votes
1answer
696 views

Two Wordpress installations: One in root and one in sub directory - no images in subdir installation

The setup: I have two Wordpress installations. One in the root of the Server and one in a subdirectory, every installation has it's own database. The subdirectory installation is connected with a ...
21
votes
3answers
9k views

Custom Post Type Templates from Plugin Folder?

I'd like to offer my custom post type as a Plugin, so that people can use it without touching their theme folder. But custom post type templates -- such as single-movies.php -- reside in the theme ...
0
votes
1answer
15 views

Include file from higher level

I created a custom page template where I want to present some data specific for that page. The file is placed in wp-content/themes/themename/page-templates In that file I want to include ...
0
votes
2answers
2k views

Move my theme style.css into a folder

I was wondering if its possible to have my theme style.css in a css folder rather than in the root? I assume that the Theme Metadata has to be in the theme root, but could the actual styles be moved? ...
0
votes
1answer
32 views

Wordpress Multisite with thousands of blog

I'm setting up a wordpress site where each user will need to have their own blog. My thought was it's the perfect use case of Wordpress Multisite. I've setup it with multisite using Sub-directory and ...
0
votes
0answers
21 views

error happens when subdomain redirected to subdirectory

I have a subdomain as subdomain.maindomain.com. I forcibly redirected this subdomain to sub directory(maindomain.com/subdomain) by using some code in .htaccess. My site works well, but I found many ...
-1
votes
1answer
29 views

Multi site root site installed on subdomain, with child sites as subdirectories

I have a WordPress multi site installed at dev.example.com, and network enabled, using subdirectories. If I am logged into dev.example.com/wp-admin, and then visit dev.example.com/site2, I lose the ...
1
vote
0answers
15 views

Are there security risks in working directly in the themes folder that builds into a theme folder?

I'm wondering if there are any security risks in using the wp-content/themes/ folder as my project root and using wp-content/themes/my-theme as my build folder. Basically, in the themes folder I would ...
0
votes
0answers
20 views

Create new sub-directory in WordPress

I have never used WordPress before, only Dreamweaver for 15 years, and I have inherited a WordPress site. I would like to create a sub-directory that I can use for practice without hurting the live ...
0
votes
1answer
1k views

Permissions to wp-content folder in Windows Server 2012

I've made some tests to solve this problem: trying to update some plugins via Wordpress backend I always receive a "Unable to create folder" error. So I've initially added IIS_IUSRS with ...
0
votes
1answer
27 views

Plugin SVN folder structure

I´m used to git, but i am new to svn. Do i need to re-create the svn folder structure (trunk, assets, tags) in my local repo, or are the files automatically "sorted into folders" when i push my plugin ...
0
votes
0answers
12 views

Substitution of a Wordpress installation preserving the old one under a subfolder

I have a WordPress website (Website01 under exampledomain.com) and I want to build another one under the same domain but a different folder (Website02 under exampledomain.com/subfolder). That's not a ...
2
votes
1answer
31 views

get_template_directory has an odd functionality

I have Wordpress 4.4 installed localy on wamp server 2.5 x64 on Windows 10 and noticed that: get_template_directory(); returns this: 'C:\wamp\www\my-site//content/themes/my-theme' Questions ...
0
votes
0answers
17 views

Having a forum in a subfolder

I have a standard wp site in www.example.com Also have a smf forum in forum.example.com What do I need to do to put the forum in www.example.com/forum ? I guess this involves two parts: redirecting ...
0
votes
0answers
10 views

ecommerce, SSL, extra WordPress install on subdirectory

Client has ecommerce on his existing WordPress site that sells to 2 different types of clients: Professionals Basic Consumers The last developer used different workarounds for this, using archive ...
0
votes
1answer
21 views

Multisite setup help - plain domain/subsite always redirects to domain with subdir multisite

I set up a path-based wp multisite using subdirs for each site. It all works well except if the subsite is accessed without www. For example - //mainsite/subsite always redirects to //mainsite" ...
8
votes
3answers
280 views

Best Practice for Referencing the Plugin Directory

My plugin uses the following code to reference a file, but I've read WP_PLUGIN_DIR won't work if a user renames the default plugin folder. I would also like to replace ...
0
votes
0answers
56 views

Help with folder structure for MVC plugin / theme

I know similar questions have been asked many times, but I couldn't find an answer that would help me progress with my project... Here's my situation: Large part of my project is for logged users ...
1
vote
1answer
37 views

How would you detect if WordPress is installed in a subdirectory (not root)?

I want to check if a WordPress installation is working from a subdirectory. Common methods to achieve this are listed here: https://codex.wordpress.org/Giving_WordPress_Its_Own_Directory these ...
-1
votes
2answers
25 views

Moving wordpress from TLD to sub-folder (URL structure only)

I've a wordpress installation at mytld.com. So far the primary intent was to run a blog and my posts are in the format mytld.com/y/m/postname. Now I want to shift the blog under a new URL structure ...
0
votes
0answers
26 views

Use same Wordpress from two subdirectories

I've got a problem and still no solution which fully works. I installed wordpress in "domain.com/wordpress", but I want the same access from another subdirectory e.g. "domain.com/wp". Both ...
0
votes
1answer
54 views

get_template_directory() returns wrong address on VPS

I'm having the following problem with a Wordpress installation on a VPS server. I'm trying to read from a JSON file but the returned address from get_template_directory() is wrong: $url = ...
0
votes
0answers
71 views

Multisite Nested Folder Paths Hack Using Sunrise.php & Tinymce Issue

I have just implemented this hack https://gist.github.com/badfeather/3f0d5c347fe0ac7a4174 for allowing nested paths but the code instructed to be added into the .htaccess file at the top of this ...
0
votes
0answers
48 views

Duplicated with Duplicator - Wordpress site to subirectory - 500 error constantly

I had an old website hosted in a subdirectory on the main domain that worked fine. Developed the new version of the site on a test domain in a subdirectory. Duplicated the site using duplicator to ...
0
votes
0answers
56 views

Wordpress subdomains or subdirectories with language recognition?

This is my first post here and I hope it is on the appropriate section (if not, moderators feel free to move it to the appropriate one). I am building a little website for my girlfriend's health ...
0
votes
0answers
48 views

WP does not recognize any plugin after defining 'WP_PLUGIN_DIR'

I'm trying to develop a plugin so I want to change the location of these defining the constant 'WP_PLUGIN_DIR' as follows: define('WP_PLUGIN_DIR', '/home/user/Projects/wp/plugins'); Running the ...
1
vote
1answer
39 views

How prevent someone from opening my theme directory

How to prevent users from opening my themes directory or at least preventing wordpress from outputting an error. For example when I open this link in my wordpress blog ...
0
votes
3answers
36 views

Directory to store secure file

I have a website hosted on ASP.NET server and using wordpress to build my site. I've extended its functionalities using PHP code. At which directory do I store secure files such as (passwords and ...
0
votes
0answers
7 views

Can I email my users on multisite

I had someone register on my site, and they didn't use the correct subdirectory name to sign up and activate. Is there anyway to email them and tell them they made a mistake? Along with this ...
0
votes
2answers
59 views

Creating page-templates directory breaks everything!

I decided to organize my work in FTP because I've got over 25 templates by now and the list of files/directories in theme's root is getting really long. I stumbled on article where I learned that ...
3
votes
2answers
224 views

Can I change get_template_directory_uri()?

This is sort of a follow up to Can I put my Wordpress theme files in another folder? I found that following ...\wp-content\themes\MyTheme - \dist - \lib - \src - \wp - All my Wordpress files ...
2
votes
1answer
47 views

Getting Images from theme's directory in pages

Yes, I know that we have get_template_directory_uri(); in referencing to the theme's directory. It's working when I put the following code inside index.php or in header.php: <img src="<?php ...
2
votes
1answer
42 views

Can I put my Wordpress theme files in another folder?

Currently my folder structure looks something like ...\themes\MyTheme - \lib - \src - index.php - style.css - more theme files - .gitignore - README.md - many other non-Wordpress ...
18
votes
8answers
43k views

Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error

I refer to this question previously asked and not suitably answered: Wordpress overriding actual subdirectories and also Non "Wordpress" pages/code getting 404 error. I have the same ...
1
vote
1answer
46 views

How to host unrelated pages on WordPress domain

Is it possible to have separate pages hosted on a WordPress site? For example, say I have my site www.website.co.uk, which has my WordPress blog and all that. Obviously it'll have things like ...
0
votes
2answers
89 views

Theme file structure best practice

I'm building a custom theme and want to have an organized file structure. Is there a standard best practice? I looked at the file structure of popular starter themes and they all use different ...
13
votes
3answers
10k views

Moving a WP Multisite to a subdirectory

Firstly, I've read a number of posts on this process. However, for various reasons, the process remains difficult to implement or troubleshoot for lack of even abstracted examples, or maybe too ...
1
vote
1answer
34 views

Multiple wordpress installations that shares Wordpress & Theme but with separated database

I'm searching for a solution to a architectural problem with an Wordpress application I've made. Each instance of the application is running on it's own subdomain (a folder on root) and right now, ...
0
votes
2answers
20 views

Installation directory for Wordpress and child theme

I'm very new to WordPress. I've read a common problem beginners make is installing in the wrong directory. Could someone verify mine is installed correctly? I'd like to use Storefront theme with ...
0
votes
1answer
421 views

wp theme.. Could not create directory

Could anyone help me with this please? I am trying to install my wp theme Recital (it came out quite recently), but when I upload the zip and press install, it says Could not create directory... What ...
0
votes
1answer
52 views

Difference and usage of uri (e.g. get_directory_uri) and absolute path (e.g. get_directory)

What is the difference uri (e.g. get_directory_uri) and absolute path (e.g. get_directory) and when it the best time to use each?
0
votes
1answer
46 views

How do I include a partial from a directory below a wordpress theme directory?

I have 3 themes set up right now and I need them all to inherit partials from the same source in order to update all three themes at the exact same time when I change any of those partials. I'm ...