TAILIEUCHUNG - Wordpress 3.0 jQuery - part 12

Tham khảo tài liệu 'wordpress jquery - part 12', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Digging Deeper Understanding jQuery and WordPress Together The Loop In Chapter 1 Getting Started WordPress and jQuery and Chapter 2 Working with jQuery in WordPress we learned how useful it was that jQuery looped through the selected elements in the wrapper for you. WordPress does a little looping of its own in fact it s important enough to be named The Loop . The Loop is an essential part of your WordPress theme. It displays your posts in chronological order and lets you define custom display properties with various WordPress template tags wrapped in HTML markup. The Loop in WordPress is a while loop and therefore starts with the PHP code while have_posts followed by the template tag the_post . All the markup and additional template tags are then applied to each post that gets looped through for display. The Loop is then ended with the PHP endwhile statement. Every template page view can have its own loop so that you can modify and change the look and layout of each type of post sort. Every template page is essentially just sorting your posts in different ways. For example different category or tag template pages sort and refine your posts down to meet specific criteria. Those sorted posts can appear different from posts on your main page or in your archive lists and so on. The next example is a very simple loop taken from WordPress s default Kubrick theme php while have_posts the_post div php post_class id post- php the_ID h2 a href php the_permalink rel bookmark title Permanent Link to php the_title_attribute php the_title a h2 small php the_time F jS Y -- by php the_author -- small div class entry php the_content Read the rest of this entry raquo div p class postmetadata php the_tags Tags br Posted in php the_category 96 Chapter 3 php edit_post_link Edit php comments_popup_link No Comments 187 1 Comment 187 Comments 187 p div php endwhile . The loop is tucked into a large if else statement that most importantly checks if there are posts to sort. If there

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.