WordPress.org

Support

Support » Plugins and Hacks » [Resolved] post-author-box plugin how to add new token

[Resolved] post-author-box plugin how to add new token

Viewing 4 replies - 1 through 4 (of 4 total)
  • Daniel Bachhuber
    Participant

    @danielbachhuber

    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.

    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

    Daniel Bachhuber
    Participant

    @danielbachhuber

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

    Cheers,

    Daniel

    Alice Kaye
    Member

    @alice-kaye

    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] post-author-box plugin how to add new token’ is closed to new replies.