I have a pair of channels, Blog_posts and Profiles. Blog_posts.profiles is a multi-relationship field to Profiles, thus making a many:many relationship between the tables. In other words, a blog post might reference multiple profiles, and a profile will be included in many blog posts.
I need to query “all blog posts from all referenced profiles” from a blog post. i.e. if a Post links to the Andy and Bill profiles, I need a list of all posts that link to the Andy and Bill profiles.
I thought I could do…
{exp:channel:entries channel="blog_posts" limit="16" dynamic="no" search:profiles="{profiles}"}…but it’s not working. I only noticed the fine print in the documentation — ‘Only fields of the type “Text Input”, “Textarea”, and “Drop-down Lists” are searched with this parameter’ — a moment ago.
Any thoughts? I thought I could bust out a MySQL query, but the profiles column in the database doesn’t even appear to reference exp_channel_data rows.