A quick note for anyone else who was using the thesis_hook_archive_info plugin and has found their custom code no longer working!
The old hook has been removed, but don’t worry – the update is very simple, just comment out your old code and add the following, your custom_functions.php should end up a bit like:
//remove_action(‘thesis_hook_archive_info’, ‘thesis_default_archive_info’);
//add_action(‘thesis_hook_archive_info’, ‘my_function’);add_filter(‘thesis_archive_intro’,'my_function’);
Related posts:
{ 3 comments… read them below or add one }
Lots of thank you for this information. :)
Hi – I’m really struggling to get this going. Not sure if I’m doing something incorrect or not. When I apply your code – with the update above – the only thing that seems to happen is the title of the category disappears from the page.
Nothing from my template seems to have and effect on the category page.
Thanks for any insight!
What are you trying to do, add content to the top of each cat or tag page?
This functionality is now built into Thesis, you don’t need this hack anymore. Just edit your category / tag and you’ll see a text box with something like “introductory content”. Whatever you type in there will appear in your page.
But, for what it’s worth, if the cat title disappears this means you have prob activated the hook correctly but your function isn’t returning anything for it to show. At least that’s the prob I had when I first tried this!