[resolved] post-author-box plugin how to add new token (5 posts)

  1. yghhht
    Posted 4 years ago #

    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?

  2. Daniel Bachhuber
    Hand Built
    Posted 4 years ago #

    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.

  3. yghhht
    Posted 4 years 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

  4. Daniel Bachhuber
    Hand Built
    Posted 4 years ago #

    Neat trick, that could work too. Instead of using %display_name% though, I might recommend using %user_login%



  5. Alice Kaye
    Posted 4 years 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.

Topic Closed

This topic has been closed to new replies.

About this Topic