• pressup

    (@pressup)


    I am using WordPress 2.5. I am having difficulty trying to add_filter the_tags. To illustrate, please look at the test code snippet below:

    function add_info_the_tags($content)
            {
                echo "It Works!";
            }
    
        	add_filter('the_content', 'add_info_the_tags', 1);
    
        	add_filter('the_title', 'add_info_the_tags', 1);
    
        	add_filter('the_tags', 'add_info_the_tags', 1);

    The first two add_filter worked fine (for ‘the_content’ and ‘the_title’) but the last one did not work (‘the_tags’).

    Please help, thanks.

    Jason

Viewing 1 replies (of 1 total)
  • Thread Starter pressup

    (@pressup)

    Somehow I get the feeling that it is undocumented but add_filter does not work with the_tags. It’s just strange that nothing in my function executes — I am sure due to WP not allowing the call.

    I suppose I’ll just have to modify the DB directly.

    Jason

Viewing 1 replies (of 1 total)
  • The topic ‘add_filter(‘the_tags’ … does not work, please help!’ is closed to new replies.