Archived topic
Jetpack's popular posts & pages widget gives Missing argument error
1 reply · Started by Suzanne on July 5, 2016
Hi,
For this website I want to have a widget with the (linked) titles of blogposts in the sidebar. Since I have Jetpack installed I tried using theirs, but I get an error:
"Warning: Missing argument 2 for my_repair_categories_empty_title() in .../verweij.studioserton.nl/wp-content/themes/generatepress/functions.php on line 694
Warning: Missing argument 3 for my_repair_categories_empty_title() in /home/users/stufsftp/verweij.studioserton.nl/wp-content/themes/generatepress/functions.php on line 694"
Any idea's on solving this? Or maybe you have a better solution for making this list of blogposts?
Thanks!
Hi there,
Those functions don't exist in GeneratePress by default, so I assume you added them in there? If so, I suggest using one of these methods instead of editing the core theme: https://generatepress.com/knowledgebase/adding-php-functions/
As for your question, maybe a plugin like this will help?: https://wordpress.org/plugins/recent-posts-widget-extended/
