formats

[wp hack] Bikin Halaman Sendiri di WordPress

Published on May 13, 2009, by in Komunitas Blogger.

WP Hack ? Judulnya serem ya… konon itu cuma teknik biar orang tertarik baca artikel kita… he he he

Isinya cuma tutorial sederhana bikin sebuah halaman terpisah di wordpress misalnya http://www.komunitaskami.com/contact.php

Isi halaman contact.php ini rencananya bebas, bisa sekedar halaman HTML biasa atau mungkin PHP. Awalnya kami pikir agak susah membuat halaman seperti ini karena didalam theme wordpress, tidak diperkenankan melakukan akses langsung file ini.

Caranya simple, tambahkan baris kode – kode php ini di baris pertama contact.php

<?php
define(‘WP_USE_THEMES’, false);
require(‘./wp-blog-header.php’);
?>

Lalu selanjutnya silahkan ditambahkan kode – kode HTML seperti biasa atau mungkin mau ditambahkan kode – kode php.

Supaya tampilan tampak cantik dan seperti theme yang dipakai, anda disarankan untuk meng-copy semua isi dari file header.php index.php sidebar.php dan footer.php setelah kode php diatas.

bagi yang agak malas mengcopy isi file – file diatas, anda bisa juga menyertakan header.php sidebar.php dan footer.php dengan kode sbb :

<?php include (TEMPLATEPATH . ‘/header.php’); ?>
<?php include (TEMPLATEPATH . ‘/sidebar.php’); ?>
<?php include (TEMPLATEPATH . ‘/footer.php’); ?>

lalu upload file itu di dalam folder root ( public_html ). selanjutnya anda sudah bisa mengakses file tsb dari url http://www.komunitaskami.com/contact.php

semoga bermanfaat.

Tulisan yang mungkin se-ide

17 Responses

  1. Trims Mas..tipsnya berguna buat aku. Kayaknya aku pertamax ya..

    ReplyReply
  2. Thanks Yach infonya :)

    ReplyReply
  3. wew… gitu ya bro…. aku lum ngerti apa-apa nih… musti belajar banyak….
    salam kenal by wisata riau
    semoga tali silaturrahim terjalin dgn eratnya…

    ReplyReply
  4. Cobaa ahhh

    thnx mas

    ReplyReply
  5. Aku gak bisa, susah bgt..

    ReplyReply
  6. mas…tulisannya sebelah kanan kok kepotong yah?

    ReplyReply
  7. maksih infonya mas…bagus..perlu di coba nih..baru belajar worpress nih biasanya pake blogger

    ReplyReply
  8. wah….ternyata canggih juga dalam hack hack an

    hehehe….nice post…perlu belajar banyak neh..

    ReplyReply
  9. Saya kayaknya Perlu banyak belajar php dan html nih, saya belum paham banget… Tapi trims tipsnya.

    ReplyReply
  10. wah,ide bagus nih.. Dicoba dulu ah.. :D

    ReplyReply
  11. Wah lansung di coba mas

    ReplyReply
  12. wah baru tau nih.. nice idea..
    di coba dulu ah..
    thanks ya

    ReplyReply
  13. thx infonya…

    ReplyReply
  14. ass..komunitaskami.com!
    sy Adit mw ikutan komunitas blog..
    klo d izinkan ..
    ni link blog sy http://info-komputer.tk
    n title nya “Adit Blog”
    saya harap ada balasan
    terima kasih atas balasannya..
    wassalam.

    ReplyReply
  15. gmn yaw biar gmpg…

    ReplyReply
  16. masih sulit bos.. maklum newbie

    ReplyReply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Home Komunitas Blogger [wp hack] Bikin Halaman Sendiri di WordPress
credit
© komunitaskami.com