Wordpress - preserving office location in blog
Here's a puzzler: I'm doing a site for a client that starts with a landing page that links to his four law offices, each with a color coded header and office info. They all have content specific to their offices, no problem. But they also have some content that's universal, like a blog. How do I put the blog in for all the offices but preserve the office info on those pages? No, I do not want to use frames, but yes, that's the idea I'm talking about.
Couple different ways you could approach this, generally depending on how much information you need to share across the offices, whether you have requirements on how these different offices are administered, and generally how similar the content is.
The first decision to make is whether to use Single Site setup (in which they technically operate as one WP site), or a Multi-Site setup (in which you could use one common theme, but the posts/pages are administered independently - you could still use a plugin like http://wordpress.org/plugins/network-latest-posts/ to share blog posts, but you'd want to make sure it meets your needs beforehand). More on this decision here: http://mashable.com/2012/07/26/beginner-guide-wordpress-multisite/, and setup here: http://codex.wordpress.org/Create_A_Network.
If you opted to go single-site, then one simple option may be to create page hierarchies, with the parent-level pages as Office A, Office B, Office C. If it's only a couple things that need to change based on the office (e.g. header colors, simple branding or info), then you could make a function that checks highest parent-level page (using get_post_ancestors - http://codex.wordpress.org/Function_Reference/get_post_ancestors), and use that result to determine which offices' branding you should use.
Best of luck!
str_replace not preserving whitespace
I'm pretty sure this is just a PHP question but I'm asking here in case the problem may inside a WordPress function. I have term meta called 'intro text' which is simply a description of the term. I'm trying to get the description to link to the parent element. What I'm trying to do is link a term to its parent term IF: In essence, 'Electronic musi...
Custom Search on Custom Page while preserving the main search function
Wordpress - Custom Search on Custom Page while preserving the standard search function. Hi all, I would like to create a custom search on a custom page on top of main search function. The additional one is supposed to be focused only on products. search-product.php The form: When I define the post type within the php file, it displays the query as ...
Preserving postdata with embedded wp_query queries?
I'm designing a website in Wordpress. This site is one of those parallax sites where all the pages are printed on the homepage and the menu scrolls to the anchors. That being said I am using a wp_query to pull out all the pages that are in the main menu. Furthermore I have a shortcode that I use in the content that also requires the use of wp_query...
Adding Header-Image Slider While Preserving Site Logo and Description
I've downloaded the MetaSlider plugin for WordPress, and am able to insert the generated code into my theme's header.php files so that the slider displays in the correct location. However, the site logo and description disappear when I do this (they should be overlaying the header image). Here's the code for the header.php file: To get the slider i...
Redirect only from homepage using regex and preserving UTM parameters
I am trying to redirect all mobile traffic that goes to the homepage of a website to the mobile version of the homepage and preserve the UTM parameters. I'm using the wordpress plugin Redirection which allows regex to be used. Currently what is happening is: www.website.com/?utm_source=test -> www.website.com/mobile/ which causes the UTM tags not t...
Create new admin section in wordpress - for creating office-pages
Ok, I have been looking for hours and I have to say I am really lost. I am trying to create a new section in the admin section of wordpress that should enable the user to create a new custom "office" page. There is really many office pages on the site I have been working on (over 30), each with its opening hours, map, and images. I assume the clien...