Tag Info

New answers tagged

0

Finally fixed this errow after browsing for a couple of hours and trying many options. In this block in your Apache httpd.conf file, (located in my CentOS instance at $ sudo vi /etc/httpd/conf/httpd.conf) # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options ...


0

With credits to petermolnar via irc://freenode.net/wordpress I can answer my own question. The key is to set an upload-dir filter in the theme's functions.php: function per_user_upload_dir( $original ){ // use the original array for initial setup $modified = $original; // set our own replacements if ( is_user_logged_in() ) { ...


1

OK. I figured it out: When moving to multisite, manually overriding WP_HOME and WP_SITEURL like below doesn't work anymore: // Overwrites the database to save from constantly editing the DB define('WP_HOME','http://localhost'); define('WP_SITEURL','http://localhost/wp'); I fixed this by manually changing the database so WP_HOME is http://localhost and ...


0

It can be done, I did it here for example: http://krimsonkloverdev.malbert.me/ - dev site with seperate wordpress install http://www.malbert.me/ - main site on root level. I set everything up at my host, I'd recommend you just contact them first and be sure you can have separate database installs as that's basically all you need.


0

You are overthinking this. The namespace structure applies at the level of individual package. There is no need or push to treat the whole site as such package. Also one of the benefits of using autoload in first place is that it makes location of classes in file system largely irrelevant. So the simple and practical approach is to: Handle namespaces at ...


1

I think that the most important question here is, Does this functionality add functionality to my theme or to my site? Page templates in general are theme territory and in my opinion should stay in a theme. This does not mean any functionality on which a template depend should be in the theme as well. These meta boxes that you are talking about can either ...


1

Since WP 3.4 page templates can be stored in theme root folder or direct sub-directoryr, that is no problem. But rename page templates, which include moving files to other directories, will unassign that page templates for all pages currently using it. To reassign the page template, simply edit the page, and reselect the desired template. About the ...


2

It is not possible to override header/footer via hooks in respective get_header()/get_header() functions. However it is often overlooked that these function allow input and loading different headers. For example get_header( 'nested/header' ); will look for header-nested/header.php in theme's folder. It's kind of a hack in regards to subdirectory use, but ...


1

I kept on searching, and finally found something that fixed this issue. For those who are using CentOs 7 in combination with Plesk 12: The issue is with SELinux. When it’s used in Enforcing mode (which is the default), wp-content does not show itself via FTP. Switching it to Permissive mode or disabling SELinux altogether solves the problem. ...



Top 50 recent answers are included