Skip to:
Content
Pages
Categories
Search
Top
Bottom

"Custom Query" – show only topics started by logged user

  • Hello

    I would like to create some form of custom query for displaying topics, so that if user is logged in, only topics started by him are being displayed (so this way, he can’t see topics started by other users). Is this even possible, and if so – how?

Viewing 4 replies - 1 through 4 (of 4 total)

  • johnhiler
    Member

    @johnhiler

    You can see topics you started on the bottom of your profile page?

    http://bbpress.org/forums/profile/thion

    Maybe that would be a place to start, in terms of figuring out how to make a custom query?

    Being there, read that – still it’s not it. I’m trying to figure our the BB_Query function by reading about WP_Query on Codex ;). Anyone have other ideas?


    _ck_
    Participant

    @_ck_

    You can make a view to do that quite easily.

    In fact there is already such a view in “My Views” plugin.

    Ignore the completely proprietary query system (BB_Query) that the bbpress api uses, it’s incomplete, brain damaging and 100% non-portable to any other system. Just use real mysql queries instead (that goes for WP_Query as well, I have no idea what they were thinking).


    zhuanquan
    Participant

    @zhuanquan

    @_ck_
    I want to create some form of custom query for displaying topics, such as get one forum, I don’t want to use shortcode, due to it will get most useless information. I mean that just like wordpress code as below:
    `

  • <a href="” title=””>
  • `
    How can I do this?

Viewing 4 replies - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.