WordPress.org

Ready to get started?Download WordPress

Forums

List category posts
[resolved] Show an other thumbnail (video_thumbnail) instead of the featured_image (1 post)

  1. hugoatv
    Member
    Posted 1 year ago #

    Hi,

    i use 2 pictures on each post of my WP Videos Blog (the featured for the post and the video_thumbnail).

    in my homepage for example i use this functioh to show the video_thumbnail :

    <?php
    if( ( $video_thumbnail = get_video_thumbnail() ) != null ) {
    echo "<img src='" . $video_thumbnail . "' class='attachment-post-thumbnail wp-post-image' />"; }
    ?>

    i use "list_category_post" plugin in the posts but i would only show the video_thumbnail instead of the featured_image but it doesn't works...

    When i change in "Catlist.php" :

    $lcp_thumbnail .= get_the_post_thumbnail(

    by :

    $lcp_thumbnail .= get_video_thumbnail(

    i have as result not the picture but her file name :

  2. http://www.mywebtv.tv/wp-content/uploads/2013/03/mypicture-video.jpg
  3. but i want to have this :

  4. <img src="http://www.mywebtv.tv/wp-content/uploads/2013/03/mypicture-video.jpg" />
  5. i don't know how to get the picture instead of her name, i have try with echo but each time i have syntax errors.

    can anybody help me ? :)

    thanks,

    http://wordpress.org/extend/plugins/list-category-posts/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags