Filter results based on post meta?

  • henriksolo
    Participant
    3 weeks, 4 days ago #31466

    Hello.
    I’m planning a new site. Its a membership platform based on woocommerce, membership -> teams.
    Each group has private content. Posts with or with attached files docx or pdf.
    Each post has the meta value of team id.

    Could I filter the result based on the users team id?
    Example:
    Show all posts with post meta membership_id = team_id or no/blank meta.
    Regards,
    Henrik@solo
    Calgary

    wpsolr
    Keymaster
    3 weeks, 4 days ago #31467

    It should be possible for Elasticsearch and Solr, with a custom filter in a hook.
    Example of code for a not exist filter.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.