The tag has no wiki summary.

learn more… | top users | synonyms (3)

0
votes
2answers
74 views

Trying to setup a dev subdomain, but url loads as /dev/ instead

I created a subdomain (dev.mysite.com) and I duplicated my live site into this subdomain. However, when I go to dev.mysite.com, it loads mysite.com/dev instead. I changed siteurl and home in ...
0
votes
1answer
128 views

Custom folder for wordpress page templates

How I can change a folder for wordpress page templates? By default all page templates located in theme's root folder. I want to make a folder with name "templates" in theme's root directory and keep ...
0
votes
1answer
2k views

how to create a folder in wordpress

This is the dilema: I want to install wordpress in the root (regular installation for a wordpress site). Although, I want to have different cities to be available for the user to view the content ...
2
votes
2answers
425 views

Post Ancestor and Child Post in Custom Post Type

Hierarchical structure of custom post type "Book" (for example). When we are on Post 2-95, I want to know: Does the post has this post ancestor(Post 1-31)? Does it have child posts(Post 3-19, ...
1
vote
1answer
38 views

Is there any way to allow a plugin to write over a previous version?

When installing a plugin, it will not install if the directory to which it is attempting to install already exists. This means that users of our plugin must first manually deactivate and delete the ...
0
votes
1answer
231 views

Page not found when trying to link to files in child theme directory

I'm trying to create a child theme based on Toolbox 1.4 by Automattic. I have my scripts file saved as child_theme/js/scripts.js on my server and I enqueue it by using wp_enqueue_script( 'scripts', ...
2
votes
2answers
868 views

Why doesn't WP_PLUGIN_DIR definition use DIRECTORY_SEPARATOR?

Whilst writing some code that backs-up a plugin, I hit a problem with 'the wrong kind of directory slash' on my windows dev environment. Tracking it through I find in default-constants.php:91 ...
0
votes
1answer
893 views

Moving from subdirectory and subdomain -> root

Background: I've only done vanilla theme and direct installs until now. The site I'm working on has an existing (ancient) Mambo install in root directory. For the new Wordpress revision, client wanted ...
15
votes
9answers
3k 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 ...
2
votes
2answers
10k views

How to get the path to the current theme?

This code is used to get the directory of the current plugin: plugin_dir_url( __FILE__ ). What should I use to get the directory of the current theme?
5
votes
1answer
2k views

Change upload directory for PDF files

I would like to change the upload directory for PDF files only, not for other files. For example, the PDF files would be uploaded to wp-content/uploads/pdf but other files would remain in ...
1
vote
1answer
928 views

Change the actual (or viewable) Wordpress directory structure

I like the simplicity of wordpress and all it has to offer, but for security purposes I would like to change the actual (or viewable) directory structure of my site. The install has a set of files ...
0
votes
1answer
492 views

wp_enqueue_script not loading my custom js file

I am using the following code below in my functions.php, However app.js is not found when I inspect it in the resources tab. It is looking for it in ...
24
votes
1answer
1k views

Add multiple plugin directories

The task You can register add additional Themes directories using register_theme_directory() for your WP installation. Sadly core doesn't deliver with the same functionality for plugins. We already ...
1
vote
3answers
1k views

Multiple wp-config.php files in one home directory

It's possible to move wp-config.php up one directory level for security, i.e. into the directory above public_html (sometimes called home or a user name, depending on the web host). "You can move the ...
1
vote
2answers
2k views

How to build a directory with indexes in Wordpress

I am working on a site that is using posts as a way to manage glossary articles like the example site below. I would like to find a way to display articles alphabetically and grouped by a selected ...
0
votes
1answer
67 views

WP Codex answer incomplete? Put WP in subdirectory. .htaccess change required

I have installed Wordpress in a subdirectory '/medical' and want the address to show up as www.mysite.com/page not www.mysite.com/medical/page The Wordpress Codex here : ...
4
votes
3answers
4k views

What is the best way to get directory path for wp-config.php?

I am developer of the plugin mapsmarker.com which also offers several APIs which can be accessed directly (eg www.mapsmarker.com/wp-content/plugins/leaflet-maps-marker/leaflet-geojson.php?marker=1) ...
0
votes
1answer
88 views

Want to change my site root

Hello I have a wordpress site that has a url at some ip address. Now what I want to do change the url. Instead of http://"My IP Address", I want it http://"My IP Address"/wordpress. instead.Is there a ...
2
votes
1answer
333 views

What is the best way to move a plugin´s subdirectory+files to wp-content/uploads-directory?

I am developer of the plugin Leaflet Maps Marker (http://www.mapsmarker.com - "Pin, organize & show your favorite places through OpenStreetMap, OGD Vienna or any custom WMTS-map") and have one ...
0
votes
2answers
67 views

Will permalinks work if blog is transferred to subdirectory?

How should I transfer my WordPress blog from the root of my domain to a sub-directory? If everything including root in an installment of WP 3.2.1 were moved to a sub-directory, would the default ...
0
votes
1answer
600 views

Yelp-style geographic directory plugin?

The project I'm working on discusses local farming/agriculture/etc. initiatives and I'm ultimately wanting to create a directory with the following features: Separation between: Urban farms ...
-1
votes
2answers
1k views

@font-face Paths Don't Seem to be working properly

I'm having issues with my @font-face code in my style.css file for a theme. I've already tested the theme as an HTML site, and the paths are the same. The style.css file uses a relative path to a ...
1
vote
1answer
1k views

Multisite installation combining subdomains and subdirectories

I need to create a complex WordPress-powered set up, which I would like to run from a single code base. My setup is complicated by a number of factors. First of all I already have software running ...
2
votes
2answers
80 views

When developing a distributable Theme, does it HAVE to be “inheritable”?

I'm currently developing a complex Theme (or framework, if it can be called that) for my own personal use. However, in the event that it becomes appreciated to the public - does it necessarily HAVE ...
0
votes
1answer
827 views

How to write to the plugin's directory?

My plugin needs to create some directories for its use when it's executed. On many hosts (those using suPHP for example) there is no problem and everything works fine. But on other hosts, PHP does ...
7
votes
5answers
7k views

Can wordpress theme folder name be changed freely and nothing technically happens

Can the wordpress theme folder be renamed any time freely and everything works fine after that , themes/oldthemename themes/whatevernewname or is it so that if you change the folder name that ...
1
vote
1answer
686 views

On WordPress Network(multisite), Sub Blogs in Subdirectories or Subdomains? What's better?

Can anyone explain why one is better than the other, and in what circumstances? Things I'm considering: SEO consequences (if any), scaling issues (if any) and anything else I'm not thinking about. ...
0
votes
2answers
134 views

Moving WP from /blog to root directory

I'm moving a WordPress installation from /blog to the root directory on the server. There weren't more than ten blog posts in the blog, but I'm concerned about Google finding dead urls. Is there an ...
2
votes
1answer
628 views

How do I set up single sign on for multiple WP installs across the same domain?

I want to set up multiple WP installs in a few subdirectories. For example, one WP install would live at mydomain.com/blog. Another WP install might live at mydomain.com/project1 and another might ...
5
votes
1answer
2k views

Use a separate upload folder for custom post attachment upload

So, i'm trying to find out a way to use two separate upload folders, being the default one wp-content/uploads for general media uploads, and another one say wp-content/custom for one specific type of ...
1
vote
1answer
229 views

WordPress in a sub directory but not images

I have followed this tutorial from WordPress and managed to get everything to work. I have installed wordpress in a subfolder called /wordpress/. The problem that the images I uploaded show the ...
1
vote
1answer
52 views

Where to save common libraries?

I have a multiple-site WordPress install. I have decided to centralize as many of my libraries as possible into one spot, for obvious organizational reasons, and in order to reduce bloating. Many of ...
0
votes
1answer
137 views

Best way to transfer Wordpress install to root of directory when I'm ready to launch?

I'm currently designing a site for a client and I don't want anyone to be able to navigate to the homepage and see it. So currently the site is located in a subfolder of the main domain. Like so: ...
0
votes
2answers
390 views

Page URL not working due to physical directory

I have a page named http://www.mysite.com/whitepapers/ and it worked fine. I have now added a physical "whitepapers" directory and has since broken my permalink for the page. I realize that it has ...
0
votes
3answers
688 views

Powering only a subfolder with WordPress on a LAMP stack with an nginx reverse proxy

[I just posted this on the WP Forums, too, before anyone starts Googling and saying that this is posted somewhere else] I'm hoping this isn't a duplicate, but I've been searching here and Googling ...
2
votes
1answer
107 views

Hosting plugin Google Code with auto update?

I've been developing a WordPress plugin for a friend who needs something completely out-of-the-box, at least what WordPress is cornerned. Now, I could use the WordPress plugin repository to host this, ...
2
votes
2answers
96 views

Install theme on multiple domains

i'm hosting several sites. they all have the same base theme that i need to install. I want to develop this theme and have them updated on all the sites simultaneously. I have the following folder ...
1
vote
2answers
166 views

to create own conditional tags for business directory in wp

i want to create conditional tags for the business directory categories as the conditional tags which are provided are for normal categories.which do not work for the business directory categories.can ...
3
votes
3answers
3k views

Benefits or Problems for using Sub-Directory vs Sub-Domain install of WP Network

Reading through the documentation you have the ability to setup a WP Network in two ways, Sub-Domains and Sub-Directories. The only explanation they give you is Sub-directory sites It works with ...
0
votes
1answer
192 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?
2
votes
2answers
352 views

Want to turn Wordpress into a paid subscription directory

I need to create a paid subscription directory where people can register their business and enter its details. Subscriptions should be paid on a monthly or yearly basis. Business details include ...
0
votes
1answer
91 views

google xml sitemap won't work on directory install

I have installed wordpress in directory above the root called "wp". I'm having issues with the google xml sitemap generator. I cannot rebuild the xml code and write it the sitemap.xml file. I have ...
0
votes
1answer
210 views

Is there a way to hide WordPress behind a web visible directory?

Is there a way to hide WordPress behind a web visible directory for extra security using a symlink?
8
votes
7answers
16k 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 ...
0
votes
1answer
426 views

CDN: Origin server URL, WordPress Core files installed in sub-directory

I've just purchased a plan with MaxCDN to deliver my content through CDN, but i've got a small issue before i create a pull-zone. I moved my WordPress core files out of my root and into a ...
1
vote
2answers
993 views

Static files or dynamic WP pages for “static content”?

Ok = I've looked around a lot for a clear answer to this, but find very few real answers. I would really appreciate some info from experienced individuals. A tiny bit of background. I've worked ...
10
votes
1answer
2k 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 ...
1
vote
1answer
673 views

What's the proper way to use wp_enqueue_script/style?

First, let me tell you how I'm currently doing it. I have this function. It's purpose is to take the the string of a file system path (/root/web/dir/some/path/to/file) and return the equivalent URL ...
1
vote
1answer
153 views

Multisite installation on an existing single installation

How to create a blog in a sibling directory of an already installed WordPress directory? The domain is example.com and there is an existing installation in blog directory and the root directory at ...