Support » Plugin: Individual Multisite Author » How to code the bio box manually?

  • Resolved oabrahim

    (@oabrahim)


    Hi,

    I know that I can use a call to:

     <?php
    get_the_author_meta('description'); 
    ?>

    to get the text from the description field for a user. My question is how to I add PHP code to get output as shown (in the plugin-banner div) at the top of the plugin’s main page?

    https://wordpress.org/plugins/individual-multisite-author/

    If I want to specify exactly where within the single post / content that I want the bio box to appear?

    Please let me know. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • In addition, how do I get the text from the description field to show up in the WPML String Translation list of strings? I know I need either _e() or _() functions around the above get_the_author_meta(‘description’) and that I need to scan the theme and the plugin for the strings after I update the user’s description. Is that correct? Or am I missing something?

    Plugin Author Thomas M

    (@webzunft)

    Hi oabrahim,

    thanks for reaching out.

    The author box in the plugin image is designed by the theme used on my own website. I know that there are also plugins out there that provide a different author box.

    The author description is not a translation string, because the text is not appearing in the theme’s code, but is saved in the database. Therefore, a function like __() would not work here.

    I cannot say where the description would appear in WPML and if at all. I developed this plugin for the specific purpose of using a multisite for translated versions of a website and have not used another scenario since then.

    All the best to you and your project!
    Thomas

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to code the bio box manually?’ is closed to new replies.