Skip to:
Content
Pages
Categories
Search
Top
Bottom

Trouble queering posts dynamically with author_name= (current BP) ‘nicename’

  • @davec87

    Member

    I am trying to dynamically filter the query post using the filter author_name=’nicename’. The code I used is..

    query_posts( ‘author_name=bp_displayed_user_username()’);

    I have tried MANY different combinations including setting up functions and inserting variables as the ‘nicename’ with no luck. Has anyone had success with filtering this query post in this way? Thanks in advance.

Viewing 1 replies (of 1 total)
  • @davec87

    Member

    I have changed my query post to:

    query_posts(‘author_name=’ . bp_displayed_user_username());

    With better luck, the dynamic username shows up on the page but all users posts are still displayed. Don’t know why the name would print on the page above the post? Has anyone ever run into this problem?

    I need each users profile page to display their blog posts only. For some reason cannot make this happen. Thanks again for the help.

Viewing 1 replies (of 1 total)
  • The topic ‘Trouble queering posts dynamically with author_name= (current BP) ‘nicename’’ is closed to new replies.
Skip to toolbar