Forum: Premium Settings

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support related to the Premium Settings premium extension please open a new premium support ticket.

[Not a support question]Filter by user and post meta data

Forums Premium Settings Filter by user and post meta data

Viewing 1 post (of 1 total)
  • Author
  • #44480


    I bought two of your plugins and they are very helpful so far. However, I ran into a problem that I cant solve by myself. I need to filter the results by user and post meta data which is inputted by the user via CMB2 (they are ordered with your plugin by distance).

    i wrote a code that need the following inputs:
    $menu_type = get_user_meta( get_the_author_ID(), ‘_wp_user_menu_type’, true );

    $fooddate=get_post_meta( get_the_ID(), ‘_wp_food_food_date’,true );

    and it then decides if the post should be excluded from the results. I already found an entry gmw[‘exclude’] and maybe it should go there, but i dont know how to do this.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.