echo do_shortcode is not working on theme's template

I don't know whats causing the problem but the echo do_shortcode is not working on my theme's template, but its working on my plugin's template and the shortcode is working on my posts and pages. Pretty weird. Here's the code <?php $my_query = new WP_Query('category_name=video post&posts_per_page=10'); while ($my_query->have_posts()) : $my_query->the_post(); $do_not_duplicate = $post->ID; ?> <li> <h3><a href = "<?php the_permalink();?>"><?php the_title();?></a></h3> <?php the_post_thumbnail(); ?> <p> <?php the_excerpt();?> <?php $urlbox = get_video_box(); echo $urlbox[0]; // echo out the url of a …
Category: Web

How to customly read JWPlayer's "Playlist" items by using its "playlistid"?

In Wordpress (3.8.1) and JW Plugin (v2.1.2) with JW Player (v5), I need to read off the items contained in the Playlists of the JWPlayer Plugin. Normally The JWPlayer Plugin works like this, via Shortcode: [jwplayer playlistid="1234"] .. then a Video Player will be being rendered on the Page, together with a Playlist inside. What i want to do (The Customizing) So now how do i customly do by myself .. if i want to know (or pull out) the …
Category: Web

Directly using pure JWPlayer JS (but NOT WP Plugin)

First of all, I'm not using WP JWPlayer Plugin. (And i don't want it. And thats the another story) Well in the Template file: wp_register_script('myJW', get_bloginfo('template_url') . '/jwplayer.js'); wp_enqueue_script('myJW'); ?> <div id='myJWPlayer'></div> <script> jQuery(document).ready(function(){ jwplayer("myJWPlayer").setup({ playlist: "http://www.example.com/playlist.xml", listbar: { position: 'right', size: 250 }, width: 700, height: 400 }); }); </script> It is not working, since even the jwplayer("myJWPlayer") call is not being triggered. Note: This codes are perfectly working in pure HTML sites. Any idea please?
Category: Web

stop all video players when starting an other to play?

I have a wordpress-page where many videos are posted. Some are embedded Vimeo or YouTube Videos, some are hosted on the server and played with wordpress-JW-Player Plugin. The thing is, on some pages there are up to 10 videos and in "worst" case, three different players. When the user watches a video, and then starts a second one, the first video should stop automatically. My question is: is there a Wordpress-compatible-JavaScript/WP-Plugin/etc. which provides such a behavior, when the user starts …
Category: Web

Multisites, upload issues, and iOS!

This question has changed significantly. I have the latest version of Wordpress and am hosting it on an Apache server. Link to Blog: http://blogs.bzaeds.org/test/2012/05/11/video-test/ Now, here's the thing. When I upload a video to Wordpress it will play on a Mac in Firefox with the Wordpress URL the item is given (ex: http://blogs.bzaeds.org/test/files/2012/05/720-dunk.mp4" provider="video). In fact, I can go to that link right now on my Firefox browser and have no problems, it plays fine. However, if I upload a …
Category: Web

How to create thumbnails in wordpress with jwplayer

I can't seem to get a good answer on their site. What's the best way to create thumbnails for videos uploaded to my wordpress site? Users upload videos from the front end and I started doing this with only youtube videos which was great because I could just pull the thumbs from youtube. So how can I can auto create them now and store them in a way that's not complicated. I tries using a the "video thumbnails" plugin but …
Category: Web

Problem with JWplayer. Video is missing?

Firstly, I am new at using video with wordpress. I have installed the jwplayer plugin and using this bit of code to show the video player on the page. $video_array = explode("\r\n", stripslashes(extra_option('video_links')) ); foreach($video_array as $vid){ if (!empty($vid)) echo jwplayer_tag_callback("[jwplayer config=\"Homepage Player\" file=\"$vid\"]"); } Note: "Homepage Player" is a custom config i made form the jwplayer plugin option page. Problem: You can see the site here http://photographersinsiouxfallssd.com/ There are four video to show. For the first three the player …
Category: Web

How to show SWF, where Flash is available, and gracefully fallback to MP4 video for iOS devices?

I have a SWF, which uses a MP4 file for the video part (the SWF also has a Table of Contents, which is important for me to have). But when viewing the website on iOS devices, (or where there is no flash), I would like the MP4 file to be played (using jwplayer, etc) How can I implement this? Is there a Wordpress plugin which handles SWF as well as MP4?
Category: Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.