• Resolved SiteSubscribe

    (@sitesubscribe)


    Feature request: use smartblock slug within shortcode

    Love the plugin. I really like the fact that it uses CPT and supports both shortcodes and widgets.

    When using shortcodes, if you come back later and look at the shortcode used to insert a smart-block it is hard to tell what content you are inserting.

    [smartblock id=4087] doesn’t tell you what it is unless you go look up your smart-blocks (very tedious) or put a comment within the page along with the shortcode.

    It would be nice to be able to use:
    [smartblock id=’my-smartblock-slug’]

    Thanks,
    Jeff

    http://wordpress.org/extend/plugins/smart-wysiwyg-blocks-of-content/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Coen Jacobs

    (@coenjacobs)

    Thanks for this feature request. It does make sense to me, I will add it in the next version of this plugin with a second parameter. If id is provided, it will use that, if slug is provided and id is not it will use the slug parameter.

    It will be available in the next release of the plugin.

    Thread Starter SiteSubscribe

    (@sitesubscribe)

    Cool, thanks!

    That’s exactly how I envisioned it should work.

    Hi Coen,

    changed your short code a little to get it working in my category theme. Since the “default” slug argument is for a single post, it makes sense to turn the if statement (if slug use slug and otherwise use the ids)

    I hope that I don’t get punished while posting the code here 🙂

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    I can’t seem to get the slug to work. I use [smartblock id=services-offered] & [smartblock slug=services-offered] both WITH & without single & double (‘ & “) quotation marks.

    What am I doing wrong to get it to recognize the slug option described above?

    Plugin Author Coen Jacobs

    (@coenjacobs)

    This is not something that is released already, it will be available in the next release.

    ok. Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Smart WYSIWYG Blocks Of Content] Feature request: use smartblock slug within shortcode’ is closed to new replies.