SpiderVPlayer Shortcodes

Below, you’ll find a detailed guide on how to add the SpiderVPlayer Shortcodes to your WordPress website, including their parameters, examples, and PHP function code. Additionally, we’ll assist you with common issues that might cause the SpiderVPlayer Plugin shortcodes not to show or not to work correctly.

Before starting, here is an overview of the SpiderVPlayer Plugin and the shortcodes it provides:

Plugin Icon
SpiderVPlayer

"SpiderVPlayer is an efficient WordPress plugin, transforming your site with advanced video playing capabilities. It uses a simple, user-friendly interface for seamless media integration."

★★★★✩ (46) Active Installs: 3000+ Tested with: 4.0.38 PHP Version: false
Included Shortcodes:
  • []
  • [Spider_Single_Video]

SpiderVPlayer [null] Shortcode

The ‘Spider_Video_Player’ shortcode allows you to embed a video player in your WordPress pages or posts. The shortcode: [Spider_Video_Player] extracts the ‘id’ attribute from the shortcode. If the ‘id’ is not numeric, it prompts you to insert a numerical shortcode in ‘id’. If the ‘id’ is valid, it calls the ‘front_end_Spider_Video_Player’ function to display the video player.

Shortcode: [null]

Parameters

Here is a list of all possible null shortcode parameters and attributes:

  • id – A numerical value representing the unique identifier of the Spider Video Player

Examples and Usage

Basic example – A simple way to use the Spider Video Player shortcode is by specifying the ‘id’ parameter. This will display the video player with the ID you provide.

[Spider_Video_Player id=1 /]

Advanced example – Although the Spider Video Player shortcode only accepts the ‘id’ parameter, you can use it in conjunction with other shortcodes to create more complex displays. For instance, you can use it within a column shortcode to display the video player in a specific column of your page.

[column]
[Spider_Video_Player id=1 /]
[/column]

Note: The above example assumes that you have a column shortcode available in your WordPress installation. If not, you might need to install a plugin that provides this functionality.

PHP Function Code

In case you have difficulties debugging what causing issues with [null] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('Spider_Video_Player', 'Spider_Video_Player_shotrcode');

Shortcode PHP function:

                    function Spider_Video_Player_shotrcode($atts){
    extract(shortcode_atts(array(
        'id' => 'no Spider Video Player',
    ), $atts));
    if (!(is_numeric($atts['id'])))
        return 'insert numerical  shortcode in `id`';
    return front_end_Spider_Video_Player($id);
}
                    

Code file location:

player/player/Player.php

SpiderVPlayer [Spider_Single_Video] Shortcode

The Spider_Single_Video shortcode is a dynamic tool in WordPress that displays a single video. It takes three parameters: ‘track’, ‘theme_id’, and ‘priority’. The ‘track’ parameter specifies the video to be displayed. The ‘theme_id’ parameter allows customization of the video player’s theme. The ‘priority’ parameter determines the display order.

Shortcode: [Spider_Single_Video]

Parameters

Here is a list of all possible Spider_Single_Video shortcode parameters and attributes:

  • track – numerical value representing the specific track
  • theme_id – numerical value indicating the theme’s unique id
  • priority – value either 0 or 1, determining the priority level

Examples and Usage

Basic example – A single video is displayed using the ‘Spider_Single_Video’ shortcode. The ‘track’ attribute is set to ‘1’, ‘theme_id’ is set to ‘1’ and ‘priority’ is set to ‘1’.

[Spider_Single_Video track=1 theme_id=1 priority=1 /]

Advanced examples

Displaying a video with a different theme by changing the ‘theme_id’ attribute to ‘2’. The ‘track’ attribute is set to ‘1’ and ‘priority’ is set to ‘1’.

[Spider_Single_Video track=1 theme_id=2 priority=1 /]

Changing the ‘priority’ attribute to ‘0’, while keeping the ‘track’ attribute set to ‘1’ and ‘theme_id’ set to ‘2’. This will display the video with a different priority.

[Spider_Single_Video track=1 theme_id=2 priority=0 /]

Displaying a different video by changing the ‘track’ attribute to ‘2’. The ‘theme_id’ is set to ‘2’ and ‘priority’ is set to ‘0’.

[Spider_Single_Video track=2 theme_id=2 priority=0 /]

PHP Function Code

In case you have difficulties debugging what causing issues with [Spider_Single_Video] shortcode, check below the related PHP functions code.

Shortcode line:

add_shortcode('Spider_Single_Video', 'Spider_Single_Video_shotrcode');

Shortcode PHP function:

                    function Spider_Single_Video_shotrcode($atts){
    extract(shortcode_atts(array(
        'track' => '',
        'theme_id' => '1',
        'priority' => '1'
    ), $atts));
    if (!(is_numeric($atts['track'])))
        return 'insert numerical  shortcode in `track`';
    if (!(is_numeric($atts['theme_id'])))
        return 'insert numerical  shortcode in `theme_id`';
    if (!($atts['priority'] == 1 || $atts['priority'] == 0))
        return 'insert valid `priority`';
    return front_end_Spider_Single_Video($atts['track'], $atts['theme_id'], $atts['priority']);
}
                    

Code file location:

player/player/Player.php

Conclusion

Now that you’ve learned how to embed the SpiderVPlayer Plugin shortcodes, understood the parameters, and seen code examples, it’s easy to use and debug any issue that might cause it to ‘not work’. If you still have difficulties with it, don’t hesitate to leave a comment below.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *