Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Misalnya di dalam folder Template kita bikin folder baru dengan nama: product, diisi 3 file:
- – post-type.php
- – taxonomy.php
- – metaboxes.php
- Cara memasukkan kode yang seharusnya untuk function.php masukkan ke masing-masing file. Setiap isi file dimulai dengan <?php, tanpa penutup ?>
- Cara memanggil fle agar dimasukkan ke function.php:
- require get_template_directory() . '/products/post-type.php';
- require get_template_directory() . '/products/taxonomy.php';
- require get_template_directory() . '/products/metaboxes.php';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement