Welcome to WebmasterWorld Guest from 23.20.137.66

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Can A Category Have Two Descriptions (or a custom field)?

Want text to appear above AND below list of posts

     
1:30 am on Mar 30, 2012 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Hi there, Everyone:

Is there a way on CATEGORY pages to have text that appears Above the loop of posts, and different text below the loop of posts?

I want my page to look something like this:

Category Description Text
Links to posts
More Text

I tried this plugin:

Category Custom Fields

But it doesn't seem to be compatible with WP 3.3.1 as you can't ADD a custom field to a category that already exists (you have to add the custom field at the time you CREATE the category).

Thanks in advance.
1:41 am on Mar 30, 2012 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



You can if you create your own template. [codex.wordpress.org...]
1:52 am on Mar 30, 2012 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



You can if you create your own template.


Lorax, surely you jest. I have a hard enough time trying to remember to put on pants before heading out the door.

I might try a plugin called headspace 2, as there is a description here:

[iamseo.org...]

I will report back.
2:00 am on Mar 30, 2012 (gmt 0)

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



LOL - twas not jesting but I completely understand. Let us know how it works out for you.
2:46 am on Mar 30, 2012 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



Well, headspace2 seems to be working, but it is a bit of overkill.

It's one of those "all-in-one" SEO plugins. So there are dozens of different settings. Although apparently you can disable the ones that you don't want and it won't add to the overhead.

The other drawbacks are that you can't specify that the custom field input should ONLY appear on the Category admin pages (it shows up on the Post admin pages, too).

The other thing is that the input field is only kind of a small text field (it would be nice if it had it's own editor, but I guess you could edit what you want in the description input text box, then cut and paste into the custom field text input.)
4:34 am on Apr 30, 2012 (gmt 0)

WebmasterWorld Senior Member planet13 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month



I wonder if anything else has turned up in the meantime.

I need to add some footer content to a category, but headspace2 is probably NOT the ideal way to do that (the textbox is tiny, and pasting lots of html code into it is mind numbing).
7:06 pm on Jun 4, 2012 (gmt 0)

10+ Year Member



You can do something simple like adding the two descriptions in the Description field, and putting a delimiter between each description.

The category description top|The category description bottom.

<?php
$data = category_description();
list($catdescriptiontop,$catdescriptionbottom) = explode("|", $data);

?>

... then just echo esc_html ( $catdescriptiontop );
echo esc_html ( $catdescriptionbottom );

where you want each description to appear.

edit archive.php
3:37 pm on Jun 5, 2012 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



So the approach I mentioned here [webmasterworld.com] doesn't work for you?
5:46 pm on Jun 5, 2012 (gmt 0)

5+ Year Member



I usually do the custom coding thing myself to have finer control, but if I recall, there is a plugin named "Category Page" (http://wordpress.org/extend/plugins/page2cat/) that allows you to assign a "page" to the head of a category. Maybe there are some functions you can siphon off to get what you need?

It may even provide some functionality that allows you to write a full page, use shortcodes to cycle through your posts, then add more content below.

Disclaimer: I am not associated with the plugin, and I haven't used it in a long time. Do your own diligence.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month