Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
  • Mathematica

    I would like to use the shortcode [wpsr_share_icons template=”1″] in a template or reusable code and share the content of the page where the template is inserted.

    I tried doing this with Templatera ( or the custom Post Type “Reusables” in the 907 theme http: //, to be able to modify in one place the shortcode, the layout around the share icons, etc.

    However, I still have the same problem: by clicking on a share icon, the shared content is that of the template and not that of the page where the template is inserted.

    I think the problem is that the code stored in the shortcode get exceuted in the template and not in the page that uses the template.

    Any idea will be welcome 🙂
    I thank you in advance for your response.

    Hi @Mathematica

    Thanks for using WP Socializer.

    It seems strange. May be as you guessed, the shortcode is getting executed by the template.

    I’m not sure how this “templatera” works nor I use WP bakery that is not a free plugin.
    But I can assess the issue faster or provide workaround if you can have a live look at the website.

    Can you please create a temp admin user and share the the details via contact form ?


    If you are new to this, you can also use plugins like to restrict certain pages and let me use only the pages you need me to see.



    Thank you very much for your very quick response.
    I sent you links by the contact form and some details.


    Hi @Mathematica,

    I saw the links you have shared.

    It seems there is no other way other than the templates “not executing” the shortcode.

    This is common to all shortcodes or other sharing plugin which provides shortcodes.
    Since the shortcode is executed in the context of the template, the URL is incorrect.

    Can you please check with yout theme developer if their “resuables” can stop executing the shortcode in the template ? but execute it only when used in a post ?


    Thanks again for your answer.

    I will ask the developer about the execution of the code contained in a template.

    I have one last question however: can your “shortcoder” plugin help me ie help me create a place where I can globally modify a piece of code containing the shortcode [wpsr_share_icons template = ”1 ″] ?

    Have a nice day.

    Hi Mathemetica,

    I think a plugin called “shortcoder” is there just to solve issue like this, where users can create a shortcode for HTML/CSS/JS/Shortcode snippets.

    Shortcoder — Create Shortcodes for Anything

    It is one of my other plugin.
    You can create a shortcode, with above sharing shortcode itself as a content and then use the “shortcoder” created shortcode to use in posts and pages.



    Thanks a lot for your answer.

    I tried your “shortcoder” plugin and it works fine. It does exactly what I wanted: I can edit the content of 100 pages in one place! Extraordinary !!
    Thank you very much, your plugin is a very good idea!


    Cheers !


    Thank you!

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

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter