How to Create Hierarchical Directory for Nation Wide Mental Health Services

First of all, in WordPress here the best option to solve my problem is using Custom Post Types and Custom Taxonomies. To do that, I’ve created a file named “my_custom_posts.php” and put it inside the theme’s root folder. Then I’ve included this file in my “functions.php” using require(‘my_custom_posts.php’); You can also put your custom post … Read more

Does wordpress allow me to add a php file to the root directory to execute custom scripts?

Does wordpress allow me to add a php file to the root directory to execute custom scripts? WordPress can’t prevent you from adding PHP files to the root directory, but there is no builtin functionality to load those files. You can load them yourself but if you are not careful they will load outside of … Read more

Permalinks not working on second wordpress installed in a subdirect

Most of the time this problem gets solved after flushing the permalinks. By that I mean, one just needs to hit ‘Save changes’ on ‘Permalink settings’ page on backend. However you said that you tried pretty permalinks and its not working. Under “Settings > General”, please confirm that you have updated “WordPress Address (URL)” and … Read more

Multiple domains for multiple single installs

Serve both sites from the same installation. In your wp-config.php include the settings depending on $_SERVER[‘HTTP_HOST’]. Example for a complete wp-config.php: define( ‘DB_HOST’, ‘localhost’ ); define( ‘DB_CHARSET’, ‘utf8’ ); define( ‘DB_COLLATE’, ‘utf8_general_ci’ ); if ( ‘example.net’ === $_SERVER[‘HTTP_HOST’] ) // .net domain include ‘example.net.config.php’; elseif ( ‘example.com’ === $_SERVER[‘HTTP_HOST’] ) // .com domain include ‘example.com.config.php’; … Read more