The tag has no usage guidance.

learn more… | top users | synonyms (3)

0
votes
1answer
489 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
26 views

How to visit php file in my custom directory under site root directory

I hope to create a directory wp-mybiz as same level as wp-content, wp-admin, and wp-includes under site root directory to collect my business logic codes. But if I try to visit php using url http://...
0
votes
3answers
165 views

Multisite in subfolder - How to make new sites to be in same level subfolders as the main site

I have following situation. I have a WP Multisite installed in subdirectory: my-domain.com/subfolder/wp-multisite-root Now normally next sites added would be created like that my-domain.com/...
0
votes
2answers
428 views

WordPress root directory change + Theme directory change

I'd like to create the following structure for my WP installation: htdocs (base dir) wp (WordPress dir) themes (WordPress theme dir) plugins (WordPress plugin dir) upload index.php .htaccess So ...
0
votes
0answers
8 views

Nginx and Permalink for WordPress inside sub-directory of sub-domain

I've just migrate my site from apache2 to nginx. I've installed two WordPress sites inside a sub-domain of a sub-directory. The WordPress sites are installed on each sub-directory on sub-domain eq. ...
0
votes
2answers
482 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
0answers
8 views

Copying a single file along with folder structure to a child theme?

I have set up a child theme for Woocommerce and wish to make 3-4 changes across various files. Is there a way I can copy the file using perhaps cPanel and file manager to copy the file tree which ...
0
votes
1answer
868 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 ...
0
votes
0answers
9 views

Rewrite URLs for LeadPages due to subdirectory installation

I am using LeadPages on a WordPress site (with the LeadPages Connector plugin), and need help improving its URLs. My WP installation has its own directory (wp/) in the docroot of the server (per ...
2
votes
1answer
22 views

.htaccess for wordpress insde another wordpress

I have a main WordPress installation, with this (normal) .htaccess: <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f ...
0
votes
1answer
716 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 ...
0
votes
0answers
17 views

Wordpress on nginx permissions issue

I purchased VPS last night and have been trying to resolve permission issue regarding folder/file creation while installing new plugin or updating existing on stock wordpress CMS. Ubuntu 16.04 Error ...
0
votes
1answer
937 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
515 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 ...
0
votes
1answer
20 views

Moved Wordpress to other folder (Windows) WAMP = 403 Forbidden

I am using a local install of Wordpress for offline development on a Windows 10 machine, with WAMP on the server side. This morning I have moved the folder containing the wordpress from c:\users\...
0
votes
0answers
22 views

Wordpress Multisite subdomains and sharing the same upload folder

Hello, We wonder if you can help resolve two doubts about Wordpress structure. We are developing a multisite in 3 languages and would like to know about these 2 things: 1. Is it possible to develop ...
0
votes
0answers
18 views

How to create a subdirectory mirror with main site without Multisite?

I have a wordpress site with 4.4.2 in Centos. Recently there is request from the client to add a subfolder that mirror with the content of the main site. I tried to use Multisite, but I got this ...
0
votes
0answers
27 views

Subpage template for posts

I have a custom post type, and I created posts. Users can view them at eg: /customposttype/post1 /customposttype/post2 . . Now I want to create a template file to view the posts in a different ...
5
votes
2answers
75 views

Rename UPLOADS folder with custom WP_CONTENT_DIR

For version control purpose, our client has a WordPress app with directory structure like this: . |_____app | |_____themes | |_____plugins | |_____uploads |_____index.php |_____WordPress |_____wp-...
0
votes
0answers
22 views

Wordpress within a subdirectory of another Wordpress environment doesn't work

Here's a summary of my scenario: I'm running Wordpress on a linux environment The root directory contains and index.php file that references the subdirectory where my main site's files are (codex ...
0
votes
2answers
23 views

How to put articles under a /blog directory?

I have a homepage, work (as parent pages) and several pages (as child), but when it comes to articles, I can't choose the relation between them and the page Blog. Resuming, I can choose the hierarchy ...
6
votes
4answers
290 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 ...
1
vote
1answer
36 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 ...
23
votes
3answers
10k 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 ...
1
vote
1answer
16 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
23 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
35 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
16 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
2k 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 Read/Write/...
0
votes
1answer
28 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 ...
2
votes
1answer
34 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
11 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
24 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
288 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 /location-specific-menu-items/...
0
votes
0answers
75 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
43 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
32 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
64 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
82 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 doesn'...
0
votes
0answers
61 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
61 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
50 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
40 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 https://www.example.com/wp-...
0
votes
3answers
40 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 ...