I worked on a WordPress site for a client which required the creation of microsites.
Each microsite collected together all the content about each supplier from all over the site. It had been hacked together using a large amount of plugins, tools and widgets which meant it took about a day to set up a microsite for a new supplier and required a whole heap of knowledge about the system.
I will talk about some of the tools I used to bring the setup time down to around 30 minutes with the added benefit of consistency, including custom post types and a great plugin called posts2posts.
2. Who am I?
Software Engineer @ Magma Digital Ltd
Graduate from Comp Sci Manchester University
WordPress Core Contributor
!
!
!
@stephcook22 / +StephCook / stephcook.co.uk
5. 1. Hope a category is already created
2. Create a new page
3. Copy an existing microsite layout and fill in the bits of content we need.
4. Figure out the category id (not easy!)
5. Create a new widget which only appears on that page showing all the posts in that
category using the id.
6. Create a new contact form with the correct details
7. Create the contact form widget which only appears on that page.
8. Add them to the supplier listing with logo, correct title and link to the microsite.
Setting up a Microsite
6. Why this is a bad solution
●
Very easy to miss steps
●
you need to repeat data a lot - this can cause mistakes
●
means there are a huge amount of categories
●
would be difficult to link back to things (e.g. from post to
microsite)
●
huge amount of widgets
●
each microsite was styled slightly differently since this was done
by hand
●
and it took a whole day...
7. Enter Custom Post Types!
Just like a normal post BUT…
●
make custom variables invisible
●
create your own interface
●
allow custom templates
●
separated in the admin panel