Support » Themes and Templates » cover-wp tag links generating undefined function error: catch_that_image()

  • Clicking on any tag (whether in the tag cloud or on a single-post page) produces:

    Call to undefined function catch_that_image() in …/public_html/wp-content/themes/cover-wp/tag.php on line 18

    instead of an archive of everything having that tag.

    Can anyne give me a pointer how to fix?


Viewing 5 replies - 1 through 5 (of 5 total)
  • Emil Uzelac


    Theme Review Admin

    So you have i.e.

    <?php echo catch_that_image() ?>

    in your tag.php and catch_that_image() is the function from functions.php correct? if so make sure that you have the code in it.

    Just update the theme to the latest version. It was a bug that was fixed.

    No “echo” in the php, just a function call, but otherwise yes.
    (This is where the code decides whether there’s a featured image in the post, or if the template will have to supply its own random image.)

    I’ve modified the template enough that I can’t update automatically until I know what files are gonna be touched. Is there a place I can just see the changes, so I can apply them myself? I’m at template version 1.6.3.

    I’ve added a widget position to functions.php; and modified the visible on-screen text that the template had hard-coded in just about every other part (header, sidebar, home, category, tag, archive, single, search); and of course tweaked the css file. (I imagine it might be faster to copy in the missing function than to reapply all my changes.)

    Here’s what you need to change in tag.php:

    Remove what’s highlighted in red and replace with what’s highlighted in green.

    THANK YOU. That’s very clear & I’ll do it right away.

    By the way, I commented out line 18 (that function call), and the template all seems to work fine. I was coming back here to report that when I found your reply. Perhaps it only works fine because of my usage pattern (for example, every post has exactly one featured image and no others, etc.)

    Anyway, I will apply the rest of the changes. Thank you so much for the reference to trac. I didn’t know about that resource before. It’s terrific. Thank you very much.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘cover-wp tag links generating undefined function error: catch_that_image()’ is closed to new replies.