yghhht
Member
Posted 5 months ago #
Hi
I have one very important question for me about plugin post-author-box.
Could somebody tell me how add some token to this plugin which approve me make link for user profile.
I have instaled mingle plugin which made for all users profils with adress mysite.com/username for ex. user daniel has profile url mysite.com/daniel
How can I add this information (profil link) to this plugin?
Here's an example you can follow.
Basically, what you need to do is register your search tokens, and then replace them with your new values.
You should put your code snippet in your theme's functions.php file, or create an MU plugin for it, so your code doesn't get blown away when the plugin is updated.
Let me know if you need more specifics than this.
yghhht
Member
Posted 5 months ago #
Thanks so much.
Meanwhile I did something absolutly simple. I put this code: Viev this user profile
That's how I got profil link:D
However thanks for your answer I think it will be helpful in future.
Best regards
Neat trick, that could work too. Instead of using %display_name% though, I might recommend using %user_login%
Cheers,
Daniel
Alice Kaye
Member
Posted 3 months ago #
Is it possible to register a token as categories somehow? I'm removing the "Posted in:" section because I don't want it on every page and post I make, I'd rather have it optional like the post author box.
However, even after reading that example I have no idea how I'd do that.
Thanks in advance for any help you can provide.