Cutline Theme Support Forums » Cutline Theme Support Forums

New Post -> Author is missing

(9 posts)
  • Started 4 years ago by gurumosh
  • Latest reply from ronaldcgreen363
  • This topic is not resolved

  1. gurumosh
    Member

    Hi, I'm new to this whole Wordpress-Thing, so please be clement if I ask something stupid possibly. The problem is: I wrote a new Post via Wordpress, and above the text is the Line [Date, Comments]. But I want it that way: [Date, Author, Comments]. I've tried searching the whole php-pages but I can't find the line which I have to change. Any suggestions?

    Thank you very much
    guru

    Posted 4 years ago #
  2. I'm new to wordpress also, and just had to solve that same problem.

    I had to do two things to get the author to appear. First, under "Users", I had to create a profile for myself with my name. Then, on the "write" page, where you create a post, you have to select the author from the drop down menu there.

    That was the easy part.

    I believe (and I don't have the theme editor window open, so you might have to dig a little deeper) I just had to edit the "single post" template. The character string "!--" and "--" are tags that make something a comment. I just deleted those two bits from the code that was there, and the author name appeared.

    Right now, that line on my "single post" theme runs like this:

    <h4><?php the_time('F jS, Y') ?> by <?php the_author() ?> · #comments"><?php comments_number('No Comments', '1 Comment', '% Comments'); ?></h4>

    Hope that helps.

    Posted 4 years ago #
  3. gurumosh
    Member

    It helped, thanks a lot!

    Posted 4 years ago #
  4. marcbkk
    Member

    I played with it and I belvie the following code string will work a bit better:

    <h4><?php the_time('F jS, Y') ?> by <?php the_author() ?> --> <?php comments_number('No Comments', '1 Comment', '% Comments'); ?></h4>

    I still have a problem though.

    This has sorted out showing of the author's name in all expanded post screens.

    What is still not showing the author's name though are the category pages where it shows a summary of each post within that category.

    Not sure where I have to edit the code to affect showing authors name's on posts within the categories.

    Any further ideas possibly?

    Thanks.

    Posted 4 years ago #
  5. marcbkk
    Member

    I figured out if you fix the archive.php file with the same code edit in the theme it will fix the category pages as well. Done!

    Posted 4 years ago #
  6. Also make sure you apply the same edit in index.php (Main Index Template).

    Posted 4 years ago #
  7. I had the same problem but couldn't find a straightforward explanation on the wordpress forums. I tried marcbkk's suggestion, but it didn't give me exactly what I wanted. I made the edit below and it works fine (see it includes "Posted by"):

    <?php the_time('F jS, Y') ?> &middot; Posted by <?php the_author() ?> &middot; <a>#comments"><?php comments_number('No Comments', '1 Comment', '% Comments'); ?></a> &middot; <?php the_category(', ') ?> <?php edit_post_link('Edit', '&middot;', ''); ?>

    Posted 3 years ago #
  8. linda
    Member

    Thanks for the post. Keep sharing more interesting posts like this. It helps me a lot as I am in trouble with this as well. By the way, if you have time, please give me a few seconds by visiting my website at best pillow for side sleepers sobakawa buckwheat pillow organic buckwheat pillow

    Posted 1 year ago #
  9. Those comments are interesting! You've given me idea on how to do it properly. Keep sharing more posts like this.

    mahut

    Posted 1 year ago #

RSS feed for this topic

Reply

You must log in to post.