September 12, 2011 at 9:34 am #4287
I have just purchased the plugin and wanted to place a vimeo video on one of my page templates (not a post). I used the short code for the post insert but that does not work on a page. I cannot find instruction for using the plugin on a wordpress page. How do you do this?September 12, 2011 at 12:25 pm #36509wpCommerceModerator
Can you please post a link to that page where you are using the shortcode?
What shortcode are you exactly using?
Please check the “Plugin Usage” section of the following page for instruction –September 12, 2011 at 1:42 pm #36510
I don’t think short codes work in template files; you’d have to use PHP code.September 12, 2011 at 10:47 pm #36511
I am using the following short code on a template page just as a test. I followed all the instructions via the link above (though no instructions are given for adding the code to a template page). It still doesn’t work.
[wp_lightbox_colorbox_anchor_text_video link=”http://player.vimeo.com/video/8245346″ title=”Video title goes here” text=”Click here to open the Vimeo video “]September 12, 2011 at 11:00 pm #36512
When you use the term “template page,” are you referring to a theme file that has “.php” at the end of its name?September 12, 2011 at 11:57 pm #36513
Yes. I created a template page. This is the beginning of the code (i disabled php here for viewing):
Template Name: Special Coverage
<?*php get_header(); ?*>
<div class=”short” style=”border-top:none;”>
<h1><span class=”video”>VIDEO</span> Going Out West</h1>
[wp_lightbox_colorbox_anchor_text_video link=”http://player.vimeo.com/video/8245346″ title=”Video title goes here” text=”Click here to open the Vimeo video “]
…..September 13, 2011 at 12:04 am #36514
Short codes do not work on template pages.September 13, 2011 at 1:13 am #36515wpCommerceModerator
You need to use the “do_shortcode” filter of wordpress to be able to use shortcode on a php file.
Please use the shortcode in the following format:
<?php echo do_shortcode(‘[wp_lightbox_colorbox_anchor_text_video link=”http://player.vimeo.com/video/8245346″ title=”Video title goes here” text=”Click here to open the Vimeo video”]’);
?>September 13, 2011 at 5:27 am #36516
that worked! thanks a lot!September 14, 2011 at 10:01 am #36517
Grief! The <?php echo do_shortcode… above worked great until I upgraded WordPress to 3.2.1 Now it stopped working again. Is the plugin not compatible with the latest version of WP?
This is getting frustrating.September 14, 2011 at 10:56 pm #36518adminKeymaster
All of our plugins are kept upto date to work with the latest build of WordPress so the WordPress version is not the issue. Please provide the following two details so we can check and see what is wrong on your site:
1) A link to the page where you are using the shortcode (where I can go and click on the anchor)
2) A screenshot showing the PHP code that you placed in your template.
- You must be logged in to reply to this topic.