Support » Plugin: Simple Author Box » PHP Code

  • Resolved ozdensamet

    (@ozdensamet)


    Hello,
    i want to show author box after this code; (not in content)
    <?php the_content(); ?>
    So how can i do that?
    Is there any php code for this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello @ozdensamet,

    Yes, you can add the author wherever you want in the page.
    In order to do this you need to go to your dashboard > Simple Author > turn on Manually insert the Simple Author Box > copy that PHP code > save.
    And then go to your template file (single post view) in your theme and paste the PHP code where you want the author box to be displayed and then save the file.

    Let me know how it goes.

    Kind regards,
    Mihaela

    After enabling this, how can I choose which author I want to show? What if I want an author’s info on the contact page for example?

    Thanks

    Hello @madturki,

    The plugin will display the information of that post/page’s author automatically.
    If you want to show another user then I recommend using our Simple Author Box block in Gutenberg and choosing the author you want.
    Just edit your page > add new Simple author box block > and select your user.
    Like so: https://gyazo.com/46c9516af3325a12c7521ece94c3fdb7

    All the best,
    Mihaela

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.