Support » Fixing WordPress » custom post descriptions

  • jtancil

    (@jtancilyahoocom)


    Hello,
    I have created a page that uses custom posts: http://www.africanhealthleadership.org/resources/toolkit/

    Each tool (Preparation, Assessment, etc.) is a custom post. On the WP Admin, each tool is a category; each category has a “description” field. I would like to output those descriptions on the Toolkit page. I tried using this and nothing displayed:
    <?php echo category_description( $category ); ?>

    Right now, the descriptions are hard-coded in to the page. The one for preparation begins
    “Preparation tools establish…”

    Thank you for any ideas!
    Jeff

Viewing 2 replies - 1 through 2 (of 2 total)
  • Each tool (Preparation, Assessment, etc.) is a custom post. On the WP Admin, each tool is a category;

    Not clear for me : is it a custom post or a category ?

    If it’s a post, you could use editor for the big text (the_content) and excerpt for the description-preview (the_excerpt : check spelling, I never get it right)

    As the big text is just desc + a list, you could even simplier put a “more” separator in you editor and have an automatic exerpt

    jtancil

    (@jtancilyahoocom)

    Thanks for the reply. It’s a custom post. Like a regular post, custom posts can have categories. Does that clarify?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom post descriptions’ is closed to new replies.