May 5, 202110:22 AM - edited May 5, 202110:23 AM
Member
Related Blog Posts
SOLVE
Hello,
I have been trying for a little while to get a section on each blog post of three related blog posts. So far after looking through the tutorials I haven't really got anywhere.
My main issue seems to be that I want the posts to display related blog posts with the same tag as the specific article that it appears on which I can't seem to find.
Hello @JLanfear , you could use the blog_recent_tag_posts function for this. You just need to pass the tag of your post to this function and it will return as many articles as you want with that tag (limited to 100 articles). Then use that information to populate the content in your related blogs section.
Could I please get some help with the related_blog_posts method. It just stopped working all of the sudden. It now reports on all my modules that use the method that there's an error with a property that can't be resolved. More specifically it says it cannot convert the property featuredImageResizeOptions to a query parameter. It smells like something has changed in the methods implementation. Is anyone experiencing this ?
Hello @JLanfear , you could use the blog_recent_tag_posts function for this. You just need to pass the tag of your post to this function and it will return as many articles as you want with that tag (limited to 100 articles). Then use that information to populate the content in your related blogs section.