WordPress.org

Ready to get started?Download WordPress

Forums

How come get_links function does not match the cal (4 posts)

  1. Laughinglizard
    Member
    Posted 10 years ago #

    How come get_links function does not match the call?

  2. Laughinglizard
    Member
    Posted 10 years ago #

    Sorry, the hit the wrong button,
    here is the code for the function prototype:
    function get_links($category = -1, $before = '', $after = '
    ',
    $between = ' ', $show_images = true, $orderby = 'name',
    $show_description = true, $show_rating = false,
    $limit = -1, $show_updated = 1, $echo = true)
    here is the call in index.php
    get_links(-1, '

  3. ', '
  4. ', '', 0, '_rating', 0, 1, -1, -1)
    The function has 11 incoming variables and the call only uses 10. Am I seeing this wrong?

  • otaku42
    Member
    Posted 10 years ago #

    You might want to take a look at the php manual regarding default argument values :)

  • Laughinglizard
    Member
    Posted 10 years ago #

    :-) I should have looked. Thanks....thread closed. I will try to post some good descriptions of the links functions soon, thats where this question comes from.

  • Topic Closed

    This topic has been closed to new replies.

    About this Topic

    Tags

    No tags yet.