10 Useful WordPress Loop Hacks

10 Useful WordPress Loop Hacks | Developer’s Toolbox | Smashing Magazine.

此文展示了10个有用的wordpress技巧:

1. Get Posts Published Between Two Dates (得到两个日期之前的文章)

2. Use More Than One Loop On A Page, Without Printing Duplicate Posts
(一个页面上使用两个loop)

3. Insert Ads After The First Post
(第一篇文章后加入自定义广告代码)

4. Get Posts With A Specific Custom Field And Specific Value
(根据Custom Field得到文章)

5. List Upcoming Posts
(显示计划发布的文章)

6. Display Posts Published One Year Ago
(显示一年前的文章)

7. Use The Loop To Create An “Archive” Page Template
(创建一个归档页面模板)

8. Create Your Own WordPress Loops Using The WP_Query Object
(用WP_Query创建自己的loops)

9. Get Only The Latest Sticky Posts
(只得到最新的置顶文章)

10. Create A Loop Of Images
(自动显示文章中的图片)

恩,具体的请查看原文,就不一一翻译了,觉得还是直接看英文的更有感觉,似乎翻译过来就有点别扭。当然我的水平也有限啦。。

Popularity: 7% [?]




50% OFF Coupon: 50OFF

Write a Comment

Gravatars are small images that can show your personality. You can get your gravatar for free today!

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2010 时光漫步. All rights reserved.
Powered by WordPress.org, Custom Theme and ComFi.com Calling Card Company.