รบกวนสอบถาม Wordpress Theme ครับ ^^

เริ่มโดย สลับดอก ศิษย์หนองยางทอย, 21 มีนาคม 2012, 21:46:06

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

สลับดอก ศิษย์หนองยางทอย

รบกวนสอบถามเกี่ยวกับ Wordpress Theme เพื่อให้แสดงผลเป็นแบบ gallery 3*3

ซึ่งผมเองยังแก้ไม่ได้ Wordpress จะใช้ร่วมกับ wprobot ครับ

Index.php

<?php get_header(); ?>
<div class="art-layout-wrapper">
    <div class="art-content-layout">
        <div class="art-content-layout-row">
            <div class="art-layout-cell art-content">
<?php get_sidebar('top'); ?>
<?php 
if(have_posts()) {

/* Display navigation to next/previous pages when applicable */
if ( theme_get_option('theme_' . (theme_is_home() ? 'home_' '') . 'top_posts_navigation' ) ) {
theme_page_navigation();
}

/* Start the Loop */ 
while (have_posts()) {
the_post();
get_template_part('content'get_post_format());
}

/* Display navigation to next/previous pages when applicable */
if (theme_get_option('theme_bottom_posts_navigation')) {
 theme_page_navigation();
}

} else {

 theme_404_content();
 

    ?>

<?php get_sidebar('bottom'); ?>
              <div class="cleared"></div>
            </div>
        </div>
    </div>
</div>
<div class="cleared"></div>
<?php get_footer(); ?>


ขอบคุณสำหรับคำตอบครับ +1  :wanwan017:

แมวมีเจ้าของ

#1
แบบนี้เหรอครับ หรือยังไง
+http://jinsonathemes.com/galleria

edit
ฝากแปะ กันลืม
http://digwp.com/2010/03/wordpress-post-content-multiple-columns

edit2
3 column

CSS
.box-1 { float:left; clear:left; width: 30%; margin-left: 0; }
.box { float:left; width: 30%; margin-left: 3%; }


<div id="column-wrap">
<?php $count 0; while(have_posts()) : the_post(); ?>
<div class="box<?php if( $count%== ) { echo '-1'; }; $count++; ?>">
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
<!--and other output of the loop --> </div>
<?php endwhile; ?></div><!--end column-wrap-->