WordPress.org

Ready to get started?Download WordPress

Forums

'Posted by' not showing... (7 posts)

  1. Web-Translations
    Member
    Posted 5 years ago #

    Hello there people,

    Firstly, apologies if this topic has been posted about before...

    I have set up five or six users for my company's blog thinking that it would show who has posted what but that is not the case.

    Below each post it simply says:

    Posted in Uncategorized | Edit | No Comments

    Any ideas?

    Many thanks in advance.

  2. educationthemes
    Member
    Posted 5 years ago #

    You need to add some code to your theme in order to get it to display the author. Try adding this:

    <p>This post was written by <?php the_author(); ?></p>

  3. Web-Translations
    Member
    Posted 5 years ago #

    Hi,

    Thanks very much for that but, pardon my ignorance, how can that code be added to a css?

  4. educationthemes
    Member
    Posted 5 years ago #

    You don't add that to the CSS you will add it to your themes templates. First of all try adding it to your index.php inside wp-content/themes/youttheme/index.php.

    Where you add it will depend on where it will appear. If you want it below your post then add it below the:

    Posted in <?php the_category(); ?>

    Try it and see how you get on.

  5. thisisedie
    Member
    Posted 5 years ago #

    It doesn't go in the stylesheet (css), it goes in the php psges of your theme wherever you want it to go.

  6. thisisedie
    Member
    Posted 5 years ago #

    Whoops you beat me to it educationthemes.

  7. Web-Translations
    Member
    Posted 5 years ago #

    Brilliant,

    Thanks awfully to you both and, once again, sorry for being a WordPress dummy.

    :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.