{"id":10989,"date":"2021-04-24T08:05:32","date_gmt":"2021-04-24T08:05:32","guid":{"rendered":"https:\/\/hosteko.com\/blog\/?p=10989"},"modified":"2021-04-24T08:05:32","modified_gmt":"2021-04-24T08:05:32","slug":"tips-trik-dan-hacks-untuk-wordpress","status":"publish","type":"post","link":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress","title":{"rendered":"Tips, Trik dan Hacks Untuk WordPress"},"content":{"rendered":"<p>Pada artikel ini akan berbagi beberapa tips, trik dan hacks WordPress yang paling dicari yang akan membantu menggunakan WordPress seperti pro sebagai berikut :<\/p>\n<h3><b>1. Menghapus Post Date Stamp dari SERP<\/b><\/h3>\n<p>Jika konten cenderung tidak bersifat time-sensitive atau berkaitan dengan pentingnya kronologi waktu yang ada, pastikan menghindari WordPress post date stamp pada SERP (hasil pencarian atau penelusuran dari mesin sejenis Google). Tindakan ini dapat meningkatkan CTR terhadap post di website yang muncul di SERP. Copy-paste kode yang berikut pada single.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;?php the_time(\u2018F jS, Y\u2019) ?&gt;<\/span><\/p><\/blockquote>\n<p>Ganti kode ini dengan kode di bawah ini :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;script language=\u201djavascript\u201d type=\u201dtext\/javascript\u201d&gt;document.write(\u201c&lt;?php the_time(\u2018F jS, Y\u2019) ?&gt;\u201d);&lt;\/script&gt;<\/span><\/p><\/blockquote>\n<h3><b>2. Menambah Maximum Upload Size<\/b><\/h3>\n<p>Hack WordPress berikutnya adalah menambah maximum upload size. Tambahkan kode berikut ke .htaccess file maka dapat menambahkan upload limit sampai 64MB :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">php_value upload_max_filesize 64M<\/span><\/p>\n<p><span style=\"color: #ff0000;\">php_value post_max_size 64M<\/span><\/p>\n<p><span style=\"color: #ff0000;\">php_value max_execution_time 300<\/span><\/p>\n<p><span style=\"color: #ff0000;\">php_value max_input_time 300<\/span><\/p><\/blockquote>\n<p>Bagi yang tidak ingin mengutak-atik wp-admin sendiri, ada cara alternatif yaitu mengubahnya melalui hosting :<\/p>\n<p>Pergi ke <strong>cPanel<\/strong> &gt; pilih <strong>select php version<\/strong> &gt; ubah php options<\/p>\n<h3><b>3. Instalasi Child Theme<\/b><\/h3>\n<p>Buatlah child theme dan tambahkan kode berikut ini ke CSS file pada child theme yang telah dibuat :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">\/*<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Theme Name: Child Theme Name<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Template: parenttheme<\/span><\/p>\n<p><span style=\"color: #ff0000;\">*\/<\/span><\/p>\n<p><span style=\"color: #ff0000;\">@import url(\u201c..\/parenttheme\/style.css\u201d);<\/span><\/p><\/blockquote>\n<h3><b>4. Melakukan Custom Terhadap Error Page<\/b><\/h3>\n<p>Buatlah error pages untuk 403, 404 and 500 errors lalu upload ke base WordPress installation. Tambahkan code snippet berikut ke .htaccess file untuk mengaktifkan error pages yang sudah diatur :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"># Custom error page for error 403, 404 and 500<\/span><\/p>\n<p><span style=\"color: #ff0000;\">ErrorDocument 404 \/404-error.html<\/span><\/p>\n<p><span style=\"color: #ff0000;\">ErrorDocument 403 \/ 403-error.html<\/span><\/p>\n<p><span style=\"color: #ff0000;\">ErrorDocument 500 \/ 500-error.html<\/span><\/p><\/blockquote>\n<h3><b>5. Melakukan Custom pada Content Editor<\/b><\/h3>\n<p>Menambahkan \u201cstyle\u201d pada editor dapat meningkatkan pengalaman menulis di WordPress editor. Dapat mencocokkan typographic style dari backend dengan front-end yang nantinya bisa memudahkan untuk melihat versi terakhir (paling mendekati versi final) pada saat menulis. Tips WordPress yang disampaikan berikut ini mampu mengurangi switching dari back hingga forth antara editor dan content output.<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function my_editor_styles() {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_editor_styles(\u00e9ditor-style.css\u2019);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_action(\u2018admin_init\u2019,\u2019my_editor_styles\u2019);<\/span><\/p><\/blockquote>\n<h3><b>6. Mematikan Self-Pingback<\/b><\/h3>\n<p>Tambahkan kode berikut ke functions.php file untuk mematikan self pingbacks :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">\/\/ Disable self pingbacks in WordPress<\/span><\/p>\n<p><span style=\"color: #ff0000;\">function disable_self_trackback( &amp;$links ) {<\/span><br \/>\n<span style=\"color: #ff0000;\">foreach ( $links as $l =&gt; $link )<\/span><br \/>\n<span style=\"color: #ff0000;\">if ( 0 === strpos( $link, get_option( \u2018home\u2019 ) ) )<\/span><br \/>\n<span style=\"color: #ff0000;\">unset($links[$l]);<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_action( \u2018pre_ping\u2019, \u2018disable_self_trackback\u2019 );<\/span><\/p><\/blockquote>\n<p>Sebenarnya, untuk mematikan self-pingback, juga bisa menggunakan <strong>WP-Optimize plugin<\/strong> yang dapat melakukan fungsi flush atau remove. Silahkan pilih metode mana yang ingin digunakan.<\/p>\n<h3><b>7. Melakukan Block Directories dengan Menggunakan robot.txt<\/b><\/h3>\n<p>Tambahkan code snippet berikut ke robot.txt file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">User-agent: *<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/cgi-bin\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/wp-admin\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/wp-includes\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/xmlrpc.php<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/wp-content\/plugins\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/wp-content\/cache\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/wp-content\/themes\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/trackback\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/feed\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/comments\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/category\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/trackback\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/feed\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/comments\/<\/span><br \/>\n<span style=\"color: #ff0000;\">Disallow: \/*?<\/span><br \/>\n<span style=\"color: #ff0000;\">Allow: \/wp-content\/uploads\/<\/span><\/p><\/blockquote>\n<h3><b>8. Membuat Send-to-Twitter Button<\/b><\/h3>\n<p>Dengan sekali klik, pembaca dapat share blog post URL ke Twitter. Caranya sederhana, masukkan kode snippet dimanapun pada posts :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;a href=\u201dhttp:\/\/twitter.com\/home?status=Currently reading &lt;?php the_permalink(); ?&gt;\u201d title=\u201dClick to send this page to Twitter!\u201d target=\u201d_blank\u201d&gt;Share on Twitter&lt;\/a&gt;<\/span><\/p><\/blockquote>\n<p>Dapat juga menggunakan cara alternatif lain yaitu dengan melakukan instalasi\u00a0<strong>plugin Ultimate Social Media Icon<\/strong> untuk mengaktifkan fungsi send-to-twitter button tersebut.<\/p>\n<h3><b>9. Menambahkan Actionable Button Pada Published Comment<\/b><\/h3>\n<p>Tambahkan kode berikut ke functions.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function delete_comment_link($id) {<\/span><br \/>\n<span style=\"color: #ff0000;\">if (current_user_can(\u2018edit_post\u2019)) {<\/span><br \/>\n<span style=\"color: #ff0000;\">echo \u2018| &lt;a href=\u201d\u2018.admin_url(\u201ccomment.php?action=cdc&amp;c=$id\u201d).&#8217;\u201d&gt;del&lt;\/a&gt; \u2018;<\/span><br \/>\n<span style=\"color: #ff0000;\">echo \u2018| &lt;a href=\u201d\u2018.admin_url(\u201ccomment.php?action=cdc&amp;dt=spam&amp;c=$id\u201d).&#8217;\u201d&gt;spam&lt;\/a&gt;\u2019;<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><\/p><\/blockquote>\n<p>Lalu, tambahkan code snippet berikut ke comments.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">delete_comment_link(get_comment_ID());<\/span><\/p><\/blockquote>\n<h3><b>10. Mengganti Teks \u201cHowdy\u201d dari Dashboard<\/b><\/h3>\n<p>Tambahkan kode berikut ke functions.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function replace_howdy( $wp_admin_bar ) {<\/span><br \/>\n<span style=\"color: #ff0000;\">$my_account=$wp_admin_bar-&gt;get_node(\u2018my-account\u2019);<\/span><br \/>\n<span style=\"color: #ff0000;\">$newtitle = str_replace( \u2018Howdy,\u2019, \u2018Logged in as\u2019, $my_account-&gt;title );<\/span><br \/>\n<span style=\"color: #ff0000;\">$wp_admin_bar-&gt;add_node( array(<\/span><br \/>\n<span style=\"color: #ff0000;\">\u2018id\u2019 =&gt; \u2018my-account\u2019,<\/span><br \/>\n<span style=\"color: #ff0000;\">\u2018title\u2019 =&gt; $newtitle,<\/span><br \/>\n<span style=\"color: #ff0000;\">) );<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_filter( \u2018admin_bar_menu\u2019, \u2018replace_howdy\u2019,25 );<\/span><\/p><\/blockquote>\n<p>Apa yang perlu dilakukan hanyalah memasukkan pesan yang baru pada elemen kedua di dalam $newtitle\u00a0array.<\/p>\n<h3><b>11. Melakukan Custom Pada CSS Untuk Individual Post<\/b><\/h3>\n<p>Sebenarnya pada setiap theme yang premium atau yang bagus, theme panel editor sudah tersedia pada sidebar secara otomatis. Apabila tidak, tampilkan customized sidebar content untuk individual posts dengan menggunakan custom fields. Caranya, copy-paste kode ini ke single.php, index.php dan page.php file yang ada :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;?php get_sidebar(); ?&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Ganti dengan potongan kode itu.<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;?php $sidebar = get_post_meta($post-&gt;ID, \u201csidebar\u201d, true);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">get_sidebar($sidebar);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">?&gt;<\/span><\/p><\/blockquote>\n<p>Ketika menulis post, buatlah new custom fields bernama sidebar. Kemudian, di value section, masukkan nama dari sidebar yang ingin di display sehingga dapat membangun dua sidebar files yang berbeda (contohnya, sidebar-category.php dan sidebar-promotion.php). Kemudian, jika ingin menunjukkan sidebar-category.php, ganti key sebagai \u201csidebar\u201d dan value sebagai \u201csidebar-category\u201c.<\/p>\n<h3><b>12. Menampilkan Popular Post di Sidebar<\/b><\/h3>\n<p>Untuk menunjukkan 5 post paling populer berdasarkan penghitungan komentar, tempatkan kode berikut di sidebar.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;?php $result = $wpdb-&gt;get_results(\u201cSELECT comment_count,ID,post_title FROM $wpdb-&gt;posts ORDER BY comment_count DESC LIMIT 0 , 5\u2033);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">foreach ($result as $post) {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">setup_postdata($post);<\/span><br \/>\n<span style=\"color: #ff0000;\">$postid = $post-&gt;ID;<\/span><br \/>\n<span style=\"color: #ff0000;\">$title = $post-&gt;post_title;<\/span><br \/>\n<span style=\"color: #ff0000;\">$commentcount = $post-&gt;comment_count;<\/span><br \/>\n<span style=\"color: #ff0000;\">if ($commentcount != 0) { ?&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;li&gt;&lt;a href=\u201d&lt;?php echo get_permalink($postid); ?&gt;\u201d title=\u201d&lt; ?php echo $title ?&gt;\u201d&gt;&lt; ?php echo $title ?&gt;&lt;\/a&gt; {&lt;?php echo $commentcount ?&gt;}&lt;\/li&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;?php } } ?&gt;<\/span><\/p><\/blockquote>\n<p>Cara lain untuk melakukannya tanpa memasukkan kode adalah :<\/p>\n<p>pergi ke <strong>wp-admin<\/strong> &gt; klik <strong>Appearance<\/strong> &gt; pilih <strong>Widget<\/strong> &gt; tambahkan widget <strong>Popular Post<\/strong>.<\/p>\n<h3><b>13. Menampilkan Tweet Pilihan<\/b><\/h3>\n<p>Jika seorang blogger yang memiliki akun twitter pribadi, mungkin ingin menunjukkan pada blog readers bagaimana tweet-tweet yang dibagikan secara aktif. Dalam beberapa kasus dapat menampilkan tweet pilihan ke blog agar dapat dibaca oleh blog readers dengan beberapa keyword tertentu atau hashtag tertentu. Ikuti langkah-langkah berikut :<\/p>\n<ul>\n<li>Temukan menu <strong>Twitter Widgets<\/strong>&gt;&gt; klik tombol bertuliskan &#8220;<strong>create new<\/strong>&#8221; &gt;&gt; klik pada &#8220;<strong>search<\/strong>&#8221; tab.<\/li>\n<li>Dalam search query box, pastikan enter from:dartcreations webdesign.<\/li>\n<li>Gantikan \u201cthe dartcreations\u201d dengan \u201cyour twitter handle\u201d dan \u201cwebdesign\u201d dengan \u201cyour preferred query\u201d.<\/li>\n<li>Lalu simpanlah widget dan copy widget itu ke widgets section yang ada di WordPress site.<\/li>\n<\/ul>\n<p>Atau yang tidak ingin mengutak-atik WordPress dapat menggunakan bantuan plugin yang ada.<\/p>\n<h3><b>14. Mengarahkan WordPress feeds ke FeedBurner feeds<\/b><\/h3>\n<p>Tambahkan kode yang kami berikan berikut ini ke .htaccess untuk mengubah WP feeds menjadi FeedBurner feeds seperti yang diinginkan :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\"># temp redirect wordpress content feeds to feedburner<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;IfModule mod_rewrite.c&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">RewriteEngine on<\/span><\/p>\n<p><span style=\"color: #ff0000;\">RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]<\/span><br \/>\n<span style=\"color: #ff0000;\">RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]<\/span><br \/>\n<span style=\"color: #ff0000;\">RewriteRule ^feed\/?([_0-9a-z-]+)?\/?$ http:\/\/feeds.feedburner.com\/yourfeed [R=302,NC,L]<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;\/IfModule&gt;<\/span><\/p><\/blockquote>\n<p>Pastikan bahwa kode yang telah dilakukan lewat kode di atas dengan FeedBurner tersinkronisasi sebelum disimpan.<\/p>\n<h3><b>15. Menghapus Semua Pingback<\/b><\/h3>\n<p>Eksekusilah SQL query di bawah ini atas database yang dimiliki untuk menghapus seluruh pingback yang diterima website :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">DELETE FROM wp_comments WHERE comment_type = \u2018pingback\u2019;<\/span><\/p><\/blockquote>\n<h3><b>16. Menambahkan Pinterest \u201cPin It\u201d Button<\/b><\/h3>\n<p>Tambahkan kode yang berikut pada footer.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;script type=\u201dtext\/javascript\u201d&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">(function() {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">window.PinIt = window.PinIt || { loaded:false };<\/span><\/p>\n<p><span style=\"color: #ff0000;\">if (window.PinIt.loaded) return;<\/span><br \/>\n<span style=\"color: #ff0000;\">window.PinIt.loaded = true;<\/span><br \/>\n<span style=\"color: #ff0000;\">function async_load(){<\/span><br \/>\n<span style=\"color: #ff0000;\">var s = document.createElement(\u201cscript\u201d);<\/span><br \/>\n<span style=\"color: #ff0000;\">s.type = \u201ctext\/javascript\u201d;<\/span><br \/>\n<span style=\"color: #ff0000;\">s.async = true;<\/span><br \/>\n<span style=\"color: #ff0000;\">s.src = \u201chttp:\/\/assets.pinterest.com\/js\/pinit.js\u201d;<\/span><br \/>\n<span style=\"color: #ff0000;\">var x = document.getElementsByTagName(\u201cscript\u201d)[0];<\/span><br \/>\n<span style=\"color: #ff0000;\">x.parentNode.insertBefore(s, x);<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">if (window.attachEvent)<\/span><br \/>\n<span style=\"color: #ff0000;\">window.attachEvent(\u201conload\u201d, async_load);<\/span><br \/>\n<span style=\"color: #ff0000;\">else<\/span><br \/>\n<span style=\"color: #ff0000;\">window.addEventListener(\u201cload\u201d, async_load, false);<\/span><\/p>\n<p><span style=\"color: #ff0000;\">})();<\/span><br \/>\n<span style=\"color: #ff0000;\">&lt;\/script&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">Lalu, masukkan potongan kode ini ke file single.php anda<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;?php $pinterestimage = wp_get_attachment_image_src( get_post_thumbnail_id( $post-&gt;ID ), \u2018full\u2019 ); ?&gt;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">&lt;a href=\u201dhttp:\/\/pinterest.com\/pin\/create\/button\/?url=&lt;?php echo urlencode(get_permalink($post-&gt;ID)); ?&gt;&amp;media=&lt;?php echo $pinterestimage[0]; ?&gt;&amp;description=&lt;?php the_title(); ?&gt;\u201d class=\u201dpin-it-button\u201d count-layout=\u201dvertical\u201d&gt;Pin It&lt;\/a&gt;<\/span><\/p><\/blockquote>\n<h3><b>17. Mengubah Excerpt Length<\/b><\/h3>\n<p>Sesuai dengan default setting, length of the excerpts di WordPress adalah 55 words. Ubah functions.php file dengan menambahkan kode berikut dan customize panjangnya sehingga ukurannya pas :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function custom_excerpt_length( $length ) {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">return 20;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_filter( \u2018excerpt_length\u2019, \u2018custom_excerpt_length\u2019, 999 );<\/span><\/p><\/blockquote>\n<h3><b>18. Meningkatkan PHP Memory<\/b><\/h3>\n<p>Jika mengaktifkan plugin yang berat dan menemukan kendala error berbunyi, \u201cmemory exhausted\u201d tambahkan kode berikut pada wp-config.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">define(\u2018WP_MEMORY_LIMIT\u2019, \u201964M\u2019);<\/span><\/p><\/blockquote>\n<h3><b>19. Menghapus Semua Unfiltered Spam Comments Dalam Sekejap<\/b><\/h3>\n<p>Spam comments berhasil lolos dari spam filters dan mencapai \u2018awaiting moderation\u2019 yang ada di list. Menghapus semuanya secara manual tentu memakan waktu. Pertama, login ke <strong>PHPMyAdmin<\/strong>, pilih <strong>WordPress database<\/strong>, klik SQL. Terakhir, copy-paste kode berikut ke SQL command window:<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">DELETE from wp_comments WHERE comment_approved = \u20180\u2019;<\/span><\/p><\/blockquote>\n<h3><b>20. Menghapus Revisi Post Terakhir<\/b><\/h3>\n<p>Jika tidak ingin hanya mematikan fungsi otomatis dari post revision, tetapi juga menghapus semua revisi yang telah tersimpan di database, jalankan SQL query dari PHPMyAdmin dengan kode berikut :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">DELETE FROM wp_posts WHERE post_type = \u2018revision\u2019;<\/span><\/p><\/blockquote>\n<h3><b>21. Menggunakan Normal Quotes Bukan Curly Quotes<\/b><\/h3>\n<p>Untuk mengubah normal quotes ke curly quotes, gunakan code berikut :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">remove_filter(\u2018the_content\u2019, \u2018wptexturize\u2019);<\/span><\/p><\/blockquote>\n<h3><b>22. Menambahkan Customized CSS File<\/b><\/h3>\n<p>Tambahkan customized CSS file dengan nama \u2018custom.css\u2019 ke theme dengan menambahkan following code pada funstions.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function custom_style_sheet() {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">wp_enqueue_style( \u2018custom-styling\u2019, get_stylesheet_directory_uri() . \u2018\/custom.css\u2019 );<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_action(\u2018wp_enqueue_scripts\u2019, \u2018custom_style_sheet\u2019);<\/span><\/p><\/blockquote>\n<p>Pastikan lokasi CSS file berada pada directory yang sama dengan main CSS file-nya.<\/p>\n<h3><b>23. Menambahkan Custom Page<\/b><\/h3>\n<p>Melakukan custom design pada suatu page mungkin untuk dilakukan. Dapat menggunakan simple HTML\/CSS dan melakukan instalasinya pada WordPress site. Apa yang dibutuhkan hanyalah menambahkan following code ke bagian atas custom HTML page :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;?php \/* Template Name: Squeeze *\/ ?&gt;<\/span><\/p><\/blockquote>\n<p>Setelah menambahkan kodenya, simpan page sebagai squeeze.php dan upload page itu ke current theme folder (..\/wp-content\/themes\/your-theme-name). Setelah file telah sukses di-upload, buatlah new page dan pilih template Squeeze di bawah \u201cPage Attributes\u201d. Terakhir, publish page itu untuk melihatnya secara langsung.<\/p>\n<h3><b>24. Menambahkan Featured Image Support ke Theme<\/b><\/h3>\n<p>Tambahkan kode berikut ke functions.php file di theme :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">add_theme_support( \u2018post-thumbnails\u2019 );<\/span><\/p><\/blockquote>\n<h3><b>25. Melakukan Custom Pada Login Page<\/b><\/h3>\n<p>Menambahkan beberapa perubahan pada function.php file dapat memungkinkan melakukan customize pada login page. Ada beberapa tahap yang bisa dilakukan. Pertama, pada current theme directory (..\/wp-content\/themes\/your-theme-name), tambahkan folder dengan nama \u201clogin\u201d. Buatlah CSS file didalam login folder tersebut dan namai dengan custom-login-styles.css Tahap berikutnya, tambahkan following code pada functions.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function my_custom_login() {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">echo \u2018&lt;link rel=\u201dstylesheet\u201d type=\u201dtext\/css\u201d href=\u201d\u2018 . get_bloginfo(\u2018stylesheet_directory\u2019) . \u2018\/login\/custom-login-styles.css\u201d \/&gt;\u2019;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_action(\u2018login_head\u2019, \u2018my_custom_login\u2019);<\/span><\/p><\/blockquote>\n<h3><b>26. Menambahkan Infinite Scroll<\/b><\/h3>\n<p>Load new content secara otomatis ketika pembaca melakukan scroll down dan dan sampai pada bottom page. Sebenarnya infinite scroll ini adalah Jetpack plugin feature. Jika menggunakan well-coded theme semacam default WordPress theme yang telah ada, theme berarti telah support infinite scroll. Lakukan instalasi pada Jetpack plugin, aktifkan infinite scroll feature dan tambahkan following code ke functions.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">add_theme_support( \u2018infinite-scroll\u2019, array(<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u2018container\u2019 =&gt; \u2018content\u2019,<\/span><\/p>\n<p><span style=\"color: #ff0000;\">\u2018footer\u2019 =&gt; \u2018page\u2019,<\/span><\/p>\n<p><span style=\"color: #ff0000;\">) );<\/span><\/p><\/blockquote>\n<h3><b>27. Menampilkan Random Image Header<\/b><\/h3>\n<p>Jika ingin menampilkan random image headers di blog, trick ini wajib dilakukan. Namai image 1.jpg, 2.jpg, 3.jpg, dan seterusnya. Upload semua image tersebut ke dalam folder di theme directory. Lalu copy-paste kode di bawah ini ke header.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;img src=\u201dhttp:\/\/Path_to_image_folder\/&lt;?php echo(rand(1,10)); ?&gt;.jpg\u201d width=\u201dimage_width\u201d height=\u201dimage_height\u201d alt=\u201dimage_alt_text\u201d \/&gt;<\/span><\/p><\/blockquote>\n<p>Pastikan mengganti the Path_to_image_folder dengan path yang benar.<\/p>\n<h3><b>28. Menambahkan Featured Box Dalam Konten<\/b><\/h3>\n<p>Tambahkan kode berikut di functions.php file pada theme :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">function make_yellowbox($atts, $content = null) {<\/span><\/p>\n<p><span style=\"color: #ff0000;\">return \u2018&lt;p style=\u201dbackground: none repeat scroll 0 0 #ff9; clear: both; margin-bottom: 18px; overflow: hidden; border: 1px solid #e5e597; padding: 13px;\u201d&gt;\u2019 . do_shortcode($content) . \u2018&lt;\/p&gt;\u2019;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">add_shortcode(\u2018yellowbox\u2019, \u2018make_yellowbox\u2019);<\/span><\/p><\/blockquote>\n<h3><b>29. Melihat Seluruh Plugin yang Aktif<\/b><\/h3>\n<p>Demi keperluan maintenance atau pengelolaan yang mumpuni, mungkin ingin melihat atau mendapatkan list lengkap dari semua plugin aktif yang sedang berjalan atau ter-install di WordPress. Cobalah untuk copy-paste kode berikut ke functions.php file, maka kemudian akan mulai melihat plugin aktif apa saja yang ada dashboard :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">add_action(\u2018wp_dashboard_setup\u2019,\u2019wpse_54742_wp_dashboard_setup\u2019);<\/span><br \/>\n<span style=\"color: #ff0000;\">function wpse_54742_wp_dashboard_setup(){<\/span><br \/>\n<span style=\"color: #ff0000;\">wp_add_dashboard_widget(\u2018wpse_54742_active_site_plugins\u2019, __(\u2018Active Plugins\u2019),\u2019wpse_54742_active_site_plugins\u2019);} function wpse_54742_active_site_plugins(){<\/span><br \/>\n<span style=\"color: #ff0000;\">$the_plugs = get_option(\u2018active_plugins\u2019);<\/span><br \/>\n<span style=\"color: #ff0000;\">echo \u2018&lt;ul&gt;\u2019;<\/span><br \/>\n<span style=\"color: #ff0000;\">foreach($the_plugs as $key =&gt; $value){<\/span><br \/>\n<span style=\"color: #ff0000;\">$string = explode(\u2018\/\u2019,$value);\/\/ Folder name will be displayed<\/span><\/p>\n<p><span style=\"color: #ff0000;\">echo \u2018&lt;li&gt;\u2019.$string[0].'&lt;\/li&gt;\u2019; }<\/span><br \/>\n<span style=\"color: #ff0000;\">echo \u2018&lt;\/ul&gt;\u2019;}<\/span><\/p><\/blockquote>\n<h3><b>30. Menampilkan Iklan AdSense Hanya Pada Mesin Penelusur<\/b><\/h3>\n<p>Jika memerhatikan, pada bagian bertuliskan total add clicks yang diterima pada website, maka akan menemukan bahwa para pengguna mesin penelusur semacam Google cenderung lebih banyak yang klik \u201ccontextual ads\u201d seperti AdSense bila dibandingkan dengan pengunjung lainnya.<\/p>\n<p>Jadi bisa menampilkan iklan AdSense hanya pada mesin penelusur seperti Google dengan tujuan untuk meningkatkan CTR terhadap iklan. Untuk menampilkan add hanya pada pengunjung dari mesin pencari, copy-paste kode yang diberikan berikut pada functions.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">$ref = $_SERVER[\u2018HTTP_REFERER\u2019];<\/span><br \/>\n<span style=\"color: #ff0000;\">$SE = array(\u2018\/search?\u2019, \u2018images.google.\u2019, \u2018web.info.com\u2019, \u2018search.\u2019, \u2018del.icio.us\/search\u2019, \u2018soso.com\u2019, \u2018\/search\/\u2019, \u2018.yahoo.\u2019);<\/span><br \/>\n<span style=\"color: #ff0000;\">foreach ($SE as $source) {<\/span><br \/>\n<span style=\"color: #ff0000;\">if (strpos($ref,$source)!==false) {<\/span><br \/>\n<span style=\"color: #ff0000;\">setcookie(\u201csevisitor\u201d, 1, time()+3600, \u201c\/\u201d, \u201c.domainanda.com\u201d);<\/span><br \/>\n<span style=\"color: #ff0000;\">$sevisitor=true;<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><br \/>\n<span style=\"color: #ff0000;\">function visits_from_searchengine(){<\/span><br \/>\n<span style=\"color: #ff0000;\">global $sevisitor;<\/span><br \/>\n<span style=\"color: #ff0000;\">if ($sevisitor==true || $_COOKIE[\u201csevisitor\u201d]==1) {<\/span><br \/>\n<span style=\"color: #ff0000;\">return true;<\/span><br \/>\n<span style=\"color: #ff0000;\">}<\/span><\/p>\n<p><span style=\"color: #ff0000;\">return false;<\/span><\/p>\n<p><span style=\"color: #ff0000;\">}<\/span><\/p><\/blockquote>\n<p>Pastikan mengubah domainanda.com menjadi domain yang dimiliki. Kemudian, tambahkan code snippet berikan berikut pada single.php file :<\/p>\n<blockquote><p><span style=\"color: #ff0000;\">&lt;?php if (function_exists(\u2018visits_from_searchengine\u2019)) {<\/span><br \/>\n<span style=\"color: #ff0000;\">if (visits_from_searchengine()) { ?&gt;<\/span><br \/>\n<span style=\"color: #ff0000;\">[Kode AdSense Anda]<\/span><br \/>\n<span style=\"color: #ff0000;\">&lt;?php } } ?&gt;<\/span><\/p><\/blockquote>\n<p>Jangan lupa untuk menambahkan Kode AdSense dengan mengganti teks yang tertulis sebagai [Kode AdSense Anda].<\/p>\n\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-right kksr-valign-bottom\"\n    data-payload='{&quot;align&quot;:&quot;right&quot;,&quot;id&quot;:&quot;10989&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;bottom&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;2&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;0&quot;,&quot;greet&quot;:&quot;Jadilah yang pertama untuk memberi nilai&quot;,&quot;legend&quot;:&quot;5\\\/5 - (2 votes)&quot;,&quot;size&quot;:&quot;22&quot;,&quot;title&quot;:&quot;Tips, Trik dan Hacks Untuk WordPress&quot;,&quot;width&quot;:&quot;110&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 110px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 0px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 22px; height: 22px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 17.6px;\">\n            5\/5 - (2 votes)    <\/div>\n    <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Pada artikel ini akan berbagi beberapa tips, trik dan hacks WordPress yang paling dicari yang akan membantu menggunakan WordPress seperti pro sebagai berikut : 1. Menghapus Post Date Stamp dari SERP Jika konten cenderung tidak bersifat time-sensitive atau berkaitan dengan pentingnya kronologi waktu yang ada, pastikan menghindari WordPress post date stamp pada SERP (hasil pencarian [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":11000,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rop_custom_images_group":[],"rop_custom_messages_group":[],"rop_publish_now":"initial","rop_publish_now_accounts":{"twitter_2392824914_2392824914":""},"rop_publish_now_history":[],"rop_publish_now_status":"pending","_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"enabled":false},"version":2}},"categories":[3,8],"tags":[3890],"class_list":["post-10989","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog","category-wordpress","tag-tips-trik-dan-hacks-untuk-wordpress"],"featured_image_src":{"landsacpe":["https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress-1140x445.png",1140,445,true],"list":["https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress-463x348.png",463,348,true],"medium":["https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress-300x169.png",300,169,true],"full":["https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png",1920,1080,false]},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Tips, Trik dan Hacks Untuk WordPress - Hosteko Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Tips, Trik dan Hacks Untuk WordPress - Hosteko Blog\" \/>\n<meta property=\"og:description\" content=\"Pada artikel ini akan berbagi beberapa tips, trik dan hacks WordPress yang paling dicari yang akan membantu menggunakan WordPress seperti pro sebagai berikut : 1. Menghapus Post Date Stamp dari SERP Jika konten cenderung tidak bersifat time-sensitive atau berkaitan dengan pentingnya kronologi waktu yang ada, pastikan menghindari WordPress post date stamp pada SERP (hasil pencarian [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\" \/>\n<meta property=\"og:site_name\" content=\"Hosteko Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-24T08:05:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Risa Y\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Risa Y\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#article\",\"isPartOf\":{\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\"},\"author\":{\"name\":\"Risa Y\",\"@id\":\"https:\/\/hosteko.com\/blog\/#\/schema\/person\/c1d3dbd7c27bd3574f8c7042165a660b\"},\"headline\":\"Tips, Trik dan Hacks Untuk WordPress\",\"datePublished\":\"2021-04-24T08:05:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\"},\"wordCount\":2272,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/hosteko.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png\",\"keywords\":[\"tips trik dan hacks untuk wordpress\"],\"articleSection\":[\"Blog\",\"Wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\",\"url\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\",\"name\":\"Tips, Trik dan Hacks Untuk WordPress - Hosteko Blog\",\"isPartOf\":{\"@id\":\"https:\/\/hosteko.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png\",\"datePublished\":\"2021-04-24T08:05:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage\",\"url\":\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png\",\"contentUrl\":\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hosteko.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Tips, Trik dan Hacks Untuk WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hosteko.com\/blog\/#website\",\"url\":\"https:\/\/hosteko.com\/blog\/\",\"name\":\"Hosteko Blog\",\"description\":\"Berita &amp; Informasi Dunia IT\",\"publisher\":{\"@id\":\"https:\/\/hosteko.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hosteko.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hosteko.com\/blog\/#organization\",\"name\":\"HOSTEKO\",\"url\":\"https:\/\/hosteko.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hosteko.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2019\/04\/logo-hosteko.png\",\"contentUrl\":\"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2019\/04\/logo-hosteko.png\",\"width\":195,\"height\":57,\"caption\":\"HOSTEKO\"},\"image\":{\"@id\":\"https:\/\/hosteko.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/hosteko.com\/blog\/#\/schema\/person\/c1d3dbd7c27bd3574f8c7042165a660b\",\"name\":\"Risa Y\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hosteko.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7eac241dffbc583c56ba1ff19703f5623dab2b6a88bbb0583e815230564dac5e?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7eac241dffbc583c56ba1ff19703f5623dab2b6a88bbb0583e815230564dac5e?s=96&d=mm&r=g\",\"caption\":\"Risa Y\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Tips, Trik dan Hacks Untuk WordPress - Hosteko Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress","og_locale":"en_US","og_type":"article","og_title":"Tips, Trik dan Hacks Untuk WordPress - Hosteko Blog","og_description":"Pada artikel ini akan berbagi beberapa tips, trik dan hacks WordPress yang paling dicari yang akan membantu menggunakan WordPress seperti pro sebagai berikut : 1. Menghapus Post Date Stamp dari SERP Jika konten cenderung tidak bersifat time-sensitive atau berkaitan dengan pentingnya kronologi waktu yang ada, pastikan menghindari WordPress post date stamp pada SERP (hasil pencarian [&hellip;]","og_url":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress","og_site_name":"Hosteko Blog","article_published_time":"2021-04-24T08:05:32+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png","type":"image\/png"}],"author":"Risa Y","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Risa Y","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#article","isPartOf":{"@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress"},"author":{"name":"Risa Y","@id":"https:\/\/hosteko.com\/blog\/#\/schema\/person\/c1d3dbd7c27bd3574f8c7042165a660b"},"headline":"Tips, Trik dan Hacks Untuk WordPress","datePublished":"2021-04-24T08:05:32+00:00","mainEntityOfPage":{"@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress"},"wordCount":2272,"commentCount":0,"publisher":{"@id":"https:\/\/hosteko.com\/blog\/#organization"},"image":{"@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage"},"thumbnailUrl":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png","keywords":["tips trik dan hacks untuk wordpress"],"articleSection":["Blog","Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#respond"]}]},{"@type":"WebPage","@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress","url":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress","name":"Tips, Trik dan Hacks Untuk WordPress - Hosteko Blog","isPartOf":{"@id":"https:\/\/hosteko.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage"},"image":{"@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage"},"thumbnailUrl":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png","datePublished":"2021-04-24T08:05:32+00:00","breadcrumb":{"@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#primaryimage","url":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png","contentUrl":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/hosteko.com\/blog\/tips-trik-dan-hacks-untuk-wordpress#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hosteko.com\/blog"},{"@type":"ListItem","position":2,"name":"Tips, Trik dan Hacks Untuk WordPress"}]},{"@type":"WebSite","@id":"https:\/\/hosteko.com\/blog\/#website","url":"https:\/\/hosteko.com\/blog\/","name":"Hosteko Blog","description":"Berita &amp; Informasi Dunia IT","publisher":{"@id":"https:\/\/hosteko.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hosteko.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hosteko.com\/blog\/#organization","name":"HOSTEKO","url":"https:\/\/hosteko.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hosteko.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2019\/04\/logo-hosteko.png","contentUrl":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2019\/04\/logo-hosteko.png","width":195,"height":57,"caption":"HOSTEKO"},"image":{"@id":"https:\/\/hosteko.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/hosteko.com\/blog\/#\/schema\/person\/c1d3dbd7c27bd3574f8c7042165a660b","name":"Risa Y","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hosteko.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/7eac241dffbc583c56ba1ff19703f5623dab2b6a88bbb0583e815230564dac5e?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7eac241dffbc583c56ba1ff19703f5623dab2b6a88bbb0583e815230564dac5e?s=96&d=mm&r=g","caption":"Risa Y"}}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/hosteko.com\/htk-blog\/wp-content\/uploads\/2021\/04\/Tips-Trik-dan-Hacks-Untuk-WordPress.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/posts\/10989","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/comments?post=10989"}],"version-history":[{"count":3,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/posts\/10989\/revisions"}],"predecessor-version":[{"id":11007,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/posts\/10989\/revisions\/11007"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/media\/11000"}],"wp:attachment":[{"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/media?parent=10989"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/categories?post=10989"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hosteko.com\/blog\/wp-json\/wp\/v2\/tags?post=10989"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}