Some shortcodes are only available with the use of extensions when using the free edition. Some also require third-party plugins to be installed. More shortcodes are easily created to suit your requirements and more information can be published to help you understand a short-codes abilities, please ask in Discord.
Pro Channel List
Display a well styled list of channels. This shortcode is an all-in-one solution. Rather than multiple shortcodes for different groups of channels, styles and layouts. This one pro-edition shortcode covers all of it by adding applicable parameters.
[twitchpress_shortcodes shortcode="get_game" refresh="5" game_name="Conan Exiles"]
Uses the same endpoint for getting many games but this implantation focuses on getting and outputting a single game. Added to pro beta 0.0.3 on 13th July 2019.
[twitchpress_shortcodes shortcode="get_clips" refresh="5" broadcaster_id="120841817"]
Outputs a list of clips. This short-code will expand on demand so just let me know your specific requirements.
Stream Data (Individual Values)
[twitchpress_shortcode_stream_data channel_name="" value="game_id"]
Displays a single value for a live stream. Use many times in a single page. Only one call is made to the Twitch API for all live stream data. Please be aware that the shortcodes output may not suit your needs when a channel is offline. You should test and discuss your requirements with me.
Here are the available values…
[twitchpress_shortcodes shortcode="get_bits_leaderboard" channel_id="123"]
Outputs the bits leader-board as a HTML ordered list. This is the type of shortcode that will evolve to offer many output options because the early version won’t suit everyone’s needs.
This shortcode will list videos but you can also use it to list the links to the videos. There are various parameters and with custom styling, a lot can be achieved with this.
Top (viewed) Games List
Generate a simple list of top-viewed games. Control the list size using the “total” value. The default total is ten (remove the value). The generated list is cached for one hour.
Display Channel Status
A simple shortcode for displaying the status of a channel with a single word. You might need to get some help styling the output because it is very basic. You can use channel_name or channel_id but not both. The data is cached so either parameter is fine but providing the correct channel_id initially will reduce the number of requests made to the Twitch API.
Display Channel Status Line
This one displays the channel status with some statistics. All content is added to a single line. You have the option of using channel_id or channel_name for this shortcode.
Channel Status Box
Display the status with statistics and all contained within a box (div). Again, the styling is basic and the intention is for you to have it customized to suit your theme. A status box might work well in your sidebar or footer or even just to add some interesting well-placed content to a blog post full of paragraphs.
Services Activation Buttons
A list of links (intended to be styled as buttons) for the authorization of third-party services. Use it to create a page for logged-in visitors and allow them to go through the oAuth2 procedures that are available on your site.
Public Sync Buttons
This shortcode is intended as a first step towards a more bespoke design. It will output a list of buttons for manual data syncing between WordPress and the selected services API i.e. Twitch.tv and Streamlabs.com, others will be added soon.
Manual synchronizing is really meant as a backup for visitors and as a way to test procedures by developers. The ultimate goal is for everything to happen automatically but I feel there are so many API calls to be made that I cannot rush ahead in this area. So we still need that system for queuing API requests based on priority.
Embed Live Stream and Chat
Display live video content and channel chat as it happens. Parameters include height (pixels) and width (pixels). The early version of this shortcode doesn’t offer all possible parameters but with some updates, there will be more control over the displayed content.
Twitch Connect/Login Button
This short-code will display a button that allows login and registration via Twitch. There is an option to automatically register new visitors if their Twitch account is not linked to an existing WordPress user account.
Ultimate Member Role Updater
Extension Feature: TwitchPress UM Extension
This shortcode outputs a link for use by authenticated WP users. Use the shortcode in posts/views that are restricted until the visitor logs into WP. The intention is for the link to be styled as a button using the theme’s styles. The procedure will check the users Twitch subscription and update their UM role based on the plan. This requires subscription data syncing and so syncing must be active.
Current Users Streamlabs Points
This one outputs the current logged-in visitors Streamlabs points if they have giving authorization. The user must have authorized the website to access their Streamlabs data. The approach to doing this can be changed per website for a fee but for now there is a simple shortcode that outputs a links. This is shown above on this page.
Follower Only Content
Hide content from visitors who aren’t following your Twitch.tv channel. They must also be logged into your WordPress.
[twitchpress_followers_only]Some content for Twitch.tv followers only.[/twitchpress_followers_only]
Subscriber Only Content (Pro)
Hide content from any visitor who is not subscribing to your Twitch.tv channel. This shortcode is available in the pro upgrade.
[twitchpress_shortcodes shortcode="sub_only-content"]Some subscriber only content goes here.[/twitchpress_shortcodes]