Support » Theme: Slightly » Does the job

  • Very happy with this theme so far, especially to get started on a simple blog. Code is clean and easy to play with, especially for a beginner like me!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author nickcil

    (@nickcil)

    Hi Edouard! Thank you for your review. Best of luck with your blog, and I hope you will reach out if you need any support with Slightly.

    Hi Nickcil,
    In fact I do, but maybe I need to dig a bit more in the WordPress Codex!
    I am trying to call the author function to have it show up next to the date on a post or the blog page.I have tried a few things but maybe I am doing it wrongly.
    Can you help?
    PS. I use a childtheme.
    Best,

    Theme Author nickcil

    (@nickcil)

    Let’s see if this will help you. Try locating the file “template-parts/content.php” and after line 23, add this:

    <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ), get_the_author_meta( 'user_nicename' ) ); ?>"><?php the_author(); ?></a>

    This will add the author’s name and a link to posts written by that author.

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Does the job’ is closed to new replies.