ยินดีต้อนรับคุณ, บุคคลทั่วไป กรุณา เข้าสู่ระบบ หรือ ลงทะเบียน

เข้าสู่ระบบด้วยชื่อผู้ใช้ รหัสผ่าน และระยะเวลาในเซสชั่น

ThaiSEOBoard.comอื่นๆCafeทำไงให้ แสดง Recent Posts มากกว่า 15 ได้ครับ ของ wordpress อ่ะครับ
หน้า: [1] 2  ทั้งหมด   ลงล่าง
พิมพ์
ผู้เขียน หัวข้อ: ทำไงให้ แสดง Recent Posts มากกว่า 15 ได้ครับ ของ wordpress อ่ะครับ  (อ่าน 4589 ครั้ง)
0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้
superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« เมื่อ: 25 เมษายน 2008, 23:53:30 »

ทำไงให้ แสดง Recent Posts มากกว่า 15 ได้ครับ ของ wordpress อ่ะครับ

ผมใช้ default ธีมเลยครับ ไม่ได้เปลี่ยนธีม
บันทึกการเข้า
*~เก้าคุง~*
สายตรวจเสียวบอร์ด
Moderator
เจ้าพ่อบอร์ดเสียว
*****

พลังน้ำใจ: 136
ออฟไลน์ ออฟไลน์

กระทู้: 4,097



ดูรายละเอียด
« ตอบ #1 เมื่อ: 26 เมษายน 2008, 00:05:57 »

ตอบแบบงูๆ ปลา ละกัน Cheesy

เข้าไปที่ desing>>>theme editor ของผม recent post มันอยู่ตรง ข้างล่างบล๊อค ผมเลยเปิดไฟ footer.php ขึ้นมาแล้ว search หา คำว่า Recent post
จะเจอ
<h4>Recent Posts</h4>
     <?php query_posts('showposts=5'); ?>
   <ul>
   <?php while (have_posts()) : the_post(); ?>
   <li>
   <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>

เปลี่ยนเลขตรงนั้นเลขครับ ไม่รู้ของคุณเป็นแบบผมหรือป่าว Embarrassed
บันทึกการเข้า
ก้ามปู
เสือซุ่มด่า
เจ้าพ่อบอร์ดเสียว
*

พลังน้ำใจ: 218
ออฟไลน์ ออฟไลน์

กระทู้: 6,198



ดูรายละเอียด เว็บไซต์
« ตอบ #2 เมื่อ: 26 เมษายน 2008, 00:29:41 »

รึว่าจะเอาปลักอินตัวนี้ไปลงก็ได้ครับ สะดวกดีมี แรนด้อมโพสต์ด้วย

โค๊ด:
http://wordpress.org/extend/plugins/customizable-post-listings/#post-75
บันทึกการเข้า

ตอนนี้ผมไม่ค่อยว่างตอบอะไรใครนะครับ เพราะไม่ได้เข้าบอร์ดเลย
superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #3 เมื่อ: 26 เมษายน 2008, 22:05:33 »

ขอบคุณมากครับทั้งสองท่านครับ ขอให้รวยๆ Grin
บันทึกการเข้า
superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #4 เมื่อ: 26 เมษายน 2008, 22:16:36 »

รึว่าจะเอาปลักอินตัวนี้ไปลงก็ได้ครับ สะดวกดีมี แรนด้อมโพสต์ด้วย

โค๊ด:
http://wordpress.org/extend/plugins/customizable-post-listings/#post-75


ผม Active plug in แล้ว แต่ว่า ไม่รู้ไปปรับตรงใหนอ่ะครับ
บันทึกการเข้า
superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #5 เมื่อ: 26 เมษายน 2008, 22:27:04 »

ตอบแบบงูๆ ปลา ละกัน Cheesy

เข้าไปที่ desing>>>theme editor ของผม recent post มันอยู่ตรง ข้างล่างบล๊อค ผมเลยเปิดไฟ footer.php ขึ้นมาแล้ว search หา คำว่า Recent post
จะเจอ
<h4>Recent Posts</h4>
     <?php query_posts('showposts=5'); ?>
   <ul>
   <?php while (have_posts()) : the_post(); ?>
   <li>
   <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>

เปลี่ยนเลขตรงนั้นเลขครับ ไม่รู้ของคุณเป็นแบบผมหรือป่าว Embarrassed


ลองหาดูแล้วใน footer.php มันไม่มีอ่ะครับ พยายามหาไฟล์อื่นๆอยู่ ผมใช้ธีมดั้งเดิมของมันอ่ะครับ


Edit หาดูหมดแล้ว ไม่เจอเลย หาหมดทุกไฟล์ใน ธีมแล้วครับ

« แก้ไขครั้งสุดท้าย: 26 เมษายน 2008, 22:38:50 โดย superdog » บันทึกการเข้า
*~เก้าคุง~*
สายตรวจเสียวบอร์ด
Moderator
เจ้าพ่อบอร์ดเสียว
*****

พลังน้ำใจ: 136
ออฟไลน์ ออฟไลน์

กระทู้: 4,097



ดูรายละเอียด
« ตอบ #6 เมื่อ: 26 เมษายน 2008, 22:28:07 »

แล้ว Recent post คุณอยู่ส่วนไหนของบทความอ่ะครับ
บันทึกการเข้า
เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #7 เมื่อ: 26 เมษายน 2008, 22:29:35 »

แล้ว Recent post คุณอยู่ส่วนไหนของบทความอ่ะครับ

มันไม่ได้อยู่ตรงส่วนบทความหรอกครับ

มันก็เหมือนเมนูนี่เเหละ

เเต่เพียงจะเป็นเมนูเข้าบทความเท่านั้นเอง
บันทึกการเข้า

*~เก้าคุง~*
สายตรวจเสียวบอร์ด
Moderator
เจ้าพ่อบอร์ดเสียว
*****

พลังน้ำใจ: 136
ออฟไลน์ ออฟไลน์

กระทู้: 4,097



ดูรายละเอียด
« ตอบ #8 เมื่อ: 26 เมษายน 2008, 22:32:07 »

ที่จริงจะพูดว่า อยู่ส่วนไหนของ theme -_-"
บันทึกการเข้า
เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #9 เมื่อ: 26 เมษายน 2008, 22:36:46 »

ที่จริงจะพูดว่า อยู่ส่วนไหนของ theme -_-"

เเล้วเเต่ธีมนะครับ

ส่วนมากจะอยู่ที่ Sidebar
บันทึกการเข้า

superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #10 เมื่อ: 26 เมษายน 2008, 22:41:59 »

อยู่ตรงเมนูอ่ะครับ

รูปตัวอย่างจาก redtor.com



ปรกติตรงนี้มันปรับได้ที่เมนู admin แต่ปรับได้สูงสุดแค่ 15 ครับ ผมอยากปรับให้สัก 50 จะทำไงดีเอ่ย

« แก้ไขครั้งสุดท้าย: 26 เมษายน 2008, 22:52:33 โดย superdog » บันทึกการเข้า
เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #11 เมื่อ: 26 เมษายน 2008, 22:45:08 »

ตอบแบบงูๆ ปลา ละกัน Cheesy

เข้าไปที่ desing>>>theme editor ของผม recent post มันอยู่ตรง ข้างล่างบล๊อค ผมเลยเปิดไฟ footer.php ขึ้นมาแล้ว search หา คำว่า Recent post
จะเจอ
<h4>Recent Posts</h4>
     <?php query_posts('showposts=5'); ?>
   <ul>
   <?php while (have_posts()) : the_post(); ?>
   <li>
   <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>

เปลี่ยนเลขตรงนั้นเลขครับ ไม่รู้ของคุณเป็นแบบผมหรือป่าว Embarrassed


ลองหาดูแล้วใน footer.php มันไม่มีอ่ะครับ พยายามหาไฟล์อื่นๆอยู่ ผมใช้ธีมดั้งเดิมของมันอ่ะครับ


Edit หาดูหมดแล้ว ไม่เจอเลย หาหมดทุกไฟล์ใน ธีมแล้วครับ




อยู่ที่ sidebar.php ครับ
บันทึกการเข้า

superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #12 เมื่อ: 26 เมษายน 2008, 22:53:08 »

โค๊ด:
<div id="sidebar">
<ul>
<?php  /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<li>

<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <?php the_time('F, Y'); ?>.</p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

<?php ?>

</li> <?php }?>

<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

<li><h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>

<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php ?>

<?php endif; ?>
</ul>
</div>

ไม่เห็นมันมีที่ปรับ Recent post เลยครับ
บันทึกการเข้า
เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #13 เมื่อ: 26 เมษายน 2008, 22:56:07 »

โค๊ด:
<div id="sidebar">
<ul>
<?php  /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<li>

<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <?php the_time('F, Y'); ?>.</p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

<?php ?>

</li> <?php }?>

<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

<li><h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>

<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php ?>

<?php endif; ?>
</ul>
</div>

ไม่เห็นมันมีที่ปรับ Recent post เลยครับ


<h4>Recent Posts</h4>
     <?php query_posts('showposts=5'); ?>
   <ul>
   <?php while (have_posts()) : the_post(); ?>
   <li>
   <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>

เอาโค้ดนี้ไปเพิ่มครับ เพราะบางธีมมันไม่ได้ไส่ Recent Post  มา
บันทึกการเข้า

superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #14 เมื่อ: 26 เมษายน 2008, 23:15:48 »

โค๊ด:
<div id="sidebar">
<ul>
<?php  /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<li>

<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <?php the_time('F, Y'); ?>.</p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

<?php ?>

</li> <?php }?>

<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

<li><h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>

<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php ?>

<?php endif; ?>
</ul>
</div>

ไม่เห็นมันมีที่ปรับ Recent post เลยครับ


<h4>Recent Posts</h4>
     <?php query_posts('showposts=5'); ?>
   <ul>
   <?php while (have_posts()) : the_post(); ?>
   <li>
   <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>

เอาโค้ดนี้ไปเพิ่มครับ เพราะบางธีมมันไม่ได้ไส่ Recent Post  มา


ลองใส่แล้ว เมนูมันหายทั้งแถบเลยครับ
บันทึกการเข้า
เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #15 เมื่อ: 26 เมษายน 2008, 23:18:41 »

โค๊ด:
<div id="sidebar">
<ul>
<?php  /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<li>

<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <?php the_time('F, Y'); ?>.</p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

<?php ?>

</li> <?php }?>

<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

<li><h2>Archives</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>

<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php ?>

<?php endif; ?>
</ul>
</div>

ไม่เห็นมันมีที่ปรับ Recent post เลยครับ


<h4>Recent Posts</h4>
     <?php query_posts('showposts=5'); ?>
   <ul>
   <?php while (have_posts()) : the_post(); ?>
   <li>
   <strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>

เอาโค้ดนี้ไปเพิ่มครับ เพราะบางธีมมันไม่ได้ไส่ Recent Post  มา


ลองใส่แล้ว เมนูมันหายทั้งแถบเลยครับ


ไส่ผิดที่เเหง ๆ เลย

เดี๋ยวผมลองไส่ไห้ละกัน
บันทึกการเข้า

เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #16 เมื่อ: 26 เมษายน 2008, 23:23:55 »

โค๊ด:
<div id="sidebar">
<ul>
<?php  /* Widgetized sidebar, if you have the plugin installed. */
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>

<li>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
</li>

<!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
<li><h2>Author</h2>
<p>A little something about you, the author. Nothing lengthy, just an overview.</p>
</li>
-->

<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?>
<li>

<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>

<?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the day <?php the_time('l, F jS, Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <?php the_time('F, Y'); ?>.</p>

<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for the year <?php the_time('Y'); ?>.</p>

<?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
<p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>

<?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>

<?php ?>

</li> <?php }?>

<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>

<li><h2>Recent Posts</h2>
<ul>
<?php wp_get_archives('type=monthly'); ?>
</ul>
</li>

<li><h2>Archives</h2>
<ul>
<?php query_posts('showposts=50'); ?>
<?php while (have_posts()) : the_post(); ?>
<strong><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent link to'); ?>
</ul>
</li>

<?php wp_list_categories('show_count=1&title_li=<h2>Categories</h2>'); ?>

<?php /* If this is the frontpage */ if ( is_home() || is_page() ) { ?>
<?php wp_list_bookmarks(); ?>

<li><h2>Meta</h2>
<ul>
<?php wp_register(); ?>
<li><?php wp_loginout(); ?></li>
<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
<?php wp_meta(); ?>
</ul>
</li>
<?php ?>

<?php endif; ?>
</ul>
</div>

ลองดูครับ ไม่รู้ได้หรือเปล่า ไม่ค่อยได้จับ Wordpress มาโมนานเเละ
บันทึกการเข้า

superdog
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 5
ออฟไลน์ ออฟไลน์

กระทู้: 1,347



ดูรายละเอียด
« ตอบ #17 เมื่อ: 26 เมษายน 2008, 23:27:52 »

ยังหายเกลี้ยงหมดอยู่ดีอ่ะครับ .... แต่ยังไงก็ขอบคุณที่ช่วยเหลือนะครับ  Cry
บันทึกการเข้า
เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #18 เมื่อ: 26 เมษายน 2008, 23:31:59 »

ยังหายเกลี้ยงหมดอยู่ดีอ่ะครับ .... แต่ยังไงก็ขอบคุณที่ช่วยเหลือนะครับ  Cry

เอ หายได้ไงหว่า ไม่ทราบว่าเเก้จากไหนครับ

หรือว่าโค้ดน้องเก้าคุงผิดหว่า

ขี้เกียจไปเเกะเเล้วนะเนี่ย

ถ้าไงลองดาวน์โหลดธีมพวก 3 Column ที่มันมี Lastest Post หรือ Recent Post มาโมดูครับ

เดี๋ยวว่าง ๆ จะเเกะมาไห้ครับ

พอดีตอนนี้ใช้งานในโน้ตบุ้คอยู่

คอมเจอกิ้กเเย่งใช้

 Embarrassed

บันทึกการเข้า

เกรียนเทพ
Verified Seller
หัวหน้าแก๊งเสียว
*

พลังน้ำใจ: 72
ออฟไลน์ ออฟไลน์

กระทู้: 2,700



ดูรายละเอียด เว็บไซต์
« ตอบ #19 เมื่อ: 26 เมษายน 2008, 23:39:40 »

อ่อ

ได้ละ

สรุปโค้ดน้องเก้าผิด -*-

ต้องไส่โค้ดนี้

โค๊ด:
<h3>Recent Post</h3>

<ul>

<?php get_archives('postbypost''50''custom''<li>''</li>'); ?>

</ul>

ไส่ไห้ถูกตำเเหน่งด้วยครับ
บันทึกการเข้า

หน้า: [1] 2  ทั้งหมด   ขึ้นบน
พิมพ์