Wordpress 3.0 jQuery - part 16

Tham khảo tài liệu 'wordpress jquery - part 16', 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ả | Doing a Lot More with Less Making Use of Plugins for Both jQuery and WordPress Last for this new page to be recognized as a special template for WordPress we have to add a template header to the very top of the document in commented out PHP as shown here php Template Name Register Form As with our plugin in Chapter 3 Digging Deeper Understanding WordPress and jQuery Together make sure there are no spaces or hard returns before the php tag. Otherwise you may get an error about headers already having been sent. Now if we return to our Registration page in the Administration panel on the right-hand side we ll see that our new page template is available to be assigned to the page. N ove to Trash Update Page Attributes Parent no parent w Template I Register Form Default Template One column no sidebar Need help Use the Help tab in the upper right of your screen. We can now see that if we use the browser s address bar to navigate to the URL of our Register page it loads up without any other WordPress styling and is ready to be loaded into our ColorBox modal window. 136 Chapter 4 Register for _ Submit That s the first half of our solution. Let s now finish it. Creating the custom category template We now need to create a special category template for the Events category. Again we ll want each event to have a registration link. That link will pass the event s title to the registration form. 137 Doing a Lot More with Less Making Use of Plugins for Both jQuery and WordPress To get started with this if you ll recall the Template Hierarchy from Chapter 3 Digging Deeper Understanding WordPress and jQuery Together the template page trumps the template page. Turns out the default template that we re using doesn t have a page. We ll simply create one by duplicating the page and naming it . But wait we don t just want this page to show any category. We want to only show the Events category. You ll also recall from Chapter

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
Đã 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.