Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Plugins & Atahualpa (http://forum.bytesforall.com/forumdisplay.php?f=16)
-   -   Wordpress Automatic Youtube Publishing (http://forum.bytesforall.com/showthread.php?t=16901)

tixcoca Mar 2, 2012 09:52 AM

Wordpress Automatic Youtube Publishing
 
Hi,
I installed the plugin called Wordpress Automatic Youtube video posts
(http://www.ternstyle.us/products/plu...osts-functions)

which will pull my youtube videos from my youtube account and make a post of each one on my site. They have an option to place of thumbnail of the video in the post but it requires to have the following line of code:

<?php tern_wp_youtube_image(); ?>

placed in a file where the posts loops would be done. I'm not sure what file the list of posts are kept. Can you help me get the correct file and to insert this line of code?

Thanks!

juggledad Mar 2, 2012 10:18 AM

seems to me you could put it in the post and then use the 'exec-php' plugin to run it
other than that you could try putting it in index.php in the loop.

lmilesw Mar 2, 2012 10:33 AM

I just tested and the following works without editing theme files.
  • Add a new widget area to the Byline in multipost pages in the Post/Page Info area
  • Install a PHP aware text widget and place in this new widget area
  • Add the PHP code to the text widget
  • Use CSS such as .post-byline {float: left;} to position thumbnail to the left of the excerpt.
Worked pretty neat for me.


All times are GMT -6. The time now is 09:25 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.