Filtering posts by comparing user email with User-type ACF field’s value in Oxygen

This members-only tutorial provides the steps to filter posts in Oxygen‘s Easy Posts or a Repeater to only those for which the user-type of field’s value matches with the currently logged-in user.

This isn’t as straightforward as it looks because it is not possible to compare (user) objects with post meta querying in WordPress.

This is a premium members-only content.

To view the rest of the content, please sign up for membership ($47/month or $599 one-time).

Already a member? Log in below or here.


Posted

in

, ,

by

Comments

One response to “Filtering posts by comparing user email with User-type ACF field’s value in Oxygen”

  1. Stephane Vaillancourt Avatar
    Stephane Vaillancourt

    how could you do the same by using the username

    $current_user = wp_get_current_user();
    $current_user->user_login

Leave a Reply

Your email address will not be published. Required fields are marked *