Hello all.
I'm trying to change how posts are shown in category pages, customizing the thematic_category_loop action with my own function, but it looks that I'm missing something, as nothing happens.
I've also tried to comment the "thematic_categoryloop();" call on category.php, but I'm still seeing the loop's contents.
So I did the same on the index.php (just to check) and I still see the loop's contents.
My code is below, however, I think that, before checking my code, I must understand which action I must work on.
To be clear, I want to remove meta data, "more" link (with full contents) and thematic_postfooter contents from http://www.disform.org/argomenti/dove-lavora-disform/ (that is supposed to show all posts from "dove-lavora-disform" category).
This is my code on functions.php:
function remove_category_loop(){ // its an action not a filter so first remove the thematic action
remove_action('thematic_categoryloop', 'thematic_category_loop');
}
add_action('init','remove_category_loop');
// The Custom Category Loop
function disform_category_loop() {
while (have_posts()) : the_post(); ?>
<div id="post-<?php the_ID(); ?>" class="<?php thematic_post_class(); ?>">
<?php thematic_postheader_posttitle(); ?>
<div class="entry-content">
<?php thematic_content(); ?>
</div>
<?php thematic_postfooter(); ?>
</div><!-- .post -->
<?php endwhile;
}
add_action('thematic_categoryloop', 'disform_category_loop');