wordpess hack

Post on 18-Dec-2014

882 Views

Category:

Education

2 Downloads

Preview:

Click to see full reader

DESCRIPTION

Dasar-dasar templating dalam wordpress

TRANSCRIPT

Remastering Theme

http://tsauri28.myhaley.comtsauri28@myhaley.com

Style.css Index.phpHeader.phpSidebar.phpFooter.phpFunction.phpSingle.phpPage.php

Menempatkan style untuk themeMenyimpan data theme

/* Theme Name: MuawanahDescription: 2 Column, CSS, xHTML, JQuery. Download other from

<a href="http://myhaley.com"> HaleyGroup </a> , free !!Version: 0.1Author: Asep Sufyan TsauriAuthor URI: http://www.tsauri28.myhaley.com/*/

/* Style anda disini !!! */

Halaman utama yang akan dipanggil awal oleh http

Memanggil file struktur yang lain, seperti header, footer, dsb.

Biasanya digunakan untuk menyimpan headline post

Bagian ‘kepala’ struktur wordpressBiasanya untuk menyimpan link ke

style, script dsb

Menyimpan widgetDiintegrasikan (dikontrol)

dengan function.php

‘kaki’ wordpress

Menyimpan function untuk mengatur theme

Paling umum untuk mengontrol sidebar.php

Bagian detail post (hasil dari ‘read more…’)

Memanggil file2 lain seperti header, footer, dll (seperti index.php)

Sama fungsinya dengan single.php, hanya untuk page

Looping post<?php while (have_posts()) : the_post(); ?>

Tampilkan Judul<?php the_title(); ?>

Tampilkan hyperlink post<?php the_permalink() ?>

Tampilkan content<?php the_content(__(‘selanjutnya…')); ?>

Menampilkan Kategori<?php the_category(', ') ?>

Tampilkan post dalam kategori tertentu

<?php $my_query = new

WP_Query('category_name=Uncategorized&showposts=4'); ?>

Costum Field<?php get_post_meta($post->ID,'image', true) ) ?>

Wordpress.orgWphacks.comWebdesignerwall.comNettuts.comdllllll;

top related