Jump to content
Sign in to follow this  
lenc

Category Descriptions

Recommended Posts

Dominic

Hey Andrew, I was just thinking I'd like to do the same -- any idea of how to make this happen in PlatformPro? I'm using it to make a website for my wife's class and would like to put the category description above the posts so that the info doesn't need to be repeatedly entered: http://blipstr.com/myfavoriteteacher/category/spelling/

Share this post


Link to post
Share on other sites
cmunns

I would try and locate the section.postsinfo.php file and add a touch of code to that file...but first let's have you copy it over to the Base child theme so it's safe to edit.

Share this post


Link to post
Share on other sites
Dominic

I copied the section.postinfo.php file over to /platformbase/sections/wp (had to make the wp directory) from /platformpro/sections/wp/ What code should I add?

Share this post


Link to post
Share on other sites
bryan-hadaway

Marked for developer input. Thanks, Bryan

Share this post


Link to post
Share on other sites
cmunns

Look for the conditional for category and add the description line that I have here: ` <?php elseif(is_category()):?> <?php _e("Currently viewing the category: ", 'pagelines');?> "<?php single_cat_title();?>" //this line of code below <?php echo category_description(); ?> `

Share this post


Link to post
Share on other sites
Dominic

Do I make the changes to the file in platformbase or platformpro. And if it is platformbase, how do I point the theme to use that file instead of the original?

Share this post


Link to post
Share on other sites
Kate

Hi Dominic - Definitely make the changes in platformbase. And, it should pick it up automatically. If you need anything else, let us know.

Share this post


Link to post
Share on other sites
rpacker
I just found this thread, and would also like to display the category description on category pages, but I can't figure out where the above mentioned code is supposed to be inserted into platform base: ` "" //this line of code below `

Randall Packer

Multimedia Artist & Educator

http://www.randallpacker.com

Share this post


Link to post
Share on other sites
Rob
Russell, Which theme do you have? This topic was started about iBlogPro (a previous version) and that instruction it seems was related to PlatformPro.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
rpacker
I have Platform Pro, and I just followed the above instructions, but it didn't work. Any ideas?

Randall Packer

Multimedia Artist & Educator

http://www.randallpacker.com

Share this post


Link to post
Share on other sites
Rob
Okay. With PlatformPro, you would need to download section.postsinfo.php from wp-content/themes/platformpro/sections/wp to your desktop. Look inside that file for: [code]function section_template() { if(is_category() || is_archive() || is_search()): ?> [/code] Add the code provided by cmunns below that. Save the file and upload to wp-content/themes/platformbase. I'm unsure if you're going to need to add a hook into functions.php to include that section. It's possible you might.

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×