Since version 1.8 WordPress theme Thesis allows you to enter text on any tag and category pages, this is an excellent feature and replaces the custom code that I built to do just this.
You can see an example here.
This allows WordPress users to create a more useful page out of their category listings, you can provide some extra links and some background to that category. This is also great for search engines as it gives them something more to index.
Introductory Headline and Introductory Content Not Showing Up
The first time I tested this new feature I found that the entered “Introductory Content” text wasn’t actually displaying. Not good.
Some investigation showed that the problem only occurred when I included a little bit of custom code in my “custom_functions.php” script.
add_filter(‘thesis_archive_intro’,'my_function’);
I had added a small piece of custom code (in fact it’s something I will be phasing out) via the thesis_archive_intro filter and it was this that was causing the Introductory Content to fail.
Further experimentation revealed the answer. The call back function that is execute (ie my_function) accepts a parameter that contains the text that would normally be seen (the header and the Introductory Content), all I had to do was make sure this was still displayed.
For example:
function custom_archive_info($output) {echo “$output”;//do some other stuff}
And with that change I found everything was appearing as it should once more.
Related posts: