Advertisement
wdtobibur

Admin and post data

Oct 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1.  
  2.  
  3.                     $post_data[]            =   array(
  4.                         'title'             =>  get_the_title(),
  5.                         'date'              =>  get_the_time('M d Y'),
  6.                         'permalink'         =>  get_the_permalink(),
  7.                         'thumbnail'         =>  get_the_post_thumbnail_url(  get_the_ID(), 'large' ),
  8.                         'author'            =>  get_the_author_meta( 'display_name' ),
  9.                         'author_avatar'     =>  get_avatar_url( get_the_author_meta( 'ID' ) ),
  10.                         'author_link'       =>  get_author_posts_url(get_the_author_meta('ID')),
  11.                         'cat'               =>  $category->name,
  12.                         'catlink'           =>  get_category_link( $category ),
  13.                     );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement