• [ Moderator note: Topic decapped. Please do not use all caps again, it is considered to be rude. ]

    Hello …

    please understand my English …

    in my index page i want to show post by the list

    EX:
    post 5 (date)
    post 4 (date)
    post 3 (date)
    post 2 (date)
    post 1 (date)

    and now my index page look like this

    EX:
    post 5
    post 4
    post 3
    post 2
    post 1

    How to show date on same row LOOK LIKE THIS CLICK HERE ?

    THIS IS THE CODE I USED
    ——————————————————

    <div class=”archive-columns”>
    <div class=”row”>

      <h4><?php _e(‘Last 10 Posts’, ‘wellthemes’) ?></h4>
      <div class=”archive-list”>
      <?php
      $args = array(‘post_status’ => ‘publish’,’numberposts’ => 100,
      ‘offset’ => 0,
      ‘category’ => 0,
      ‘orderby’ => ‘post_date’,
      ‘order’ => ‘DESC’,
      ‘include’ => ”,
      ‘exclude’ => ”,
      ‘meta_key’ => ”,
      ‘meta_value’ =>”,
      ‘post_type’ => ‘post’,);
      $recent_posts = wp_get_recent_posts($args);

      foreach( $recent_posts as $recent ){
      echo ‘

    1. ‘ . $recent[“post_title”] .’
    2. ‘;
      }
      ?>

    </div>

    </div> <!– /row –>

    </div><!– /archive-columns –>

    ——————————————————————-

    But i tried to add DATE using this code ( $recent[“post_date”] ) instead of this code it will work, but what i expected not get solution

    after that code adding my post look like this :

    postlink-date —-> it ill be show in the same link

    but i want separate post link as the left side then date ill be shown on right side LOOK AT THIS

    ANY SUGGESTION TO ADD THE DATE

Viewing 1 replies (of 1 total)
  • Can you please use the code button to correctly add your code to your post as it is broken and unreadable as it is now, I can then take a look at it and try to offer you a solution.

    Thanks.

Viewing 1 replies (of 1 total)
  • The topic ‘how to add date on same row’ is closed to new replies.