Questions tagged [directory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8
votes
1answer
546 views

How to move page template files like page-{slug}.php to a sub-directory?

I want to move page template files like page-{slug}.php to a sub-directory within my theme, in a way that WordPress will recognize them automatically. If the page templates of the said form doesn't ...
1
vote
0answers
20 views

WordPress ACL (folder + permissions)

For certificate a web platform created with WordPress, they ask me to provide a snapshot of ACL maintained on application / configuration folder. Screenshot must clearly show who all have access to ...
0
votes
0answers
41 views

Remove subdirectory from links

I have installed wordpress in the subdirectory "sub". I need the same content been accessed from the root and also from the subdirectory "sub". So I have created the following rewriting rules and ...
0
votes
1answer
41 views

How to organize my js files

I'm working on a multisite instalation, that will have several subsites and i'm in doubt about how to organize my js files. The WP Theme Handbook says that js files should go inside the assets ...
1
vote
0answers
12 views

Is it possible to configure WordPress's Core Files to accept duplicate Child Categories?

I am currently building a site structure, for an eCommerce site. The shopping platform, is WooCommerce As well as much research, I have spoken with many people, regarding best practices for URL ...
4
votes
2answers
667 views

Non-WordPress page in subdirectory under WordPress page

I want a non-WordPress page that can be accessed from a parent directory that is a WordPress page. For example, I want http://example.com/city/ to be a WordPress page. However, I want to upload a non-...
0
votes
0answers
22 views

Change the WordPress files structure

for a client I need redesign a Website that contains a lot of files in a folders structure that is like this www.website/assets/files/Subfolders as you can see i wrote "Subfolders" because they are ...
0
votes
0answers
26 views

Can we rename a plugin directory for a already launched plugin?

I have launched a plugin long back on WordPress.org and now I want to change the name of the main directory of plugin due to some reason. But I want to retain the old name of the plugin. Is it allowed ...
-1
votes
1answer
35 views

Can I have a php site on subdirectory of Wordpress?

I have a Wordpress site (www.example.com) and I need to have a php site on subdirectory(www.example.com/shop). I was wondering is it possible or not?
0
votes
2answers
22 views

Hosting my WordPress site out of a subdirectory

I'm currently hosting several WordPress sites on one host account with cPanel, each site with its own domain. Right now, each of my domains maps to a subdirectory on the server, except for the primary ...
0
votes
0answers
21 views

Custom Gallery plugin uploading to different dir, and post to page

I am trying to create a custom gallery plugin for my wp theme. So far I have found snippets on how to include the media uploader to my plugin, and also change my upload directory only for this plugin. ...
0
votes
2answers
414 views

Images loaded as background-image are shown but <img>s aren't

I got a weird problem: First of all I provide my folder structure: wp-content/themes/theme ├──content.php ├──footer.php ├──functions.php ├──header.php ├──home.php ├──index....
1
vote
2answers
32 views

Is it possible to group plugins into a folder?

I'm working on a rather large WordPress project with over 40 plugins, also including a bunch of custom-made plugins specific to this project. This makes navigating the WordPress plugins folder rather ...
0
votes
2answers
34 views

Problems with running a 2nd installation of Wordpress on my domain?

I have a WP installation in the root of my domain (running on Apache / Linux). I need to create a new WP installation (for various reasons that are outside of this post) and I have a choice of ...
0
votes
0answers
745 views

How to properly give Wordpress its own directory

I'm sorry if this question is maybe a noob one, but I'm having some problems in correctly giving Wordpress its own directory and make it work. I've installed WP in a subdirectory, like www.example....
0
votes
1answer
36 views

My Cloned WP site keeps redirecting to the old one

This is my website: http://thiencheong.com.my/, I created my WP site at first at the ver2 directory, and when I'm ready for it to go live I cloned it over to the main directory. But now whenever I'm ...
0
votes
0answers
4k views

How to fix: “The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.”

I'm using azure as a hosting service and I tried to create a new virtual directory for my subdomain. So I created a folder in my ftp then I created directory in below image Then I've edited my web....
-1
votes
1answer
219 views

Moved WP Multisite, cannot access sites

Just moved my WP Multisite from example.com to example.com/u/ I can access the main site and the admin pages for that and the network admin. But i cannot access the example.com/u/site1 or their ...
1
vote
0answers
45 views

Move files from flat upload directory to organised by year / month

I'm upgrading a site where there are 57,426 files in the /upload directory. I need to sort them as /upload/year/month/filename.ext because this flat non-hierarchical dir is a mess. There's no image ...
0
votes
0answers
40 views

Why are the latest visits to my website originating from my own website?

To start with, I don't know anything about coding and stuff. I am here to seek help from experts hoping they can help me resolve the issue. I have a website/blog that runs on WordPress. I have a VPS ...
0
votes
1answer
386 views

Minimize and Uglify WordPress Plugin Files

Intro When developing a gulp.js project, it is typical to have the following directory structure PROJECT_NAME | ---------- dist <------------ contains library to be released | ----...
0
votes
1answer
11 views

Do I need to be selective about where I search and replace when pointing a domain to a subfolder used for development?

I've got a WordPress site I built in a subfolder of an existing, active hosting account with another WordPress site in the main folder, per my client's instructions. Something like http://www.siteurl....
0
votes
1answer
35 views

How to upload images to WP Panel keeping correct folder in FTP

I've uploaded an 'Uploads' folder to my FTP this folder has other folders like 2015, 2016, 2017 and inside them some images. I wanna know if is there some way or plugin to make all my images show in ...
0
votes
1answer
486 views

Creating a copy of a website in a subdirectory, wp-admin redirect problem

I have my Wordpress site installed on a root folder. Then I have a test subdirectory where I want to have a copy of my website. I did copy and move all of the files from my main website to the test ...
0
votes
1answer
104 views

Access sub-domain when root public_html is protected with .htaccess password

I have a problem with access to my webstore. So I have a domain example.com and I have a script installed on the public_html folder and it is protected with password since I am accessing the script ...
0
votes
1answer
524 views

Store Page Template Files in a Subfolder

I have number of legal documents of different formats / layout that I need to display on a Wordpress site, however I don't want to have them as individual page-pagename.php files in the root of the ...
0
votes
1answer
46 views

Automating WP application directory creation (domain name passed as a variable argument)

This is the farthest I've get so far automating Dir creation for WordPress. How I could I further automate this in the Linux command line? #!/bin/sh domain="$1" echo "Please save your DB user ...
0
votes
1answer
19 views

How to disable directory files from accessing?

Hi team how do I disable my wordpress site directory from accessing? example url: http://mysite.ph/wp-content/uploads/2017/07/Orders-Export-2017-July-04-1712.csv.txt
1
vote
1answer
5k views

subdirectory index.php is not working

I have setup wordpress in the root directory and at the same level I have some other directories e.g named "sq". Under sq there are subdirectories like first, second, ... under each subdirectory ...
0
votes
0answers
16 views

Hosing a website within a Wordpress directory/folder

I have a blog that is hosted on the Wordpress Business plan. I'd like to create a website within the blog. The website is in fact only one page, but is structured completely different from the blog. ...
1
vote
2answers
374 views

Change directory of javascript files

I'd like to move all my assets (CSS, JS, Images, Fonts) in an asset folder in my theme. I did it very well for the fonts and images. For the CSS, I just kept the style.css with the style meta ...
1
vote
0answers
37 views

Auto-create a post with last 10 images in WordPress directory

I want to create something to help me auto-create a post with 10 last images hosted in some directory (in my server or WordPress), this code I found helps to post an image but not many images if ...
0
votes
2answers
37 views

Register additional wp plugin directory

I'm trying to register a subfolder as a plugin path, where my company would keep it's own plugins (e.g. wp-content/plugins/company-name/). I've already found, how to redefine the plugin path with ...
0
votes
1answer
42 views

Sub-directory domain on subdomain multisite?

Simple use case, having the possibility to have both sub-directory and subdomain domains on a multisite installation, e.g. https://example.com/en for another language. The multisite installation ...
1
vote
1answer
23 views

Theme in wp-content but my index.php search theme files in root

My file is in i.e in domain.com/wp-content/Themename/css/cssfile.css But for example css files are looked in domain.com/css/cssfile How to change this? The site isn't loading anything properly ...
0
votes
0answers
29 views

Share a folder with files

I* would like to have a page with a weblink when clicked it would show a simple folder structure with folders and files, and visitors can download those files. Similar to this UCSC website. It should ...
0
votes
1answer
1k views

Move Wordpress from Root to Subfolder

The standard problem of moving the WP installation from the root into the my_subdir folder keeping the url www.example.com. Regarding the article Moving a Root install to its own directory, Method I (...
1
vote
2answers
1k views

Exclude subfolder from WP-redirect works with html but not php files

I want a certain subfolder excluded from being handled by WP with its 404 - page not found message. My problem is: example.com/Non_WP/myfile.html - shows correctly but example.com/Non_WP/myfile....
3
votes
1answer
706 views

Multisite: differences between subdomain and subdirectory mode? Can it be switch after installation?

The WordPress multisite feature offers two different installation modes: subdomain and subdirectory install. By default both modes allow to manage separate WordPress instances (sites) within one ...
1
vote
0answers
155 views

Multisite Subdirectory with same domain subdomain

I currently have a multi-site install on a subdomain, let's call it example.domain.com. Generally, I want users to have subdirectory sites, such as example.domain.com/site1. However, in a few cases, I ...
0
votes
1answer
33 views

Using multisite, how can I get two different sites on the network to have different active themes?

I'm having some trouble getting multisite to work as expected. I have followed a few tutorials and have done everything step by step. Multisite is enabled, and I'm able to access the network of sites, ...
1
vote
1answer
28 views

A new translation folder overrides my usual translation from “nowhere”

So I got to work on something really specific and strange on an old Wordpress I havn't edited already. The website is in French and English and this is a translation problem. To summaries the problem ...
0
votes
1answer
21 views

How do I create a new directory to hold the assets for a new menu item?

I'm a new webmaster, given a WP site to fix. two menu items on the front page are dead since the code does not href a url. I also am not yet a full admin since the Dashboard does not offer ...
0
votes
0answers
16 views

Downloadable content file structure

I have a bunch of files that will be used as downloadable content. Do I have to upload it as media or can I just upload to a folder through FTP? If yes, which folder?
0
votes
1answer
100 views

How to change default upload dir?

I managed to change my default upload directory by using dayly upload dir plugin. Now i can upload in year /month /day the only problem is i used the default upload dir for so long that my old ...
0
votes
1answer
38 views

Max number of sub folders

I have a fairly trivial question. What is the max number of subdirectories in WordPress? We are planning to move our current website to WordPress and I have been told that you can have, at most, 2 ...
2
votes
1answer
77 views

Can wordpress run in root of existing php site with no theme on index.php but all other WP posts/pages?

Hopefully this helps others who have a similar situation, I've searched and searched and cannot seem to find a solution. Perhaps I'm wording it wrong? In short: Default posts should loop at /blog/ ...
1
vote
0answers
616 views

Add a theme via symlink

I want to keep my theme files separate from my WordPress install. I’ve done that by symlinking the theme directory to the WordPress wp-content/themes directory. Unfortunately, the theme won’t show up ...
4
votes
1answer
3k views

Place static HTML files in path below WordPress page

I have a WordPress instance running on my domain's root. One WordPress page is located at www.example.com/product/. I placed some static HTML files in a path below that so that visitors can go to www....
1
vote
2answers
71 views

Components used in Themes and Plugins: How to get file URL?

In my projects I have some components which I use in a lot of custom Plugins as well as in some custom coded Themes like e.g. admin image or video selectors. Those I am holding in custom git ...