The tag has no wiki summary.

learn more… | top users | synonyms (3)

0
votes
2answers
106 views

subdirectory install breaking existing links

I've had this issue several times now. While building a site, including some content, I keep wordpress in a subdirectory (say, /wordpress/). When putting it live, I move/copy 3 files out of the dir ...
0
votes
3answers
260 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 ...
0
votes
1answer
225 views

Building a Data Intensive Website with Wordpress

I am an intemediate website builder and have been working with wordpress for a few years. I am attempting to build a website (for myself) that is data intensive. All I've built to date are sites ...
0
votes
2answers
368 views

Giving WordPress Its Own Directory together with index.html

I want to power my website from http://www.example.com and not from http://www.example.com/foldername I've completed this task and this is working but before people actually get to the WordPress ...
0
votes
1answer
548 views

Upload an image at frontend > Create direction and/or rename filename possible?

I have a form for a non-profit-club, that publish posts + up to 20 images. The image-path will be writen in a custom-field. Images are uploaded. Ok, now i want to rename the pictures or (much better) ...
1
vote
2answers
211 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
3answers
318 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 ...
7
votes
1answer
2k views

Moving a WP Multisite to a subdirectory

Firstly, I've read a number of posts on this process. However, for various reasons, the process remains difficult to implement or troubleshoot for lack of even abstracted examples, or maybe too ...
5
votes
2answers
743 views

File and directory permissions

I installed latest WordPress 3.5 in my CentOS server. When I tried accessing http://example.com/wp-includes/, I received a listing of the directory: (Index of wp-includes). I added the following code ...
1
vote
1answer
1k views

Disable directory browsing of uploads folder

I'm using Wordpress as a CMS for a simple website. I want to prevent users from being able to browse the directories such as the wp-content/uploads folder or any directories of my theme. My host does ...
1
vote
1answer
542 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 ...
0
votes
1answer
279 views

why there is a large file named core in wpmu's directory?

why the file named core is here? can i delete it? ls -lh total 37M -rw-rw-r-- 1 hugemeow pg 16 2012-03-04 04:22 a.php -rw------- 1 hugemeow pg 30M 2012-10-16 10:41 core // this is the large ...
6
votes
1answer
3k views

get_template_directory() vs bloginfo( 'template_directory' ) vs TEMPLATEPATH

I was reading this article: Common WordPress Development Mistakes and How to Fix Them, and in it, they author says: Getting the theme location: If you are using TEMPLATEPATH or bloginfo( ...
1
vote
0answers
68 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 ...
0
votes
1answer
1k views

How to restrict access to wp-content, wp-includes and all sub-folders

after searching I didn't find an answer still confused of how do I hide the -> wp-content --> uploads --> themes --> plugins -> wp-includes in browser. What I want is when viewer browse some like ...
4
votes
2answers
605 views

Get a path to a different plug-in

To get a the path to a plugin you can use plugin_dir_path(__FILE__) - but this obviously has to be called from within the plug-in. How can you reliably get the path to plugin B (pluginb/pluginb.php) ...
1
vote
2answers
693 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 ...
0
votes
1answer
264 views

Make theme editor to show all theme's files

Is there a way to make all files (also in subfolder) in my theme directory visible in the theme editor? I need a way to edit themes without having to upload a new one every time. Thanks!
0
votes
1answer
78 views

wordpress sub-directory sites on a sub-domain?

I have a large site at www.example.com this is a .net site I want to use WP multisite installed at word.example.com this would point to the WP root install directory but on a different server than ...
3
votes
1answer
116 views

Isolating WordPress to a subfolder

I'm trying to isolate a wordpress installation on our site to a specific subfolder. I created a folder on our root site named _wp and placed all the wordpress files in there. I added the following ...
0
votes
4answers
2k 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 ...
0
votes
1answer
211 views

navigation doesn't work in custom header.php

I've made a custom header-blog.php(for blog page/home.php) in addition to header.php, both of which use the exact same <nav> code. On the pages that use header.php, the navigation works ...
1
vote
2answers
333 views

How to produce a sub-page-system in Wordpress

I am currently new to Wordpress development and I am developing a custom theme with a few custom post types and custom functionality. For the most part, it was pretty easy to find the information I ...
1
vote
2answers
109 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? ...
2
votes
2answers
423 views

Opendir and Wordpress Path

I wrote a simple function to get the contents in a folder (called templates) in my wordpress plugin, but am having problems getting the path to work (thus the function always dies). My question is: ...
0
votes
1answer
379 views

Hiding Directory Path

I'm not sure if I am wording this right, but I need to hide the directories of my Wordpress installation. What I mean is, I am able to go to, say: www.example.com/wp-content/uploads/2012/08 ...
1
vote
3answers
523 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
101 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 = ...
0
votes
1answer
68 views

Path in dev server works; same path in prod server is broken

on my development wordpress server (using Desktop Server's "ServerPress"), one my pages has a list of pdfs; each tag has this path: /wp-content/themes/accessgroup/docs/thePDF.pdf. When I upload my ...
0
votes
1answer
102 views

Accidentally Changed Wordpress Url

So I have two different wordpress applications located at test/wordpress1 test/wordpress2 I wanted to switch between them under the same domain (localhost) so while on the wordpress1 application, I ...
1
vote
0answers
80 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
49 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 ...
2
votes
1answer
261 views

2 wordpress blogs with 1 users table and 1 login

I have been trying to achieve that and I did without the 1 login part I fallowed this post/tutorial , but no matter what I do I can not get it to login ones for both websites. My set up is ...
1
vote
1answer
284 views

Menu Custom link - using relative link when WP is in a subdirectory

I tend to develop sites in a subdirectory, and I tend to use a fair amount of custom links in my menu ( the "Custom Links" option in the WP admin Appearance > Menus section) to display archive pages. ...
9
votes
1answer
129 views

How MUST the directory for a plugin be structured?

I get the basic plugin concept. I've read the Codex article on Writing a Plugin That article talks about the "main plugin file". How does Wordpress determine "the main plugin file" ? Q1: Is it ...
0
votes
1answer
464 views

Allow Access To Subfolder Of HTML For Logged In Visitors

I have a WordPress site installed in the root folder. Beneath the root is a /docs folder with a bunch of older html files. I'd like to allow only logged in WordPress users to be able to have access to ...
0
votes
2answers
73 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
127 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
374 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
180 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
769 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
814 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 ...
0
votes
2answers
8k 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
1k 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
827 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
410 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 ...
22
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 ...