The tag has no usage guidance.

learn more… | top users | synonyms (3)

1
vote
3answers
3k views

Group Posts by First Letter of Title

I am working on a website that is using posts as a way to manage glossary articles similar to the example website below. I would like to find a way to display articles alphabetically and grouped by a ...
1
vote
4answers
2k views

Moving to directory creates path problems.. how to solve?

I've moved my installation from example.com/beta to example.com and I've noticed that there are a few broken images. Looking at the source, it appears that they are still looking in looking in the ...
1
vote
3answers
499 views

Use WP_Theme::scandir function to scan a plugin directory. Is there a way?

I'd like to scan a plugin's directory for files with specific extensions, like php, css and js. I know there is scandir() function in WP_Theme class that's perfect for this work. The problem is that ...
1
vote
5answers
2k views

WP Page and Subdirectory with same name

I have a subdirectory within my WP installation called labs. I created a WP page called labs as well. When a user hits mydomain.com/labs/ I want them to load up the WP page. But instead it's loading ...
1
vote
3answers
228 views

Depth > 2 possible with multisite?

Is there anyway to create blogs with 2 depths using multisite? I want to have an installation in root and blogs with 2 depths. Something like: / - WP installation: root aggregate /foo - ...
1
vote
2answers
38 views

How do I serve static content on same domain as wordpress

I have a portfolio site that I would also like to make a demo site for some of my client work. Basically I would like to server subfolder statically along side the Wordpress install. So for instance ...
1
vote
1answer
382 views

issues including a file from a plugin directory

I have a processForm.php in theme directory that does what it says. I am trying to include a file (which i need in order to run a specific function in processform.php) from a plugin directory and have ...
1
vote
1answer
606 views

get_stylesheet_directory() returns wrong URI… localhost/using vhosts

I'm trying to develop a WP theme for a client via localhost. I'm using XAMPP on Windows 8 and has set up vhosts to something like myclient.dev. This works for stylesheet <?= get_stylesheet_uri(); ...
1
vote
3answers
1k views

Accessing WordPress installation in its own directory at domain root

I am using this tutorial Giving WordPress Its Own Directory to launch a WordPress (installed in a sub folder called wordpress) by using example.com instead of example.com/wordpress. It says to copy ...
1
vote
1answer
39 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 ...
1
vote
1answer
1k 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 ...
1
vote
1answer
48 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
1answer
270 views

Block Logged-Out User Access to Directory Outside of WordPress using .htaccess and PHP file

I have successfully blocked access to a folder directory outside of WordPress based on user cookies using the following code in the .htaccess file: # BEGIN WordPress <IfModule mod_rewrite.c> ...
1
vote
3answers
2k views

How to run a subdirectory multisite install under a subdomain

I am on a VPS running Nginx as a backend server. I want to set up a sub-directory multisite WordPress installation, however I want all sub-sites to be under one sub-domain also. For example: My main ...
1
vote
2answers
1k views

How to use relative path with my plugins folders?

Hi i tried for picking all images in a folder so that what ever images user puts in a specified folder inside my plugin i can take and use it in plugin. I tried the following php functions to pick ...
1
vote
2answers
145 views

How to publish new posts/pages in root instead of subfolder, but keep old structure in place?

I have a blog that was setup in example.org/blog/ many years ago, so all its files are in /blog/. Back then it seemed like a good idea, but now we want to slowly get rid of the subfolder. Of course ...
1
vote
2answers
451 views

How long does it take for a new plugin to be approved?

I've just submited my first wp plugin and i would like to know after how much time will my plugin be published to the wordpress plugin directory? Hou much did you actually waited?
1
vote
2answers
701 views

Setting up two separate blogs while using WordPress as a CMS

I need to get this set up ASAP and cannot seem to figure out how to do this after searching and searching. I am using a WordPress install mostly as a CMS. I would like to have two separate areas on ...
1
vote
3answers
513 views

Can't Access Subdirectory

I've moved my blog from http://leghumped.com/blog to http://leghumped.com/ and now I can't access my /images directory. I've tried every combination of rules from trawling for people with the same ...
1
vote
2answers
383 views

Retrieve the template directory URI via global or get_template_directory_uri() every time?

One Wordpress function I happen to use frequently is get_template_directory_uri(). While I tried to minimize or avoid its use where I can, I still happen to have more than one call to this function in ...
1
vote
2answers
2k views

Accessing site's root from themes folder

Having some troubles with a PHP script I am trying to build. I need to access the a file which is located in the root folder of my Wordpress install: wordpress-root/live-config.php Problem is, my ...
1
vote
2answers
133 views

How do i structure my theme folder to avoid one huge list of files

When working with a worpress site with lots of custom post types and lots of page templates, my theme folder is looking messy. What are the accepted best practices to organise code files in WordPress? ...
1
vote
3answers
812 views

Wordpress installation site folder move to the final site destination

My client have a site : business.com All the files of the old fashion site is there, images, video, html, css. i just made a folder called business.com/cms and installed wordpress here. FOr 2 month ...
1
vote
1answer
898 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
2answers
1k views

How to do Domain Mapping to Subdirectories?

Does Wordpress MU not allow domain mapping to subdirectories, such as example.com/blog? Wordpress.com doesn't allow this. I couldn't find an option to do this in WordPress MU Domain Mapping plugin. ...
1
vote
1answer
354 views

more than one upload directory?

Is it possible to have 2 separate upload directories? One in which the resized images are created/stored and another to where full size original images are uploaded. This would let you use the path ...
1
vote
2answers
31 views

Make a user administrator to a sub directory site and a contributor to main site in multisite network

I have a multisite network. The main site displays news. The sub directory sites have administrators and I call them subsite admin. If the subsite admin wants to post to the main site, I want them to ...
1
vote
1answer
78 views

Correct folder permissions?

I just recently installed PHP and wordpress on our coldfusion box and wordpress is throwing me an dialog saying I need to input FTP information so wordpress can alter the files. I read up on this and ...
1
vote
1answer
77 views

Solutions to repost categories into multisite blogs?

I have done a search on this topic but was unable to find a solution to this specific question involving wordpress multisite. I currently have a wordpress network where domain.com is our main site ...
1
vote
1answer
205 views

How to make use of WP templates within a nested site structure?

I am working on a site that highlights neighborhoods. Within each neighborhood there are places (that will be added by the client on the back end). Each neighborhood will have its own unique set of ...
1
vote
1answer
135 views

Limit multisite/network site names to a property of the user

We need to limit the blog names users may choose when they create their own blogs. We have a WordPress Network configured to have all blogs share a domain name. E.g., domain.name.com/x, ...
1
vote
2answers
561 views

Mapping Subdomains in Wordpress to give the appearance of a localised site, best approach?

I am building a classifieds website and am using Wordpress for the functionality of user accounts, Paypal integration, custom taxonomies and of course super flexible custom post types for the ...
1
vote
1answer
1k views

Plugins will only be installed with 777 on folder. Solution?

I'm 100% not the first asking this question, yet I want to have this question be answered to my situation.. I got Wordpress installed on my server (I host it at Versio.nl) and configured whole ...
1
vote
4answers
5k views

Permalink Issues by Installing WordPress in Subdirectory / Subfolder

I installed WP in subfolder /cms and it runs live without subfolder. When I use /%postname%/ as permalink I get 404 error on my site. My Server supported mod_rewrite. My Code wp-config.php ...
1
vote
1answer
117 views

How to create directory using username within theme

I have the following code to save the uploaded file to a static directory. <?php //set the image size in mb $max_upload_size='10'; $MAXIMUM_FILESIZE = $max_upload_size * 1024 * 1024; $uploaddir = ...
1
vote
3answers
2k 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
1answer
844 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. ...
1
vote
1answer
54 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 ...
1
vote
2answers
1k 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 ...
1
vote
1answer
1k views

Change multi-site installation from sub-domains to sub-directories

I've searched everywhere but I don't seem to find a solution for this. I have a WP installation that is using sub-domains and doesn't have yet any other sites besides the main site. What I want to ...
1
vote
1answer
233 views

Custom post types with custom directories

I'd like to run a WordPress install with open registration so that anyone can sign up and post to a custom post type that would live at... domain.com/open/date/the-post-title I'd also like to run a ...
1
vote
2answers
1k views

Creating a searchable A-Z listing of hundreds of companies/services

I am about to create a webbased guide. A guide that will list numerous of companies - their services, contact information and so on. And I need help coding this! I am using Genesis News Child Theme ...
1
vote
0answers
12 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
1answer
48 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/(.*) ...
1
vote
1answer
25 views

How to give all CPT a folder automatically based on their slug

This is what I have now and working: function get_custom_post_type_template($single_template) { global $post; if ($post->post_type == 'amazon') { $single_template = TEMPLATEPATH . ...
1
vote
1answer
24 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
92 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
2answers
42 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
1answer
273 views

Installing plugins and using complex folder structure with child theme in WordPress

I'm creating a new WP website based on a template, and I've created the child theme for this template. It is working without any problem. I understand the basics for a child theme as adding my ...
1
vote
0answers
23 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 ...