enter image description here

I’m altering a plugin on developer recommendations (http://premium.wpmudev.org/forums/topic/appointments-service-categories, See latest post), which advices to write a bit of Javascript in the functions.php of WordPress.

Now, when I did that my whole wordpress went blank. Well, after a bit of thinking.. “You can’t write plain Javascript inside of PHP”..

So I wrote them inside a tag, and that inside of a echo ", "; tags. Now.. I’m unsure of the function working (have not tested that yet), but WordPress is showing again, but.. I’m getting the message

Notice: Undefined variable: group in /home/appelhulp/domains/appelhulp.nl/public_html/wp-content/themes/Divi/functions.php on line 8
Notice: Undefined variable: option in /home/appelhulp/domains/appelhulp.nl/public_html/wp-content/themes/Divi/functions.php on line 9
Notice: Undefined variable: option in /home/appelhulp/domains/appelhulp.nl/public_html/wp-content/themes/Divi/functions.php on line 25

And this is the code file

So my question:
What is the problem and how do I make those messages disappear?

Read more here: How to write a Javascript function inside the functions.php of WordPress?


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Related Wordpress search:

, , , ,

Wordpress related questions and answers: