Skip to:
Content
Pages
Categories
Search
Top
Bottom

Get posts by xprofile field

  • @applegateian

    Participant

    Hi guys

    All of the users on my site will be required to choose a custom xprofile type called ‘account type’ when they register.

    There are 5 different types.

    Each user can create standard WordPress posts that appear on a top level page called ‘posts’.

    I need to filter ‘posts’ further, by these 5 user types to run 5 separate WordPress pages. These would be posts by these authors, filtered by their different xprofile paths.

    How can I query by the Xprofile field?

    Many thanks,

    Ian

Viewing 3 replies - 1 through 3 (of 3 total)
  • @mikegarlick

    Participant

    I am looking to do something similar.

    I want to be able to filter a custom post type with the details provided in the xprofile.

    @modemlooper

    Moderator

    you can get the user id of any member with a specific profile field and then create a custom loop of post by those users.

    @mikegarlick

    Participant

    Thanks for the reply. I understand I could do that but its not quite what I’m after.

    I want to be able to filter a custom post type with the details provided in the xprofile. The problem i have is that the data field i want to search by has many items in them (tick box list of attributes). I dont know how to explode them all (if explode is the correct php term??)

    What im making is a custom post type of jobs advertised on the site and when they get to that index of posts i nead to search the posts custom fields or tags with their xprofile data field.

    I hope that makes sense

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Get posts by xprofile field’ is closed to new replies.
Skip to toolbar