Advertisement
pusatdata

Kode Membuat Shortcode di WP

Mar 30th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  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]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement