Support

Account

Home Forums Front-end Issues Field Type "User", only show the posts that the "User" is selected Reply To: Field Type "User", only show the posts that the "User" is selected

  • Hi @sbrenner7

    You can find the currentl logged in use with this WP code:
    http://codex.wordpress.org/Function_Reference/wp_get_current_user

    After you have the user ID, you can then perform a query on the WP posts via the get_field function.

    You can find info on that here:
    http://www.advancedcustomfields.com/resources/how-to/how-to-query-posts-filtered-by-custom-field-values/

    The meta_name is the field name, and the meta_value is the user ID selected

    Thanks
    E