Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hi I run a site gaming review site www.co-opreviews.com. I'm trying to display info about the games in a sidebar on the right hand side of the page.

(You can view a mockup of the sidebar here: http://i.stack.imgur.com/u3s5b.png)

I'm currently doing this through multiple sidebars (which my theme allows) and using a plaintext widget displaying the info through some rough HTML. However for 50+ games I'd require 50+ different sidebars and I'd have to replace the date, rating etc. all manually-- a cubersome and also fairly crude solution.

I believe there is a way to make inserting the information easier with custom post types but all my current reviews are simply normal posts.

Any help with my problem would be appreciated!

share|improve this question

1 Answer 1

up vote 0 down vote accepted

You don't need CPT's to display custom information. You could use custom fields (you may need to enable them in the screen options at the top of the post edit window). You'd just need to include the custom fields in your loop but position them so they appear over the sidebar. Their information would be related to the post their on and you wouldn't need to create a new sidebar for each post.

The same thing could be achieved with custom meta boxes. I've heard good reviews on the plugin below but haven't used it myself. http://wordpress.org/extend/plugins/verve-meta-boxes/

Adding to what you have mentioned below it is possible to add a description to a tag so you could just format all of the extra information in the description field and use get_the_tags to call the information you want. Then you'd just have to add the tag you wanted to the post.

Taking it a step further you're probably better off registering a new taxonomy (Game) setting it up so it works like a tag and calling the description of that. Then you won't be cluttering up your normal post_tags with the game names and it will be easier to call the description on only that taxonomy instead of all tags (and trying to exclude the ones you don't want). This would also let you use the new taxonomy in other spots in the site and thus relate multiple types of content (if you ever decided to add a new content type).

share|improve this answer
    
I'm using Verve but I realise that this will mean that I have to input this information for every post I make - I frequently make multiple posts about the same game and the info sometimes changes. Is there some way to have a centralised set of info I can bestow upon a post? –  Co-Op Reviews Mar 10 '11 at 18:51
    
If you have a page for each game you could tie that info to the page and get the info for each post with a tag "x." I'm not sure if you can add additional meta data to a tag. That would be the ideal solution. –  marvinhagemeister Mar 10 '11 at 19:30
    
Unfortunately, I don't have a page for each game. I'm assuming any solution would be infinitely more complex than just putting the information in multiple times? –  Co-Op Reviews Mar 10 '11 at 19:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.