ThemeShaper Forums » Thematic


custom postheader

(4 posts)
  • Started 10 years ago by atelierelealbe
  • Latest reply from atelierelealbe
  • This topic is resolved
  1. I have in funtions.php this code:
    function my_postheader() {
    $postheader = thematic_postheader_posttitle();
    return $postheader;
    add_filter('thematic_postheader', 'my_postheader' );

    I need to get also a nice div with all the categories attached to that post and also all the tags. I'm stucked, as get_the_category($post->ID) works only outside the custom loop. Any help, please?

    Posted 10 years ago #
  2. code for the categories list and the tags list is in the postfooter. you can take a look at it in library/extensions/content-extensions and copy what you need into your functions file.

    also wp_list_categories might help:

    Posted 10 years ago #
  3. I think i found a solution, dirty one:

    function formula_indexloop() {
    if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div id="post-<?php the_ID() ?>" class="<?php thematic_post_class() ?>">
    <?php thematic_postheader();?>
    <div class="postmetadata">
    <span class="titlecategories">
    <?php the_category() ?>
    <span class="titletags">
    <?php the_tags('

    • ', '
    • ', '
    '); ?>
    <div class="more">
    ">Open this formula
    <?php endwhile; else: ?>
    <p>There's no formula yet to show!</p>
    <?php endif;

    You can see it in action here.

    Posted 10 years ago #
  4. I've tried already wp_list_categories but i couldn't restrict its output to current post, all this inside the loop. Thanks anyway

    Posted 10 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.