ThemeShaper Forums » Thematic

Manipulating the archive loop?

(2 posts)
  • Started 4 years ago by oskar@lyf.dk
  • Latest reply from Chris
  • This topic is not resolved
  1. Hi,

    I'm trying to manipulate the archive loop (it's a page listing all posts with a specific tag) with the following code:

    function remove_archive_loop() {
    remove_action('thematic_archiveloop', 'thematic_archive_loop');
    }
    add_action('init', 'remove_archive_loop');

    function the_archive_loop(){
    echo 'bacon';
    }
    add_action('thematic_archiveloop', 'the_archive_loop');

    I don't see anything happening but I'm kinda shooting in the dark with all the names. Where do I check if they're correct? The code works on my frontpage if I exchange "archiveloop" with "indexloop" which means what?

    Thanks.

    Posted 4 years ago #
  2. You need to change the tag loop :)

    Try this:

    function remove_tag_loop() {
    	remove_action('thematic_tagloop', 'thematic_tag_loop');
    }
    add_action('init', 'remove_tag_loop');
    
    function the_tag_loop(){
    	echo 'bacon';
    }
    add_action('thematic_tagloop', 'the_tag_loop');

    Chris

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.