WordPress.org

Ready to get started?Download WordPress

Forums

Social Stickers
[resolved] Warning: Missing argument 1 for display_social_stickers(), (3 posts)

  1. monsieurbaron
    Member
    Posted 1 year ago #

    Hello,

    I've some minor troubles with this plugin.
    I originally installed another social medi plugin. But it didn't suit my needs. So I've switched to yours.
    I've installed it, configured it and used the function calling in my php code ( <?php display_social_stickers(); ?> )
    It was working really well, so I was happy. But i've noticed that the precedent plugin wasn't shut down. And when I did it a prompt has appeared on top of my social icons :

    Warning: Missing argument 1 for display_social_stickers(), called in /homez.322/lescroc/www/wp-content/themes/sideswipe/header.php on line 110 and defined in /homez.322/lescroc/www/wp-content/plugins/social-stickers/social-stickers.php on line 812

    When I reactivate the other social media plugin, the prompt disappears and everything's alright.

    Can you figure out why ?

    Best regards.

    http://wordpress.org/extend/plugins/social-stickers/

  2. BoĊĦtjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    It is meant to be used as a widget. If your theme does not have widget support, then use the following to call it:

    <?php display_social_stickers(false); ?>

    This should solve the problems with the missing argument.

    It seems I forgot to update the readme instructions for the users that use it in non-widget mode :)

  3. monsieurbaron
    Member
    Posted 1 year ago #

    It works !! Thank you so much ;)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic