featured

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

Scroll to Top