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

If you’re manually installing a plugin, you need to disable and delete the old version. However, WordPress does allow you to update your plugin programatically. If your plugin is hosted on the WordPress.org repository, it will prompt the users to install updates for you. You’ve likely seen this with Akismet and other plugins already. If … Read more

Custom theme folder

The default theme directory is registered like this in wp-settings.php // Register the default theme directory root register_theme_directory( get_theme_root() ); where function get_theme_root( $stylesheet_or_template = false ) { global $wp_theme_directories; if ( $stylesheet_or_template && $theme_root = get_raw_theme_root( $stylesheet_or_template ) ) { // Always prepend WP_CONTENT_DIR unless the root currently registered as a theme directory. // … Read more

wordpress blog in subdirectory or subdomain

The first option (/blog/) is the easiest: create a new blank page called “Blog” navigate to “Settings > Reading” and choose this new page as the value in the “Posts Page” drop-down Now, when you navigate to the new “Blog” page (which should be at /blog/ unless there is something unusual about your setup), all … Read more

Depth > 2 possible with multisite?

Answering your first question, yes it is absolutely possible to have one installation of WordPress running ‘within’ another (i.e. installed at example.com and example.com/child). I have something like that running right now.

Change location of header.php and footer.php

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 it works. 🙂

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)