The tag has no usage guidance.

learn more… | top users | synonyms (3)

0
votes
1answer
424 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
414 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
23 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
26 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 ...
0
votes
2answers
18 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
1answer
676 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
1answer
687 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
0answers
14 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
30 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
1answer
643 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 ...
18
votes
3answers
8k 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
427 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
0answers
45 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
1answer
843 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
0answers
28 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
41 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
40 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
26 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 ...
2
votes
0answers
18 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
6 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
44 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
73 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
22 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 ...
1
vote
1answer
29 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
39k 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
43 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
54 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
9k 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
26 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
404 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
29 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
24 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 ...
0
votes
1answer
16 views

Let users edit their role from the frontend

Most site ask users to choose their role at registration (for example it can be "are you an athlete/student/worker/designer" and each of these would be a user role which would appear in a different ...
0
votes
2answers
39 views

How do I get the path to the currently in use theme's directory?

There is an Edit at the end of this question. I want to to include a file, in a script tag, from the js sub directory of the theme's directory. I want to do so in the theme's index, search, single, ...
22
votes
10answers
7k views

How to structure a plugin

This isn't a question about how to build a WordPress plugin. Rather, what, if any, guides could be applied to how to put together the file architecture of any plugin. Some other programming languages ...
0
votes
0answers
36 views

Override parent theme files in subdirectory

How do I tell wordpress to use the child theme's version of a file rather than the parent's version? I found online that the following line should be added to my child theme's functions.php file, but ...
0
votes
0answers
8 views

Errors when trying to change the directory of blog install

I have a WordPress Network site installed at "www.example.com/incorrect/" but I need to change the name. When I change the directory name to "/correct/" it gives me an error message when I visit that ...
0
votes
2answers
212 views

How to arrange PHP files to allow for multiple types of pages

I am new to WordPress development (the most I've ever done on the web design/development side of things is creating basic HTML sites); so this may be an extremely simple question, but I am trying to ...
0
votes
1answer
71 views

Extracting Distance from FacetWP Proximity Function to Display in Wordpress Template

I am quite new to Wordpress & Php coding in general, I have a relatively simple theme that I have been working with that contains a custom post type that stores latitude and longitude. Each post ...
0
votes
1answer
9 views

Installing wordpress on subdirectory 2 levels down

An unusual one for you and I appreciate how ridiculous this set up sounds but It's currently what I've got to work with so here we go... I have a joomla website set up on www.myjoomlasite.com. I am ...
0
votes
0answers
10 views

host custom page alongside wordpress

I am trying to create website with wordpress as well as my core php part and both part has no relationship with together My site structure is like domain.com => this will be wordpress except ...
0
votes
2answers
26 views

Subdomain to website directory blog transferring

I have a blog that is located on a subdomain blog.example.com and I have a main website located on example.com. They both use the same wordpress template. I'd like to transfer my blog from the ...
1
vote
1answer
1k views

Change multi-site installation from sub-domains to sub-directories

I've searched everywhere but I don't seem to find a solution for this. I have a WP installation that is using sub-domains and doesn't have yet any other sites besides the main site. What I want to ...
3
votes
1answer
190 views

NGinx + Wordpress Subdomain Multi with core in Subdirectory

I have a WordPress install that works perfectly on a Apache server. I am currently in the process of both changing my hosting company (the new one offer NGinx) and my development stack (moving to ...
10
votes
1answer
15k views

get_template_directory() vs bloginfo( 'template_directory' ) vs TEMPLATEPATH

I was reading this article: Common WordPress Development Mistakes and How to Fix Them, and in it, they author says: Getting the theme location: If you are using TEMPLATEPATH or bloginfo( ...
0
votes
2answers
293 views

What is wp-admin/meta for?

I noticed that I have a directory meta/ as a sub-directory of the wp-admin folder, but there is nothing in it. What goes in here? Should I keep it?
0
votes
0answers
16 views

Word press site fails to load after moving directories

I was trying to move my wordpress site to a new directory following these instructions https://codex.wordpress.org/Moving_WordPress under "Moving Directories On Your Existing Server" I have done this ...
0
votes
1answer
341 views

Second completely independent and disposable Wordpress installation in subdirectory?

I know this may have been asked before, but I didn't find an exact answer, so yeah ... I have a wordpress installation in the main directory of my Webspace (hosted @ Strato) and I want to install a ...