I have a new custom theme for my site. This has little to do with WordPress but is news-worthy nonetheless.
OK, I am customizing the wp-admin Write page to be easier to use for the customer. As it stands, custom fields have to be selected from a drop down menu, and the content has to be placed in the Value field, NOT the Key field. If you put the content in the Key field on accident, it becomes a new category.
Amongst other things, this can be confusing for a client who has little time to mess around with the GUI. I found a great tutorial exactly on this topic here: http://zurnet.com/2007/05/31/extend-wordpress-part-2-admin/ . The author’s part one basically explains exactly what I did in my Pt. 4, so I’m not alone!
There is a plug-in that changes the way Custom Fields are displayed in wp-admin, so that they appear as simple Category: [Content] form fields. Whatever categories aren’t used, simply do not show up on the post. Great. The only variation from the tutorial is to change the conf.ini that author supplied to your own categories.Next I will be doing part three of that tutorial to change custom field categories based on the blog category.
OK, The basics seem to be in order now. The categories have been split into seperate pages. To do this, each page had to be put in the same subfolder. This subfolder has to be the blog root under wp-admin settings. This lets wordpress use ALL categories in the site to be accessed.Also, each category’s page’s “prefix” (in the page inspector) needs to be modified.
Since the base URL is now a sub-folder, the wordpress folder is one more directory up from the base. Add another ../ to the link ’../fjmwordpress/wp-blog-header.php’ to make it a ‘../../’.
Now, in order for the categories to be viewed separately under each page, the guts of the Loop have to be sub-wrapped in another php “if” statement: <?php if ( in_category(’n') ) { ?> …guts… <?php } ?>. So now the Loop says, “If [I have posts], while [there are more posts], and if [the posts are in the category n] > do it.”
To find out the category number, just look at the sidebar on the page and hover over the link to the particular category and you will see which number it is.
Also, some more CSS needed to be incorporated from the WordPress CSS. All lines from /*Begin Images*/ in the default WordPress theme need to be added to each category’s page’s custom CSS in RapidWeaver.