Custom branding / theme specified by URL

EDIT On second thought: no, both Themes couldn’t use the same database. If they did, they would have to have exactly the same settings, including active Theme, activated Plugins, and settings – which includes home_url(). There may be other ways to go about it, but this isn’t one. ORIGINAL ANSWER If I’m following your question … Read more

Why aren’t my posts/pages showing up in my WordPress Theme?

Try this basic template layout <?php get_header(); # gets header.php contents if (have_posts()): # checks if there are any post available for this url while(have_posts()): # starts loop the_post(); # assigns $posts global the_title(); # outputs post title the_content(); # outputs post content endwhile; # ends loop endif; # ends conditional check get_footer(); # gets … Read more

WordPress theme switcher

This has to do with .htaccess rather than wordpress itself. You could just add a row to your htaccess files. RewriteRule ^(.+)/theme-(.+)$ $1?themedemo=theme-$2%{query_string} $1 is argument one, the first appearance of (.+) and is the page name $2 is the second argument, the second appearnce of (.+) as in the theme name so if you … Read more

setting a different theme for specific category in wordpress

WordPress can only use one Theme at a time. You cannot (and, really, should not) change Themes on-the-fly. (There are edge cases; search the Plugin repository for Theme Switcher Plugins for implementation examples.) That said, that doesn’t mean that a single Theme can’t output different styles based on the current context; and, really, that’s what … Read more