url

WordPress: Get URL Only of Featured Image

Untuk menampilkan featured image di WordPress sangat mudah sekali, cukup dengan perintah: <?php echo get_the_post_thumbnail( $post_id, $size, $attr ); ?> Contoh: <?php echo get_the_post_thumbnail( $post->ID, full, array( ‘style’ => ‘margin-bottom: 15px;’ ) ); ?> Dan option sizenya bisa disesuaikan dengan… Baca selengkapnya WordPress: Get URL Only of Featured Image

WordPress: Featured Image URL

Post thumbnails are pretty useful and pretty easy to use in WordPress. Simply add: add_theme_support(‘post-thumbnails’); To a theme’s functions.php file and you’ll get a Featured Image module on the admin screen for posts which allows you to select one. It… Baca selengkapnya WordPress: Featured Image URL

WordPress: Media Upload for Your Plugin or Theme

It’s fairly simple to implement, providing you already have a bit of experience with the WordPress API. The first step is to prepare your HTML. Put it wherever the code for your admin page is. You want to have a… Baca selengkapnya WordPress: Media Upload for Your Plugin or Theme

Scroll to Top