Custom folder for wordpress page templates
In WordPress 3.4, themes can now place page templates inside a subdirectory of their theme. via an API called WP_theme. Read more here: http://core.trac.wordpress.org/ticket/20103
In WordPress 3.4, themes can now place page templates inside a subdirectory of their theme. via an API called WP_theme. Read more here: http://core.trac.wordpress.org/ticket/20103
Sounds like it is something left in your database. Try to make a new backup and import it again then run this SQL in your MySQL. Input your old domain as http://www.old-domain.com and the new in http://www.new-domain.com, also if you have changed the prefix (wp_) to something other, change it before run. UPDATE wp_options SET … Read more
Take a look at this thread here – it covers using .htaccess to protect a directory based on a WordPress logged in cookie. The .htaccess in case the thread goes missing – obviously you’ll need to change uploads/premium to your directory: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^.*uploads/premium/.* RewriteCond %{HTTP_COOKIE} … Read more
Well, I’m mostly thinking that you should maybe switch to using wp_nav_menu() for your navigation menus, and CSS to add the images to your nav items, because it’s a lot more dynamic that way, and you can use “pretty” permalinks like http://urbanpalate.com/portfolio/some-work. As it stands though, I think your nav menu items just need a … Read more
I don’t see an issue. For all hosting intents and purposes word.example.com would be completely different domain to www.example.com. Just point it to WP server (using your hosting or domain registrar, depending on your domain setup) and business as usual from there.
What the similar posts (wich your found) are suggesting, is adding a filter in your functions.php wich will handle the filenames for you. All uploaded files will be filtered by this function before the upload will be handled by wp_handle_upload. Add the following lines of code in your functions.php: function wpse_82741_rename_uploaded_file( $image ) { global … Read more
Here is the code to put in your functions.php file, it will show the splash-page.php only to outside visitors (by checking the referer). Make a splash-page.php in your current theme directory and edit the domain (example.com) in the code: add_action(‘template_redirect’,’my_splash_page’); function my_splash_page(){ $referer = $_SERVER[‘HTTP_REFERER’]; $referer_parse = parse_url($referer); if(is_front_page()){ // let visitors see the normal … Read more
First, what you don’t want to do is create a post type per state, in fact you want your states to be associated with a taxonomy (one taxonomy called locations with each state being a term that belongs to that taxonomy). Therefore… In this scenario I would create a post type named dealer or companies … Read more
WordPress has a good writeup about this at Giving_WordPress_Its_Own_Directory. Many people want WordPress to power their site’s root (e.g. http://example.com) but they don’t want all of the WordPress files cluttering up their root directory. WordPress allows you to install it into a subdirectory, but have your blog exist in the site root. You could also … Read more
You can delete your files rm and push it into trunk, then there will be no files to download and install. You can then restore your local copy and not commit anything until you are ready. Also tag the older files into /tags. ps. I think there is also an svn command called –keep-local which … Read more