Support » Themes and Templates » How to add 'posted by' to my theme

  • HOW TO ADD THE POSTED BY IN ORANGE-FLOWER THEME… I TRIED CHECKING THE CSS FILES BUT COULDNOT SOLVE IT.

    HELP ME TO ADD IN ANY POST AS POSTED BY: THIS I NEED IN MY WEB SINCE SO MANY USERS POST THE ARTICLES IN THE WEB.

    PLEASE HELP ME…..

Viewing 1 replies (of 1 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Please don’t post in all caps. It’s rude.

    The theme is this one I presume: http://wordpress.org/extend/themes/orange-flower

    You need to edit the PHP files for the theme, not the CSS.

    You want to add in something like
    Written by: <?php the_author_posts_link(); ?>

    single.php will edit the individual posts and you’ll want to add it to
    <div class="pmeta"><span class="pdate"><?php the_time('F jS, Y') ?></span> <span class="pcat">Posted in <?php the_category(', ') ?></span><?php the_tags(' <span class="ptags">Tags: ', ', ', '</span>'); ?></div>

    index.php will edit the lists of posts, and you want to add it here:
    <div class="pmeta"><span class="pdate"><?php the_time('F jS, Y') ?></span> <span class="pcat">Posted in <?php the_category(', ') ?></span><?php the_tags(' <span class="ptags">Tags: ', ', ', '</span>'); ?></div>

Viewing 1 replies (of 1 total)
  • The topic ‘How to add 'posted by' to my theme’ is closed to new replies.