Wordpress - Shortcodes

Wordpress shortcodes allow you to insert content on any Wordpress page. For details on how to use shortcodes, please refer to your Wordpress documentation.

Payment Form v2.0

[supportingcast_purchase]

Show a Supporting Cast purchase form. No sensitive credit card data will pass through your servers.

Attributes

The following attributes may be used to limit the purchase form to only certain plans & products. You may specify multiple values separated by a comma.

  • feed_slug- Filter by feed slug
  • feed_id- Filter by feed id
  • feed_type- Filter by feed type
  • product_id- Filter by product id
  • plan_group_id- Filter by plan group id (see API documentation)

Feed List v1.0

[supportingcast] [/supportingcast]

Show a list of all the feeds the user has access to.

Attributes

  • podcast- Show a specific podcast
  • player- Set to 'false' to disable the web player

Feed List Template v2.0

[supportingcast_feed_list] [/supportingcast_feed_list]

This special shortcode allows you to customize the look of your feed lists. It only works inside of a [supportingcast] [/supportingcast] shortcode.

Example

                        [supportingcast]
    [supportingcast_feed_list]
    <ul class="member-feed__podcast-ul">
        [supportingcast_feed]
            <li class="member-feed__podcast-li">
                <a href="?podcast=[scfeed:slug]">
                    <img alt="?podcast=[scfeed:slug]" src="[scfeed:image_url]">
                </a>
                <div class="member-feed__podcast-copy">
                    <h3>
                        <a href="?podcast=[scfeed:slug]">[scfeed:name]</a>
                    </h3>
                    <p>
                        [scfeed:description]
                    </p>
                </div>
                <div class="member-feed__button-wrapper">
                    <a class="button button__main small" href="?podcast=[scfeed:slug]">
                        Subscribe
                    </a>
                    <p>to member version</p>
                </div>
            </li>
        [/supportingcast_feed]
    </ul>
    [/supportingcast_feed_list]
[/supportingcast]
                    

Feed List Template v2.0

[supportingcast_feed] [/supportingcast_feed]

This special shortcode allows you to customize the look of your feed lists. It only works inside of a [supportingcast_feed_list] [/supportingcast_feed_list] shortcode.

Replacement Symbols

These shortcodes can be used inside of the [supportingcast_feed] [/supportingcast_feed] tags.

  • [scfeed:id]- Feed ID
  • [scfeed:name]- Feed name
  • [scfeed:description]- Feed description
  • [scfeed:slug]- Feed slug - a unique string used to identify the feed
  • [scfeed:url]- Feed URL - the RSS feed for the current member
  • [scfeed:image_url]- Feed image URL - the image URL from the RSS feed

Feed Detail Template v2.0

[supportingcast_feed_detail] [/supportingcast_feed_detail]

This special shortcode allows you to customize the look of the feed detail page. It only works inside of a [supportingcast] [/supportingcast] shortcode.

Replacement Symbols

These shortcodes can be used inside of the [supportingcast_feed_detail] [/supportingcast_feed_detail] tags.

  • [scfeed:id]- Feed ID
  • [scfeed:name]- Feed name
  • [scfeed:description]- Feed description
  • [scfeed:slug]- Feed slug - a unique string used to identify the feed
  • [scfeed:url]- Feed URL - the RSS feed for the current member
  • [scfeed:image_url]- Feed image URL - the image URL from the RSS feed

App List Template v2.0

[supportingcast_apps] [/supportingcast_apps]

This special shortcode allows you to customize the look of the app links. It only works inside of a [supportingcast_feed_detail] [/supportingcast_feed_detail] shortcode.

Replacement Symbols

These shortcodes can be used inside of the [supportingcast_apps] [/supportingcast_apps] tags.

  • [scApp:slug]- App slug
  • [scApp:scheme]- App scheme (e.g. podcast://)
  • [scApp:image_file_name]- App image file name (for self hosted images)
  • [scApp:name]- App name
  • [scApp:device]- Device type ('desktop' or 'mobile')
  • [scApp:notes]- Device notes, if available
  • [scApp:url]- App Url used to add the feed
  • [scApp:image_url]- App Image URL (full URL, hosted by Supporting Cast)
  • [scApp:if_notes] [/scApp:if_notes]- Conditional - show content if there are notes

Change Credit Card v2.0

[supportingcast_change_card]

Show a form to change the credit card associated with the account. This will register the card with Stripe and send the new card ID to Supporting Cast to set it as the member's default payment method. No sensitive credit card data will pass through your servers.

Change Plan v2.0

[supportingcast_change_plan]

Show a form to change the plan the member is associated with. If they choose a paid plan and do not have a credit card on file they will be asked to add one.

Login Form v2.0

[supportingcast_login]

Show a login form.

Attributes

  • redirect_url- Send the user to a specific page after they login

Logout Page v2.0

[supportingcast_logoff]

Create a logout page. You should either display a "You have been logged out" message or use the redirect_url attribute to send them to another page.

Attributes

  • redirect_url- Send the user to a specific page after logging them out

Conditional - If member v2.0

[supportingcast_if_member] [/supportingcast_if_member]

Only show the contents if the user is a member.

Conditional - If not member v2.0

[supportingcast_if_not_member] [/supportingcast_if_not_member]

Only show the contents if the user is not a member.