December 10, 2012 at 9:24 am #4173
I've used the tutorial here (http://my.studiopress.com/tutorials/category-blog-page/) to create a custom archive page, but now I'd like to stylize that page differently than other archive pages, i.e. change post title styles and the order in which they appear - where/how can I do that?
December 10, 2012 at 11:04 am #4190
If you provide a link to the site, and the specific page, that will help us help you.
The post title style can be changed in your style.css file, but the order in which the posts appear is modified in your page template.
December 10, 2012 at 11:28 am #4193
Thanks. Sorry, I always forget that part. The site is here: http://www.ibsltd.ca/pub/fredericton_royals/.
What I'm hoping to do is create individual posts for players past and present and then create archive pages for each letter of the alphabet. I don't want the player archives to show the post titles as H1 - I'd prefer something much smaller, and I'm unsure how/where to set styles to be unique to a specific archive template.
Do I need to create a 2nd template other than 'Blog' perhaps called 'Players' for example and style accordingly?
December 10, 2012 at 11:43 am #4201
I'm thinking that creating a custom post type called 'player' is going to be your best bet, and then use a page template(s) that queries that CPT.
Styling will be easier to figure out once you actually have some posts in place and then you can figure out the specific class or classes you need to use.
That's an interesting use of WP-Table Reloaded on your Player Stats Archive. Are you going to manually link each one of those cells to the archive for that letter?
December 10, 2012 at 11:48 am #4203
Thanks for the scoop. I've never created custom post types before, but no time like the present to learn, right?
Yes, I was going to link those letters in the table to player archives - I'm using the Tables Reloaded Plugin for all the stats tables on the site so figured it was the easiest way to accomplish that - unless you have better suggestion?
December 10, 2012 at 12:15 pm #4215
Once you start using CPTs your WordPress possibility horizons will expand considerably - I highly recommend using them.
I've had good experiences with a plugin called Taxonomy Picker and using the provided widget in a sidebar. Here's one example of that: http://aheartforjustice.com/organizations/ (it's the "Search Organizations" widget)
When you create your CPT you'd need to create one or more taxonomies to go with it, and one taxonomy could be "name" or something similar, and then you'd add terms (just like tags or categories), with each term being a letter of the alphabet. From then on it's dynamic and does the filtering for you, as long as you "tag" a post with the right term.
Once you wrap your brain around how CPTs, taxonomies, and page templates all work together, you can do all kinds of cool WordPress stuff.
You must be logged in to reply to this topic.