WordPress.org

Ready to get started?Download WordPress

Forums

WTI Like Post
[resolved] mostly voted widget is not displaying anything (4 posts)

  1. radiofranky
    Member
    Posted 1 year ago #

    Hi,
    The "mostly voted" widget was working before but somehow when I modified my template it's showing "No posts liked yet".

    I was wondering if anyone knows how to fix it.

    thanks

    http://wordpress.org/extend/plugins/wti-like-post/

  2. webtechideas
    Member
    Plugin Author

    Posted 1 year ago #

    Not sure what you changed but changing the template should not affect the widget. Please check on this thread http://wordpress.org/support/topic/plugin-wti-like-post-most-liked-posts-widget-is-empty and let me know if it helps or not.

  3. radiofranky
    Member
    Posted 1 year ago #

    thanks. That fixes the problem.
    I was wondering if you could help me add an image from a advanced custom field.

    Here is the code that I need to call to get the image

    <?php $yes_image = get_field('product_image');
     $image = wp_get_attachment_image_src(get_field('product_image'), 'thumbnail');
    if($yes_image)
    {
    $image_thumb = explode(".",$yes_image);
    
    echo '<div id="image_box"><div class="image_span"><a href="';
    echo the_permalink();
    echo '">';
    echo '<img class="image-scaling" src="';
    echo $image[0];
    echo '" alt=""/></a></div></div>';
    }
    
    else {echo 'no image';}?>

    Can you help me to add to your code?

    thanks

  4. radiofranky
    Member
    Posted 1 year ago #

    I was wondering if is possible to have an option to show only specific category? Like to show most viewed posts from the current post category?

    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.