WordPress 404 page returning with default in IIS7
This resolved my 404 error. I essentially went into IIS and directed the 404s to a custom URL “/index.php?error=404“ Article that explained how to resolve the error
This resolved my 404 error. I essentially went into IIS and directed the 404s to a custom URL “/index.php?error=404“ Article that explained how to resolve the error
An archive of a custom post type is displayed using archive-[posttype].php or archive.php if the first does not exist (see the Template Hierarchy for the full details). page-[posttype].php is only used if you create a “dummy” page to show a custom post type archive (before WordPress 3.1). So in your case you should rename page-portfolio.php … Read more
Not using the current system. In order to serve as a valid Template for a Child Theme, the Parent Theme must exist, and be a valid Theme. That’s because the Parent Theme’s template files must be accessible via locate_template(), in order for the Child-Parent fallback to work properly. Note: if this core Trac ticket is … Read more
You shouldn’t need to make direct calls to your theme files – use the AJAX API, and make all requests to admin-ajax.php (that way, WordPress’ll be loaded for you, and you won’t need to assume the file hierarchy in order to load it manually). $.get( ‘<?php echo admin_url( ‘admin-ajax.php’ ) ?>’, { “color_theme” : “test”, … Read more
Lists of items are already implemented in WP core. They’re called custom menus. They are stored as a custom post type + taxonomy. UPDATE: I had assumed that your list items would be other posts, but I’m getting the impression that you just need them to be strings. In this case, menus would be overkill … Read more
The paragraphs are done by the wpautop() function, hooked to the_content, the_excerpt() & comment_text as well as ‘term_description’ for taxonomies. The plugin linked by @javipas does an enormous effort to just add this, but it’s a good example (+1). You can (modify it a little and) take the following part out of it: // The … Read more
There’s two ways that this can be done. Write CSS File The first option would be to write your CSS file after the user chooses the custom font. I’m guessing that your theme will have an options panel of some sort. When the user submits the data, the new CSS file would be created using … Read more
I think there is zero performance issue regarding multiple uses of get_template_directory() (or any of its siblings). The return values of these functions are part of the cache. Multiple calls to these functions do not incur multiple database hits.
What One Trick Pony said; look in Appearance > Menus on both sites and check if the menu has been populated. If so, check to see if the Theme Location has been set and saved. If they are different that may be what’s causing different menu structures to be rendered. Let us know how it … Read more
Add the following line to your WordPress installs wp-config.php define(‘DISALLOW_FILE_EDIT’,true);