The tag has no usage guidance.

learn more… | top users | synonyms (3)

0
votes
1answer
10 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
230 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 ...
0
votes
0answers
24 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
19 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
15 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
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
44 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
42 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
76 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
23 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 ...
0
votes
2answers
56 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 ...
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 ...
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
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
26 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, ...
0
votes
0answers
40 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
9 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
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 ...
0
votes
0answers
47 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
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
0answers
7 views

If search for a post is true, be able to choose posts to be top results?

I can't seem to find anything online about this... the title says it all. If search for a post is true, be able to choose posts to be top results? ( like a sticky ) Maybe by creating a new tag or ...
0
votes
2answers
35 views

Additional folder where will Media Library look for files

I have additional folder (images/) in wp-content/uploads/ directory to store theme images (I heard it is good practice to place them in upload directory) and I want Media Library to list this files ...
0
votes
1answer
42 views

Cannot Override Wordpress 404 for a Sub-Directory

I have wordpress installed on my root (/var/www/html) and I have a sub-directory in the root as /var/www/html/manage Both directories have it's own .htaccess files. Content of the .htaccess are as ...
0
votes
2answers
67 views

Move Wordpress to subdirectory, keep ALL URLs

I currently have a website at site.com and have WordPress installed in me website's root folder. My website includes pages like: site.com site.com/page site.com/2015/10/01/post.... site.com/login ...
0
votes
0answers
78 views

Folder Permissions, fsockopen enabled and cURL is disabled

Hello I recently migrated my wp site to a new host and it has being nightmare since i am not able to upload pictures to the Media gallery and install plugins. WP keeps showing me this error and when ...
0
votes
2answers
146 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
1answer
39 views

admin_url() do not retrieve the correct url in an subdirectory install

I have installed Wordpress locally in a subdirectory. I have the admin_url( 'users.php' ) template tag in a plugin that retrieves the http://localhost/wp-admin/users.php URL instead of the ...
0
votes
0answers
35 views

Nested folder paths for WordPress multisite

I'm looking to implement a WordPress multisite with nested folder paths. Having read this blog - http://www.paulund.co.uk/wordpress-multisite-nested-paths - I just wondered if anyone had positive / ...
0
votes
1answer
69 views

WordPress Multisite redirect loop

I'm wondering what my htaccess file should look like for my multisite install. I'm using sub folders instead of sub domains, this was something that I actually changed after the initial setup. ...
0
votes
0answers
21 views

Changing primary domain from non WWW to WWW

My root has the following structure: public_html Site1 (primary domain) Site2 (addon domain) Site3 (addon domain) My settings for Site1 is as follows: **wordpress url**: ...
1
vote
1answer
97 views

Template Hierarchy tag-{slug}.php directory

When tag-{slug}.php is in the root of theme, say wp-content/themes/p2/tag-{slug}.php, the template hierarchy is respected. However, I have many such custom files and just cannot have it in the theme ...
1
vote
0answers
20 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 ...
0
votes
0answers
6 views

Path of index page for modify my text (old version Weaver by WPWeaver.info theme)

i have a web site by an olp version of Weaver by WPWeaver.info theme, actually is inpossible login for modify the text in home page. i ask you: what is the path in folders WP for modify by FTP?
1
vote
1answer
130 views

Change wp-content without changing the name of the folder

This does not work # BEGIN WordPress <IfModule mod_rewrite.c> RewriteRule ^/index\.php$ - [L] RewriteRule ^/css/(.*) /wp-content/themes/themename/css/$1 [QSA,L] RewriteRule ^/js/(.*) ...
3
votes
1answer
195 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 ...
0
votes
0answers
15 views

How can I create a simple directory with ratings?

I have tried several commercial plugins that are far more complex than I need. I am building a site where customers can rate their bank(s). All I need is a post for each bank and an index page to ...