WordPress.org

Ready to get started?Download WordPress

Forums

myCRED
[resolved] Shortcodes inside shortcodes. (7 posts)

  1. dambacher
    Member
    Posted 1 year ago #

    When using shortcodes inside the myCRED sell this shortcode, the shortcode content is not parsed.

    e.g.

    [mycred_sell_this price="1" button_label="Purchase"][video src="http://mysite.com/mymedia.mp4"][/mycred_sell_this]

    The video shortcode displays raw.

    Thanks

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

  2. Gabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Have you tried adding a new line between the shortcodes? i.e

    [mycred_sell_this price="1" button_label="Purchase"]
    
    [video src="http://mysite.com/mymedia.mp4"]
    
    [/mycred_sell_this]
  3. dambacher
    Member
    Posted 1 year ago #

    Yes, doesn't seem to help.

  4. Gabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Which plugin are you using to get that video shortcode?

  5. dambacher
    Member
    Posted 1 year ago #

  6. Gabriel
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks. I found the issue and will include a solution in the next update. You can resolve the issue until then by editing the mycred/addons/sell-content/myCRED-addon-sell-content.php file and on lines 604 and 680 replacing: return $content; with: return do_shortcode( $content );.

  7. dambacher
    Member
    Posted 1 year ago #

    Ah, thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.