Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 16th, 2018 57 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. $tag = wp_get_post_tags($post->ID);
  2.    
  3. Array
  4. (
  5.    [0] => stdClass Object
  6.        (
  7.            [term_id] => 4
  8.            [name] => tag2
  9.            [slug] => tag2
  10.            [term_group] => 0
  11.            [term_taxonomy_id] => 4
  12.            [taxonomy] => post_tag
  13.            [description] =>
  14.            [parent] => 0
  15.            [count] => 7
  16.        )
  17.  
  18.    [1] => stdClass Object
  19.        (
  20.            [term_id] => 7
  21.            [name] => tag5
  22.            [slug] => tag5
  23.            [term_group] => 0
  24.            [term_taxonomy_id] => 7
  25.            [taxonomy] => post_tag
  26.            [description] =>
  27.            [parent] => 0
  28.            [count] => 6
  29.        )
  30.  
  31. )
  32.    
  33. $tag[0]['slug']
  34.    
  35. $tag[0]->slug
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top