WordPress.org

Ready to get started?Download WordPress

Forums

Social Stickers
[resolved] Does this plugin really works inside theme core? (6 posts)

  1. filete
    Member
    Posted 1 year ago #

    Hi there,

    I am trying to use Social Stickers inside my core theme files - ex (header.php),
    but it looks the short codes don´t work there. I get nothing....
    just the plain text:

    {$stickers_start} {$sticker_img_32} {$stickers_end}

    I´ve use different ways, inside and outside loop, so something is broken,
    or I am not doing the right way. Would be great to have more instructions on this plugin for custom code.

    Thanks.

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

  2. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    You can not use a shortcode outside a post or page, I think.

    $options = get_option('social_stickers_settings');
    // Now depending on if you have a custom HTML output or not
    $stickers_custom = social_stickers_custom_html_show($options);
    $stickers = social_stickers_general_html_show($options);
    // Choose only one of the above to output, this is just an example
    echo $stickers_custom;
    echo $stickers;

    This is it.

    Cheers.

  3. worthdesigning
    Member
    Posted 1 year ago #

    Further to this ... to get more downloads would be good to provide this in your FAQ.

    I want to put some code in my header area. Where is the documentation on this. A lot of people are not WP experts.

    You have provided a shortcode but no php template code.

    Cheers

  4. Boštjan Cigan
    Member
    Plugin Author

    Posted 1 year ago #

    Noted.

    What would you like to have in the documentation? What is missing besides the things that are written in the Other notes section?

    Cheers.

  5. worthdesigning
    Member
    Posted 1 year ago #

    Hi Bostjan,

    Thanks for the ultra-quick reply!

    You say this on the Installation tab ...
    Add the widget, call the function anywhere in your theme or use a shortcode [social_stickers].

    "Call the function anywhere in your theme". Where's the documentation for this.

    I just installed the plugin and totally don't get it.
    There's not enough documentation about what your plugin does. Besides fry my brain.

  6. blackpr
    Member
    Posted 1 year ago #

    @AuntyAstro
    Just read the readme.txt at wp-content/plugins/social-stickers

    The function is display_social_stickers()

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic