Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: WordPress MU/BP Integration: post_author_link issue


BrianStevens
Member

@brianstevens

Alright, it turns out I was a bit preemptive in declaring “Mission Accomplished.”

I modified your code because it originally didn’t work. Here is where I am stuck.

http://pastebin.com/rKBL3Wiy

Now, the link shows up formatted correctly, but it links to the wrong page and then redirects home.

You see, post_author calls up the user’s Display Name, not their username, which is what post_author calls.

So that links to http://www.example.com/members/Brian Stevens, rather than http://www.example.com/members/bstevens

Does anyone know the code to call the username, rather than display name? post_author_id also did not work. I’m not sure how to call their account name.

Skip to toolbar