• vera1993

    (@vera1993)


    Hello everyone,

    I have a database full of posts which are assigned to different taxonomies, for example:

    • Skala (advanced, midi, starter)
    • Organizationtype
    • Topic

    I try to create a user profile where the user can choose the taxonomies which fit their needs the best. Then I would like to present links to the archiv-pages where only posts are presented which are categorised with the same taxonomies the user had choosen.

    For example:

    If a user chooses the topic “Future Skills”, the Skala “Advanced” and the organization “Start-Up” I would like to only show content to him which fit for these exact taxonomies.

    How ist that possible? I already use the followering plugins:

    • ACF
    • Frontend Admin
    • Search & Filter Pro
    • Memberpress
    • Elementor

    Thank you for your help!

    With kind regards

    Vera

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Since you already use ACF, you should be able to add fields to user profile pages where additional preferences could be selected. You’d likely need to manually specify which taxonomy options to choose from. If you need these options to be dynamically populated from current taxonomy data, I suggest seeking guidance through ACF’s dedicated support forum.

    You can then affect which posts are returned for the current user in an archive query through the “pre_get_posts” action hook by setting or unsettling particular query vars based on the user’s profile preferences.

Viewing 1 replies (of 1 total)
  • The topic ‘Content restriction based on editable taxanomies in the user profile’ is closed to new replies.