An addition:
Here we take an embeded video from a post in a certain category. The code above in sidebarclip.php loads by default only one latest post. You can however change:
query_posts(‚posts_per_page=1&cat=$category_id‘);
to load let’s say 4 posts where each has another video embeded:
query_posts(‚posts_per_page=4&cat=$category_id‘);
now you load 4 players.
The size of the player you can set in sidebarclip.php:
‚width’=>300,
‚height’=>250 ));
to another value
use style.css to arrange that players as you like – first you have to get them to show up..
____________________
you find me on Google+, Twitter and Facebook
(von: Joern)
Hier noch 1 weitere Ergebnisse dieses Threads:
add latest video from a post in WordPress sidebar
9. Jan. 2015 (von: Joern)
I am going to add a video to the sidebar. This video is taken from the last post in a category you have to set.The post actually is filtered for an oembed video, only this video will be displayed in…