aku pernah bahas disini, coba aja pake salah satunya, kalo aku sendiri sih lebih cocok pake wordpress-pda, simple install, edit template buat di hp/pda jg sama kayak template biasa.
coba liat lagi kodenya, aku juga biasa bikin gitu diblogku.
untuk artikel paling baru, tampilan artikelnya beda dengan dengan artikel sebelumnya.
caranya di file index.php/home.php aku tambahkan kode kayak gini
<?php $i = 1; ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : The_post(); ?>
<?php if ( $i == 1 ) { ?>
—– DISINI PAKE FORMAT RECENT POST —–
<?php } elseif ( $i > 1 ) { ?>
—- DISINI PAKE FORMAT STANDAR —–
<?php } ?>
<?php $i=$i+1; ?>
<?php comments_template();
<?php endwhile; ?>
nah, cek lagi aja apa templatemu pake cara mirip2 itu juga apa gak?
Pencetus Utas
Rhama
(@rhama)
maaf mas poer, itu yang dimaksud format recent post & format standar apaan ya? 😀
struktur themes yang kupake kayak gini (file index.php):
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<h1 class="posttitle"><a href="<?php the_permalink() ?>"
rel="bookmark" title="<?php _e('Read',TEMPLATE_DOMAIN); ?> <?php the_title(); ?>"><?php
the_title(); ?></a></h1>
<small class="date"><?php the_date() ?> | <?php _e('Pkl.',TEMPLATE_DOMAIN); ?>
<?php the_time() ?> WIB</small>
<div class="entry">
<?php the_content('<span
class="readmore">'.__('Baca tulisan ini selengkapnya
»',TEMPLATE_DOMAIN).'</span>'); ?>
</div>
</div>
<?php endwhile; ?>
Pencetus Utas
Rhama
(@rhama)
waduh.. masih belum berhasil juga nih ngutak-ngatiknya sampe sekarang 🙁
ada yang punya masukan lagi ga? 🙁
Saya rasa itu karena Rhama memakai the_date
. Menurut codex di halaman ini http://codex.wordpress.org/Template_Tags/the_date
When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() with a date-specific format string.
waa ada masternya disini 😀 thanks mbak lala
@cinila
sering2 main2 ke sini mbak 😉
@poer aih gak kebalik ini… 😀
@hudatoriq ya ya… aku bookmark deh, suka lupa alamatnya… maklum sudah tua 😛
Subscribe rss nya skalian mbak.