• Resolved iamfantastikate

    (@iamfantastikate)


    Here is my code on pastebin. I’m already using is_user_logged_in on homepage content, so I know I have that right, and my_tag_text_callback works, so long as is_user_logged_in isn’t used with it.

    When I try to pass that page with the tag cloud through the is_user_logged_in function, I receive the following error, repeated for each tag from the tag cloud:

    Warning: call_user_func(my_tag_text_callback) [function.call-user-func]: First argument is expected to be a valid callback in website.com/wp-includes/category-template.php on line 684

    Line 684 of category-template.php is this:

    $a[] = "<a href='$tag_link' class='tag-link-$tag_id' title='" . esc_attr( call_user_func( $topic_count_text_callback, $real_count ) ) . "' style='font-size: " .

    Anyone have any idea what’s going on here?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Changing topic_count_text_callback when using is_user_logged_in results in error’ is closed to new replies.