Questions tagged [directory]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

Best way to set up multiple urls for the same Wordpress site?

I have a portfolio site for all my art under a main url. The site houses all the different kinds of projects I do. One of my main projects is a webcomic and I want the section of the site dedicated ...
Kyle's user avatar
  • 1
1 vote
1 answer
48 views

Moving uploads directory above wordpress directory. UPLOADS location in parent directory

I will ask for help as I'm going nuts trying to figure out what is going on here. I've read many other questions but there is never a final answer. I want to organize my WP installation in a different ...
Gerard Reches's user avatar
0 votes
0 answers
17 views

Wordpress: How to change name of ADD-ON domain's folder and also change/rename all references to it

Interserver.net hosting allows install of unlimited sites in one user account. I have set up an "add-on" domain, which is a fairly common structure but different than using WP Multi-site. ...
PP Comm's user avatar
0 votes
0 answers
15 views

Organizing media files (pdf) and searching based on the folders created

I am attempting to find a way to search through sorted PDF files inside the media section of WP. My goal is to be able to set up different search engines within my site that pull from specified ...
M. Dave's user avatar
0 votes
0 answers
42 views

How to modify the uploads directory for wp.media.frame assigning an subfolder name

To be better organized I must be able to manage the media independently of the user. So in addition to restrict user to see only these files(images, docs, videos), I need to insert media for each ...
imagIne's user avatar
  • 53
1 vote
1 answer
109 views

What are the implications of having main plugin file name different to plugin slug?

I have inherited a plugin. If the plugin is called example and is in /wp-content/plugins/example what are the implications if the main plugin file is called example-plugin.php and not just example....
Steve's user avatar
  • 297
0 votes
1 answer
26 views

Changing WordPress folder generates CSS issues?

I'm moving my wordpress from /test-blog/ to /blog/. To do so I'm. Updating siteurl and home directly on the DB table wp_options. Updating the folder name for the blog on .htaccess. Renaming the ...
Alvaro's user avatar
  • 131
0 votes
0 answers
13 views

How to approach prefixing the path of a multisite sub-directory install?

Six years ago, someone asked my question, but didn't receive any answers on wpse: Prefix Multisite Directory Structure The question was: (how) is it possible to add a prefix the url/path of WP ...
yms's user avatar
  • 35
0 votes
0 answers
16 views

phpmyadmin not working with wordpress multisite subdirectory

I have Wordpress multisite configured to work with subdirectory. All of the sites are using the same subdirectory URL. All of them are served from /var/www/multisite. Everything works, including /wp-...
igalsc's user avatar
  • 1
0 votes
1 answer
178 views

Get a list of folders inside uploads directory

I know I can create a folder in uploads directory using wp_mkdir_p() function of WordPress. I'm working on a file manager that will use the rest api to get a list of files since it's vue based for the ...
ICTDEV's user avatar
  • 123
0 votes
0 answers
23 views

Wordpress is overriding 404 page of parent directory

I have a WordPress blog in subdirectory like this example.com/blog/ which has its own 404 page. Now, problem is that 404 page of WordPress blog is overriding 404 page of main site example.com and ...
Saad Ali Khan's user avatar
0 votes
0 answers
107 views

How to link the path of a folder situated in public.html for a random video player?

I'm new to coding and I'm struggling a bit with migrating my code to wordpress. I made a Random Video player with PHP to play a random file from specific folder on load. I tested it locally and ...
big beans's user avatar
0 votes
0 answers
38 views

Change weird Wp File structure

I have to work on a wordpress project,ReactPress does not work and I think I've found why: It works fine this way except Reactpress, so I need to turn it back to original file structure. How can I do ...
Francis's user avatar
0 votes
1 answer
88 views

Need pages with same names in multiple subdirectories

WordPress is installed in the domain's root. The site is built using custom page templates (not posts). I'm familiar with this SO question Move pages to subdirectory in Wordpress. I understand that I ...
Karl's user avatar
  • 103
0 votes
1 answer
254 views

Could moving my WordPress installation from /var/www/html/<vhost.com> to /var/www/<vhost.com> break the application?

I'm setting up a Linode VPS with Apache 2 and Ubuntu 22. Our organization's objective is to host a WordPress e-commerce site together with 2 internal applications within this server. While I've got ...
LeperAffinity666's user avatar
0 votes
1 answer
21 views

Can I provide a user's user_ID to them and can it also be searchable in a member's directory

We would like a user (student) to have a student ID that they can quote and this stays with them as they learn with us. When they create a profile, by registering on our site is it possible to provide ...
AB_100's user avatar
  • 1
0 votes
1 answer
322 views

Unable to login my subdirectory WordPress site

I am trying to build a new website in my existing website's subdirectory folder. I have installed WordPress to www.fitfix.ca/new subdirectory. I can access to the page but when try to login fitfix.ca/...
Fazlay Rabby Rumon's user avatar
0 votes
1 answer
135 views

How to call php file in theme directory from plugin

The goal is to reuse some part of code to login and logout user in ajax with or without reload page . I can't call the content of php file ajax_user.php inside wordpress template directory from my ...
imagIne's user avatar
  • 53
0 votes
0 answers
95 views

How to redirect template_directory to subdomain relativ url?

I use subdomains with the same template and I try to use filter template_directory to replace serverName by $_SERVER['HTTP_HOST'] but it doesn't work . The default page is www.website.com and the ...
imagIne's user avatar
  • 53
0 votes
0 answers
220 views

Find php file anywhere in folder and subfolder from template

I'm asking if it's possible to call a php page or to define a link without having to define the folder "detectmobile" where it is located ? require (get_template_directory() . '/detectmobile/...
imagIne's user avatar
  • 53
0 votes
1 answer
107 views

How to move a Wordpress installation to a subdirectory

I want to replace my WordPress site with a non-WordPress site but keep the original WordPress site in a sub-directory. I have read through and tried this and various other methods but none seem to ...
Chiwda's user avatar
  • 101
1 vote
1 answer
33 views

Migration to WP - Couldn't load image

Situation: I'm trying to migrate static page made with HTML/CSS/JS into Wordpress. The images won't load. They work in HTML, but when I migrate into PHP there are only alt-descriptions visible. Upon ...
ScorpVisual's user avatar
0 votes
1 answer
612 views

get main URL from subdirectory with php

I have a WordPress site that contains multiple subdirectory installations of WordPress with individual databases inside one WordPress installation, and I want to link them together in the themes. But ...
Pelle's user avatar
  • 15
0 votes
0 answers
111 views

How to use the same "wp_posts" table for different subdirectories in the same DB?

I have a WP multisite with many subdirectories. I have the main site like mainsite.com and a table "wp_posts" I have some subdirectories like mainsite.com/sub1, mainsite.com/sub2, and their ...
Daniela's user avatar
0 votes
1 answer
96 views

Why should I use get_template_directory() when include files?

When I include files in wordpress I noticed that include works fine without get_template_directory(). Include even works fine without parenteses. include( get_template_directory() . '/includes/front/...
redgard's user avatar
1 vote
1 answer
398 views

2 WordPress sites in 2 sibling folders on one domain

I have 1 domain name that requires multiple (and different WP installations). How can I setup the following 2 websites: Website 1: Domain name: domain.com Physical folder: /var/www/vhosts/...
Elie's user avatar
  • 111
0 votes
1 answer
343 views

wp-mail attachment is not sent for no reason?

I'm using wp-mail to send an image. The problem is that it does not attach the image ! Here is $attachment_img string : https://example.com/wp-content/uploads/2021/10/example.jpg So the path is ...
Game Lover's user avatar
0 votes
1 answer
516 views

Multisite - One Site with multiple URLs

A theoretical question here. When I set up one multisite network for one website, how would I go about when I want to use different subdirectories per site then? From what I can see, you define one ...
photogenic's user avatar
3 votes
1 answer
5k views

How to get path or root of plugin folder, not file or dir?

I want to include one file from the plugin root to somewhere in the plugin folder. Folder structure: /plugin /folder <- Can't 'esacpe' from this folder to root /otherfolder /req-file-to-...
Milosh N.'s user avatar
  • 205
0 votes
2 answers
830 views

Should custom directories be created under the wp-content directory?

Another question asks about creating a custom directory under the wp-content directory. If there is a need for custom files e.g. CSS that need to be called, should a custom directory e.g. css be ...
Ryan's user avatar
  • 53
0 votes
0 answers
287 views

Open wordpress page in directory the way index.html would open

I have a directory /mydir. If I put an index.html in there, it will open when someone browses to example.com/mydir, and their browser shows only the path, not index.html. How can I get the same ...
Jim Worrall's user avatar
2 votes
1 answer
115 views

Cant get wordpress to work on subdirectory

I have an ubuntu server. I already had nginx and some page there which works. I wanted to add wordpress on /blog path I installed wordpress using this setup https://ubuntu.com/tutorials/install-and-...
Michal's user avatar
  • 31
1 vote
3 answers
803 views

Wordpress (behind HAProxy and Jetty), not multisite, in sub folder - and /en/wp-admin/ keeps redirecting to /wp-admin/

I am using an unusual setup to host 3 Wordpress installations on CentOS 8 Linux. In front I have HAProxy (to offload TLS), then I have Jetty configured for FastCGI and php-fpm and finally Wordpress. I ...
Alexander Farber's user avatar
0 votes
0 answers
142 views

When created sub-directory, can we create a new navbar?

I want to create a new sub directory for my wordpress website. But I will do this for second language option. I watched some videos and I saw that we can create new posts and pages but I didn't see ...
Tuxedo Mask's user avatar
0 votes
1 answer
25 views

Use of Folders within Wordpress

Is it possible to use folders within our WordPress site for the content such as pages/posts organization? Any issue in doing this? We would like to use the folders to group related pages & content,...
ThatGuyMN's user avatar
0 votes
0 answers
28 views

Wordpress hosted on subfolder of domain causing customizer to constantly refresh and is requesting jquery from root domain

So I have wordpress installed in a subfolder of my domain: https://example.com/blog To do this I am reverse proxying ngnix (main app) to apache (wordpress server) and everything is going great. One ...
timbram's user avatar
  • 53
0 votes
1 answer
131 views

What plugins create a directory on the root directory of WordPress? [closed]

How can I detect if a plugin or a program is creating a folder on the root directory of my WordPress site? How will I know if I could safely remove them?
mark-in-motion's user avatar
0 votes
1 answer
1k views

Sub-sub folders of WordPress Multisite subdirectory

I have the following situation. I have created a WordPress Multisite for a client with "subdir" setup so all subsites are at; domain.com/site2 domain.com/site3 Now client wants to have some ...
roiskid's user avatar
  • 11
1 vote
1 answer
25 views

Access files at new location using old file paths

I have a bunch of posts that contain images with urls that follow this pattern: https://example.com/example_directory/files/2019/04/file.png I've imported the posts into a new install of wordpress on ...
Keyslinger's user avatar
0 votes
0 answers
106 views

Structure of multilingual and multiregional directory listing website for translation

What is the best translation structure for a multilingual and multiregional directory website? Let's say our listing owners as members of our work team are from around 20 different countries with ...
Bahram's user avatar
  • 1
0 votes
1 answer
619 views

production site routes to staging site after cloning

Hello I am new to wordpress, our website was down (due to plugin update) I was not even able to access the admin panel due to this, so I went to the directory and copied from our staging directory (...
Chris o's user avatar
  • 11
0 votes
1 answer
24 views

How can i shift my chosen posts to a subdirectory?

I want to shift my chosen posts to a subdirectory. like... this is a post link mysite.com/post-number-one want to do mysite.com/subdirectory/post-number-one
Krishna Sharma's user avatar
0 votes
2 answers
129 views

Flat media folder vs multiple directories

I recently took over a website that uses a flat media folder in the site root. Is there a benefit to that over using the standard WordPress media folder structure of uploads/year/month/file? We have ...
juusui's user avatar
  • 1
1 vote
0 answers
14 views

Show Menu from one WordPress install in another WordPress install

I did some searching but, not finding exactly what I need. I'm redesigning a website that has a main WordPress install and a WordPress install in a subdirectory. My client calls it a nightmare. I'm ...
Eunice Hart's user avatar
0 votes
0 answers
72 views

Wordpress Bedrock breaking plugin links

I recently switched to using WP-Bedrock and I currently like the workflow but there's a huge drawback for me. There are 2 URLs which previously were identical, due to Bedrock's file structure, are ...
HenrijsS's user avatar
  • 111
2 votes
1 answer
2k views

Redirect main domain to subdirectory

Following the following code sample I managed to redirect it, however the site URL on the browser show as domain.com/subdirectory and not domain.com. public_html ROOT .htaccess RewriteEngine on ...
stemon's user avatar
  • 155
1 vote
0 answers
429 views

Prevent a folder from being shown within the media library

We have a folder of secure files which are currently PW protected through htpassword with NGNIX. Those files are currently inside the/wp-content/uploads/ directory /wp-content/uploads/secure-files/. ...
PressWord's user avatar
0 votes
0 answers
70 views

Rewrite WordPress Url from root to subfolder without moving files

I have a WordPress installation in the root folder "example.com/". I want the url to be "example.com/blog". (Rewrite from root to folder "/blog/") Is it possible to do ...
Julian Stark's user avatar
0 votes
1 answer
1k views

How to add a sub directory to WordPress single posts without affecting other post types?

I've been trying to add a subdirectory to my blog post's permalink for example domain.com/blog/post-slug/ However, this is affecting the other post types that I've created using Pods such as domain....
Joboy2212's user avatar
0 votes
0 answers
19 views

How to Best Create Separate Subscribers and User Experience

I use a Bluehost (hosted) version of Wordpress 5.5.1 with Genesis for my blog (recipe and faith posts). I use the Mailchimp service for my email subscribers. I want to create a separate community (...
Cathy's user avatar
  • 1

1
2 3 4 5
11