Jetpack's popular posts & pages widget gives Missing argument error

Home Forums Support Jetpack's popular posts & pages widget gives Missing argument error

Home Forums Support Jetpack's popular posts & pages widget gives Missing argument error

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #206658
    Suzanne

    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!

    #206709
    Tom
    Lead Developer
    Lead Developer

    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/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.