WordPress.org

Ready to get started?Download WordPress

Forums

getting a "fatal error" msg! Help (2 posts)

  1. moonchies
    Member
    Posted 5 years ago #

    I've installed a new theme called Accountant which is available at http://www.mbwebdesign.co.uk/accountant-wordpress-theme/

    Whenever I click on any page other than the homepage, it's says:

    Fatal error: Call to undefined function get_the_tags() in /home2/eddy/public_html/wp-content/themes/accountant/functions.php on line 27

    Here is the coding for that section:

    // Category for the post queried
    foreach ( (array) get_the_category() as $cat )
    $c[] = 'category-' . $cat->slug;

    // Tags for the post queried; if not tagged, use .untagged
    if ( get_the_tags() == null ) {
    $c[] = 'untagged';
    } else {
    foreach ( (array) get_the_tags() as $tag )
    $c[] = 'tag-' . $tag->slug;

    I'm new to all this so I have no idea what to do. There is a tags.php as well but I have no idea what to look for in that file.

    Please help!

    Thank you!

  2. leadandfollow
    Member
    Posted 5 years ago #

    What version of WordPress are you using? I think tags, or at least these functions, were added in version 2.3.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.