Title: Video Slider PHP Code
Last modified: May 22, 2019

---

# Video Slider PHP Code

 *  Resolved [laurynn](https://wordpress.org/support/users/laurynn/)
 * (@laurynn)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/video-slider-php-code/)
 * I’m using your video slider plugin on my website and the shortcode works fine
   on the page. But the php code isn’t working correctly. I have it placed on the
   bottom of my homepage and it seems to be duplicating itself.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fvideo-slider-php-code%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [richteam](https://wordpress.org/support/users/richteam/)
 * (@richteam)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/video-slider-php-code/#post-11563954)
 * Dear laurynn.
 * We have two shortcode types. The first shortcode is [Rich_Web_Video id=”1″]. 
   You must copy and paste it into Your page.
    The second shortcode is designed 
   for the theme <?php echo do_shortcode(‘[Rich_Web_Video id=”25″]’);?> . You must
   to copy the second shortcode and paste it into Your theme’s header.php file. 
   And it will be always shown on the top of Your page.
 * But We looked. You placed two shortcodes on your page, yes? When You put one 
   shortcode, does it work correctly?
 * Thank you.
 *  Thread Starter [laurynn](https://wordpress.org/support/users/laurynn/)
 * (@laurynn)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/video-slider-php-code/#post-11564647)
 * No, I placed one shortcode on this page and it works great [https://www.goldenview.org/?page_id=98](https://www.goldenview.org/?page_id=98)
 * And then, I took the PHP code and placed it within the code of my front page (
   I have background in coding) and the video is there – look at the bottom of the
   homepage – but below it, there are a bunch of weird duplicates [https://www.goldenview.org/](https://www.goldenview.org/)
 * I just don’t know why the duplicates are there. If this isn’t something that 
   can be fixed I’ll need to find another plugin to use.
 *  Plugin Author [richteam](https://wordpress.org/support/users/richteam/)
 * (@richteam)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/video-slider-php-code/#post-11565034)
 * Dear laurynn.
 * We understand you. The shortcode does not work with the same shortcode. You placed
   on the site the same slide one with PHP Code and the other just a shortcode. 
   Please do so that the shortcode’s ID will be other. Please copy the slider and
   put another shortcode with another ID. In this way it will work.
 * Thank you.
 *  Thread Starter [laurynn](https://wordpress.org/support/users/laurynn/)
 * (@laurynn)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/video-slider-php-code/#post-11565116)
 * I duplicated the slideshow and used the second code for the PHP code and it is
   doing the same thing.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Video Slider PHP Code’ is closed to new replies.

 * ![](https://ps.w.org/slider-video/assets/icon-128x128.png?rev=2635372)
 * [Video Slider - Slider Carousel](https://wordpress.org/plugins/slider-video/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/slider-video/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/slider-video/)
 * [Active Topics](https://wordpress.org/support/plugin/slider-video/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/slider-video/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/slider-video/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [laurynn](https://wordpress.org/support/users/laurynn/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/video-slider-php-code/#post-11565116)
 * Status: resolved