Forums

The same author ? (8 posts)

  1. huggos
    Member
    Posted 5 years ago #

    my blog is http://www.udhetimi.com
    there are shown the last 5 posts on the home page.
    all these posts are written by different authors (as you may see inside the post), but at the home page is shown the same author's name every where.

    what could i do please ?

  2. moshu
    Member
    Posted 5 years ago #

    What is the difference between the code used on the index.php and single.php for displaying the author?

  3. huggos
    Member
    Posted 5 years ago #

    single
    <small>nga: <?php the_author_nickname(); ?>, botuar me: <b><?php the_time('d.m.Y'); ?></b></small></div><br>

    index
    <small>by <b><?php the_author_nickname(); ?></b>, <?php the_time('d.m.Y'); ?></small></div></td>

  4. moshu
    Member
    Posted 5 years ago #

    I cannot read it, try again.
    Read the instructions below about posting code: put it in between backticks - `

  5. huggos
    Member
    Posted 5 years ago #

    single
    ‘<small>nga: '[a]’<?php the_author_nickname(); ?>’’, botuar me: ‘<b>’<?php the_time('d.m.Y'); ?>’</b>’</small>’</div>’<br>’

    index
    ‘<small>’by ‘<b>’<?php the_author_nickname(); ?>’</b>’, ‘<?php the_time('d.m.Y'); ?>’</small>’</div>’</td>’

  6. moshu
    Member
    Posted 5 years ago #

    The "backtick" usually is on the same key as the tilde ~ (left top?)

    Anyway, you can see the two files are using TWO ddifferent code. Did you try to replace the non-working code with the working one?

  7. huggos
    Member
    Posted 5 years ago #

    nothing... :(

  8. moshu
    Member
    Posted 5 years ago #

    I took a closer look to your site and it seems you are NOT using the WP theme system... so I am out of ideas.

Topic Closed

This topic has been closed to new replies.

About this Topic