The tag has no wiki summary.

learn more… | top users | synonyms (3)

1
vote
0answers
76 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
2k 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
1k 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
1k 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
458 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
86 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
142 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
3k 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
271 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
471 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
122 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
570 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
526 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
699 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
109 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
71 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
111 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
93 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
53 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
317 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 ...
2
votes
1answer
410 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
147 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
616 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
76 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
3k 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
496 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
304 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
1k 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
1k 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 ...
16
votes
9answers
4k 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 ...
6
votes
2answers
14k 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
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 ...
0
votes
1answer
633 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
2k 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
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
2answers
2k 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 ...
0
votes
1answer
70 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
5k 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
97 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
384 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
633 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
82 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
900 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
8k 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 ...