Title: Function with arguments is not working
Last modified: August 22, 2016

---

# Function with arguments is not working

 *  [JackTheKnife](https://wordpress.org/support/users/scyzor/)
 * (@scyzor)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/function-with-arguments-is-not-working/)
 * I have used functions with arguments which looks like:
 * `collapsArch('linkToArch=false&expandCurrentYear=false&showPages=true');`
 * but result which I see is not what I can get with the widget with same settings.
   First opening and closing `ul` tag is missing when function is used, second it
   looks like arguments are not recognized by that function.
 * Any clue?
 * Thanks
 * [https://wordpress.org/plugins/collapsing-archives/](https://wordpress.org/plugins/collapsing-archives/)

Viewing 1 replies (of 1 total)

 *  Thread Starter [JackTheKnife](https://wordpress.org/support/users/scyzor/)
 * (@scyzor)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/function-with-arguments-is-not-working/#post-5534371)
 * Also expand/collapse characters are not working when function was used instead
   of a widget.

Viewing 1 replies (of 1 total)

The topic ‘Function with arguments is not working’ is closed to new replies.

 * ![](https://ps.w.org/collapsing-archives/assets/icon-256x256.gif?rev=2550328)
 * [Collapsing Archives](https://wordpress.org/plugins/collapsing-archives/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/collapsing-archives/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/collapsing-archives/)
 * [Active Topics](https://wordpress.org/support/plugin/collapsing-archives/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/collapsing-archives/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/collapsing-archives/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [JackTheKnife](https://wordpress.org/support/users/scyzor/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/function-with-arguments-is-not-working/#post-5534371)
 * Status: not resolved