Forum: Xprofile Fields

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 Xprofile Fields premium extension please open a new premium support ticket.

[Resolved]Only show results with certain xprofile field information

Home Forums Xprofile Fields Only show results with certain xprofile field information

This topic contains 4 replies, has 2 voices, and was last updated by  Carrie Bishop 3 years, 4 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #52093

    Carrie Bishop
    Participant

    Hi,
    I’m using the Members Locator plugin to search my directory for locations nearby. However, in the search results, I only want to show members who have a member type of “retailer.” this is an xprofile field. Is there a way to do this? I found this post: https://geomywp.com/forums/topic/set-category-in-shortcode/ and I thought I might be able to use that code, but I’m not sure if term_id = xprofile field or where I’d find that info. here’s my site: http://yarngroup.wpengine.com/ thanks for any help!

    #52094

    Carrie Bishop
    Participant

    Okay – so I figured out that my member type field_id is 36. So what I need to say is, only show the post if field_id 36 = retailer.

    #52195

    Carrie Bishop
    Participant

    Checking in to see if there is a way to do this. If you can point me to the right template, I can probably work out the code.

    #52196

    Eyal Fitoussi
    Keymaster

    HI Carrie,
    Try the script below:

    #52218

    Carrie Bishop
    Participant

    I think it worked! THANK YOU.

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

You must be logged in to reply to this topic.