WordPress.org

Ready to get started?Download WordPress

Forums

SendPress Newsletters
[resolved] shortcode in a custom sidebar (5 posts)

  1. carlytx
    Member
    Posted 1 year ago #

    we are using custom sidebars, not widgets. Is there code available (equivalent to the shortcode) to insert into a custom sidebar? or is there a way to make the shortcode work in the sidebar? thanks

    http://wordpress.org/extend/plugins/sendpress/

  2. itdoug
    Member
    Plugin Author

    Posted 1 year ago #

  3. carlytx
    Member
    Posted 1 year ago #

    thanks but I don't think that you can place a shortcode into a custom sidebar. I think you need the actual code behind the shortcode. This morning I viewed the source of the code generated by the shortcode (source view in browser) and will try to paste that code into the custom sidebar and see if that works.

  4. Josh Lyford
    Member
    Plugin Author

    Posted 1 year ago #

    You should be able to use this:

    http://codex.wordpress.org/Function_Reference/do_shortcode

    if you are trying to use the shortcode in php it would be something like:

    echo do_shortcode('[sendpress-signup listids="1"]');

    best,
    Josh

  5. carlytx
    Member
    Posted 1 year ago #

    thanks Josh that worked

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic