Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. buat file download.php taruh di root domain
- 2. isi dengan ini:
- <?php
- require( dirname( __FILE__ ) . '/wp-load.php' );
- require_once(TEMPLATEPATH . '/downloads.php');
- ?>
- 3. buat file download.php taruh di direktori template wordpress
- 4. isi dengan ini:
- <?php get_header(); ?>
- isi sesuai dengan theme, bisa kopi dari single.php atau search.php atau index.php
- <?php get_footer(); ?>
- untuk membuat permalink domain.com/download/bla-bla-bla
- gunakan .htaccess atau custom routing
- tutorial menyusul
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement