WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Yet Another Related Posts Plugin] Displaying images for related posts (24 posts)

  1. manuelxx
    Member
    Posted 5 years ago #

    This is a great plugin with lots of features.

    I'm modifying templates to include images from my posts using custom fields:

    <?php echo get_post_meta($post->ID, 'custom_image', true); ?>

    It kinda gets ignored. How can I achieve this?

    I'm guessing $related_query->the_post(); is different from standard the_post() calls, but don't really know how.

    Thanks for your help!

  2. I apologize but to be honest I don't remember testing the metadata functions. Are you getting *no* metadata or the metadata for another post? Do you get an error?

  3. manuelxx
    Member
    Posted 5 years ago #

    No errors, the metadata field just "isn't retrieved".

    Let me know if you have a solution for this, meanwhile i'm leaving the titles only :)

  4. Does get_post_meta($id, ...) work?

  5. Or, in general, can you try printing $post->ID to see if that's printing the correct ID? Perhaps also printing $id to see if they match?

  6. manuelxx
    Member
    Posted 5 years ago #

    hey mitchko, i'm sorry... problem solved...

    i went only through the exact posts for which their related posts didn't have the custom field that i was looking for.

    thanks anyway... still one of the best wp-plugins out there :)

  7. houseofstrauss
    Member
    Posted 5 years ago #

    I'm also looking to pull a thumbnail for the post image. I think the best way to do this is to use another plugin called Get-the-image By Justin Tadlock. This low query plugin retrieves existing thumbs, or resizes images within g the loop.

  8. tonyparra28
    Member
    Posted 5 years ago #

    I know there is another newb out there like myself who is totally confused can you please explain how you implemented the other plugin into yarpp or how you figured out a solution?

  9. houseofstrauss - good tip... I'll have to check that one out.

    tonyparra28 - Check out the YARPP templating tutorial: http://mitcho.com/blog/projects/yarpp-3-templates/

    I have to say, though, that if you don't have some good WP template (or general PHP) experience, this templating option could be relatively difficult.

  10. Terry
    Member
    Posted 5 years ago #

    I'd *LOVE* for YARPP to post thumbnails for related posts (just like linkwithin) but keep the text links as well. Posts only, not for rss. I'll play with get-the-image, that might be just the ticket. Thanks for the link!

  11. Arash
    Member
    Posted 5 years ago #

    This would be great! There is a plugin that used to do this. But because it has not been updated since Feb 2008. It does not work with WP 2.7+

    http://wordpress.org/extend/plugins/related-post-with-thumbnail/

    I really wish YARPP would add this feature.

  12. John25, as you see from the conversation above, this is definitely possible with YARPP! Check out the templating tutorial for more info:

    http://mitcho.com/blog/projects/yarpp-3-templates/

    Perhaps in the future I'll add a sample template that uses that Get-the-image plugin.

  13. Arash
    Member
    Posted 5 years ago #

    @Mitcho

    Thank you for your reply. I have read that it works with Yet Another Photoblog. Yet the problem with Yet Another Photoblog is that every image has to be first uploaded to YAPB, instead of taking the image from the post.

    If you have a new blog that is fine, but if you are like me and have 800+ posts. Then it would be a huge problem to have to manually add every image to YAPB so that it works with YARPP.

    Unfortunatly I am not good with PHP. But if I find a solution I will post it here, as there are many more people who would like to have a post image to there related post links

  14. @John,

    I've heard of people in your situation using YARPP with the Post-Thumbs plugin which will find images in the posts themselves and turning them into images.

    http://theblemish.com/post-thumbs-plugin/

    There's also a good new tutorial on adding post thumbs in related posts—not sure if it'll help you, though.

    http://buildinternet.com/2009/07/display-thumbnails-for-related-posts-in-wordpress/

    Hope those help.

  15. Arash
    Member
    Posted 4 years ago #

    @mitchoyoshitaka

    I found someone who edited your plugin so that it autmaticly adds the tumbnail of the related post. Unline the tutorial where you have to manually add custom fields. Which can be a hassle if you have 1000+ posts :)

  16. @John25 I'd be curious to see what they did. Hopefully they just created a yarpp-template, not edit the plugin itself. :/

  17. Arash
    Member
    Posted 4 years ago #

    I be honest I have no idee what they did. Why is it not allowed to edit the plugin itself? If so, I will check with them I don't want to violate your licence, specially when your plugin is free.

  18. @John25 oh, no, editing my plugin is totally fair game... it'd just be overkill in this case, though... making just a yarpp-template file would be great because then they could distribute that (if they wanted to) and other YARPP users could use it too.

  19. Rana Mansoor Akbar Khan
    Member
    Posted 4 years ago #

    related posts plugin with images is a tricky business, see how I solved my problems with this neat little plugin..

    http://www.sutlej.net/downloads/best-related-posts/

  20. Arash
    Member
    Posted 4 years ago #

    @mitchoyoshitaka

    My friend emailed the code to you yesterday, plus instructions to show the thumbs automaticly witout the need of custom fields.

  21. hitstopz
    Member
    Posted 4 years ago #

    if anyone knows how to use this plugin with the get the image plugin please help. Is there any way to create a YARP template in a list fashion using get the image?

    I'd like to use the Image Thumbnail, Title, and Exerpt. Please help.

    Thanks in advance!

  22. @hitstopz - I believe this should be possible. Have you looked at the YARPP templating tutorial? That'll help you get it started.

    http://mitcho.com/blog/projects/yarpp-3-templates/

  23. hitstopz
    Member
    Posted 4 years ago #

    hey, your tutrial does not mention anything about using with GetTheImage or thumbnails. It seems like lots of people would like to use your template with thumbs. If you could build a template in a future version that would be great.

    Until then if anyone knows how to use thumbs & get the image with YARP please help!

  24. @hitstopz - I do have an example template which uses the Yet Another Photoblog templates, yarpp-template-photoblog.php, which should help you use it with some other post image plugin.

Topic Closed

This topic has been closed to new replies.

About this Topic