SHARE
TWEET

Kode Membuat Shortcode di WP

pustakakoran Mar 30th, 2017 46 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. Pastekan di functions.php:
  3. ============================
  4.  
  5. function get_gambar($atts) {
  6.     return '<img src="http://keenthemes.com/preview/metronic/theme/assets/global/plugins/jcrop/demos/demo_files/image1.jpg" width="100px">
  7. ';}
  8. add_shortcode('gambar', 'get_gambar');
  9.  
  10. Kode memunculkan di post/pages:
  11.  
  12. [gambar]
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