help with functions.php (4 posts)

  1. aimeec
    Posted 12 years ago #

    Hi. I'm really new and really stupid. :-)
    So I've got one of 'em plugins and I need to add a new function :written below
    function get_authors($postCount = true, $excludeAdmin = true, $showFullName = false, $detailLink = '')
    Question: Where do I insert this function at functions.php, right?
    I tried that but I got the error message: Parse error: parse error, expecting `T_VARIABLE' in /mnt/web_i/d20/s35/b01e3d7c/www/asiatravel/wp-includes/functions.php on line 1773
    any ideas?

  2. Mark (podz)
    Support Maven
    Posted 12 years ago #

    I think, if you read the readme that came with the hack, that function call goes into index.php

  3. aimeec
    Posted 12 years ago #

    I've tried that but it isn't there. What I would like to know is that if I add a plugin/hack, should I add the function in the functions.php found in wp-includes, or should I make a new file with all plugin functions in it?

  4. aimeec
    Posted 12 years ago #

    thanks anyway, podz. I'm still trying to tweak it, but nothing's happening. :-(. I should wait for Lennart's reply

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.