We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [directory]

The tag has no usage guidance.

145 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
938 views

Site redirects to wrong url when saving settings

I have a subdomain: https://blog.example.com/ I forcibly redirects to subdirectory: https://www.example.com/blog By changing site URL and some RewriteRule on .htaccess. Now the website and admin ...
3
votes
0answers
81 views

Saving WordPress generated thumbnails in a subdirectory

I.e. an uploaded image image.jpg is stored in wp-content/uploads/2016. WordPress will generate thumbnails named image-150x150.jpg, image-300x300.jpg, and image-1024x1024.jpg in the same directory. Is ...
2
votes
0answers
70 views

Suppress subdirectory from Wordpress Multisite primary URL

I just installed WordPress Multisite (version 4.7.2) in a subdirectory of my primary domain (site1.com/wordpress), and I've configured multisite to use subdirectories for all other sites. I ...
2
votes
1answer
86 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 What'...
2
votes
1answer
126 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 ...
2
votes
0answers
290 views

Checking for page templates in child theme

I have a simple problem I'm hoping someone can shed some light on. I have a child theme with a custom page template and I'm simply trying to check weather or not the template is in use. Under normal ...
1
vote
0answers
30 views

multisite subdomain behind reverse proxy

I'm trying to run a wordpress multisite subdomain setup behind a reverse proxy to look like its sub directories. So the setup is like: www.mydomain.com/articles --> cms.mydomain.com www.mydomain.com/...
1
vote
0answers
83 views

Missing a temporary folder.error when image is uploaded in admin Set temporary Directory - Wordpress 5.2.2

I am finding this error when I try to upload image in backend Missing a temporary folder. Tried setting temporary folder in wp-config.php with necessary permissions. Tried to set the temporary ...
1
vote
0answers
86 views

move_uploaded_file() not working on wordpress front end

I have working code that uploads an image from the front end and sets it as a featured image and custom field photo for a custom post type but I am unable to figure out how to set the upload path. ...
1
vote
1answer
107 views

htaccess, site and staging in subdirectories

I have the following task and as it is a little different from most setups, I couldn't find any hints that solved my problem. WordPress for the live site was installed into a subfolder /wp1, the ....
1
vote
0answers
43 views

Main WP page and subfolder WP with the same name. How to prioritize for main Wp

I have second WP site in subfolder. I need to give priority to main site if they conflict. In main site I have pages like: site.com/author/john site.com/author/robert And I installed second WP in ...
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 ...
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 ...
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 ...
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 ...
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 ...
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....
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 ...
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 ...
1
vote
0answers
619 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 ...
1
vote
0answers
374 views

Media library not loading after switching the main site of multisite

I switched the subsite and main site of a multisite. Now, the images are not loading in the media library and posts of the main site. However other subsites are working fine. The images of the new ...
1
vote
0answers
354 views

Creating subfolders in the media library

I'm new to WordPress. As far as I can tell, there's no built-in way to manually organize uploaded media into subfolders. There are free plugins that enable categorization, but this does not affect a ...
1
vote
0answers
80 views

Turn On Comments On Custom Post Types in Directory Theme

I have been trying like crazy to get comments turned on in a directory theme with Custom post types. Their support wont do much of anything but link me here and I've tried what I've found, but its ...
1
vote
0answers
23 views

Integrate wordpress into index page

I have index page which is pure HTML/CSS http://example.com/ and Wordpress blog into sub-folder http://example.com/wp/. What I want to do is to show most recent post + recent post widget from blog ...
1
vote
1answer
117 views

Accessing an image folder inside public web directory

I have put a folder in the public web directory of my WordPress installation where I have some images used by a legacy system. Say its located under http://example.com/legacy-images/image1.png. I ...
1
vote
0answers
104 views

Copy Folder to another Folder using WP Filesystem

I want to copy a plugin folder to another folder, outside the WordPress installation, but in the same host, accessible via the same FTP account. Is there a way? I read something about copying ...
1
vote
0answers
145 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 ...
1
vote
0answers
147 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 ...
1
vote
0answers
24 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 ...
1
vote
0answers
40 views

Session Expired when WordPress Address (URL) and Site Address (URL) are different

I followed this article to allow me to put our company's WordPress blog on a subdirectory of our Heroku hosted site: http://nicolasmlv.com/wordpress-in-your-rails-app/ This says to add this code to ...
1
vote
0answers
516 views

ReDirect subfolder link to another sub-folder and force SSL

My wordpress is installed in a subfolder, for example: test, so my urls look like http://example.com/test/product/buy-product-a/ etc.. Now I have installed another wordpress in subfolder, for example:...
1
vote
1answer
49 views

Wordpress Multisite new sites in directory

Is it possible to make a wordpress multisite on domain.com and then every site that I make goes to domain.com/directory/newsite? and then I have another question: is it also possible to that every ...
1
vote
1answer
150 views

Change wp-content/uploads to uploads/%postname%/%image%

When uploading an image to a post, I want to change it so that it grabs the postname or post_id and places it in a folder like uploads/%postname%/ Is there a simple method of doing so? thanks
1
vote
1answer
701 views

Permalinks not working on second wordpress installed in a subdirect

I have a main wordpress installed on the root and now due to a long story about incompatible plugins I need to install a second full instance of wordpress in a subdirectory. The main site works fine, ...
1
vote
2answers
63 views

GoDaddy Number of Image Files Per Directory Exceeded

OK, so I started my blog back in 2006, never realizing the size it would grow to, or what the future of WP and GoDaddy would bring. 1st Problem. I had read somewhere that it was better to have my ...
1
vote
2answers
1k 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 ...
1
vote
0answers
26 views

Is there a directory my plugin can write files to that cannot be viewed via the browser/url?

I want to restrict access to some files uploaded via the admin interface but I cannot rely on the ability to use .htaccess (could be turned off, or they might be using a non-apache web server). I ...
1
vote
0answers
107 views

One Domain, Two Installs of WordPress

I'm looking into an upcoming project of a redesign of an existing website. The plan is to install one single installation of WordPress at domain.com. The admin area will be locked down and accessible ...
1
vote
0answers
536 views

Is it possible to make *.js and folders visible in theme-editor

I just created a file test.js in the folder of my own child-theme. Unfortunately it is not visible in the Theme editor. How can I make it visible? And is it possible to make folders visible?
1
vote
2answers
2k 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 ...
1
vote
0answers
92 views

Moved Wordpress site to new server, directory permissions not working correctly

I built a Wordpress on my hosting space and then transferred it my clients server - followed all the instructions and pretty much everything works fine. The ONLY problem I have is that the directory ...
1
vote
0answers
118 views

I have a page using a pretty url and a mod_rewrite rule matching it. I expected it to give an error but it's working. Why?

this may seem like a weird question but I have something working and I don't understand how. I have moved my wordpress install to a subdirectory and am using the .htaccess file to redirect anything ...
1
vote
1answer
55 views

Moving from one test to multiple final environments

I'm working on a WordPress website in the following test environment URL: www.example.com/wordpress. Once the site is complete and everything is tested, I want to deploy to three live environments ...
0
votes
0answers
15 views

Bedrock WordPress retro-porting to standard WP installation: is this allowed?

I am dealing with something never seen before: a WordPress website where there is not standard directories, and wp-content was moved in /app, all files was moved elsewhere and all seems to work ...
0
votes
0answers
19 views

I need advice for creating native Wordpress directory site based on native Wordpress functionality only

I created a directory site, but I used normal posts, and builder modules in post content to get the desired directory post layout, however i realized that using builder modules in post content was a ...
0
votes
0answers
9 views

How do you move or rename the themes directory within wp-content?

I know it is possible to move wp-content, but is it also possible to move or rename the themes directory within it?
0
votes
0answers
19 views

Can't do a src to node modules folder

I'm trying to use GLide.js and after installing it with npm, i'm trying to access it using script src This is the code i'm using <script src="<?php echo ABSPATH.'/node_modules/@glidejs/glide/...
0
votes
0answers
58 views

How to Install WP to Subdomain but Serve on Subdirectory?

I want to install Wordpress to a subdomain (sub.example.com) but want to serve it on the subfolder (example.com/sub). I want to do this because the root domain (example.com) is a different web app so ...
0
votes
0answers
14 views

.htaccess for migration blog.domain.com to domain.com/blog

I'm interested in migrating blog.domain.com to domain.com/blog and kill the subdomain. I'm thinking of using .htaccess and then a search/replace plugin for all the images and links that were hardcoded....
0
votes
0answers
10 views

Server searches for wp-admin inside a nonexistent subdirectory when behind AWS Apigateway

I have an a bit convoluted problem and I am looking forward to hear if anyone has a solution. My wordpress installation lies behind an amazon Apigateway. This behaves like a CDN and serves my website ...