內容簡介
這個外掛使用TWIG建立模板系統,您可以在WordPress管理介面中進行管理。不再需要為每個內容類型或上下文創建數十個模板文件。模板可以應用於每個頁面或文章,可以訪問所有文章和文章元數據。您甚至可以從頁面內部使用TWIG擴展編寫查詢。
這個外掛仍在開發中,應該被認為是“測試”狀態。
目前功能:
* 創建可應用於任何頁面或文章的內容模板
* 從模板或頁面/文章引用所有文章和文章元數據值
* 在模板或頁面/文章中訪問术语和术语列表
* 從模板或頁面/文章查詢帖子並循環其結果
* 模板標籤: the_permalink,the_post_thumbnail,the_term_list
即將推出的功能:
* 從模板或頁面/文章引用其他模板
* 從模板或頁面/文章引用用戶信息
* 從模板或頁面/文章進行用戶訪問管理
* 全局模板應用規則
* is_single,is_home,is_archive,is_author等等
http://github.com/mikevanwinkle/twigify
外掛標籤
開發者團隊
原文外掛簡介
This plugin creates a templating system using TWIG that you can manage from within your WordPress admin interface. No need to create dozens of template files anymore for each content type or context. Templates can be applied to every page or post and can access all post and post metadata. You can even write a query from within a page using the TWIG exetensions.
This plugin is still under development and should be considered in a “beta” state.
Current features:
* Create a content template that can be applied to any page or post * Reference all post and postmeta values from within a templatei or page/posts * Access terms and term lists from within templates or page/posts * Query posts and loop the result from within templates or page/posts * Template Tags: the_permalink, the_post_thumbnail, the_term_list
Coming features:
* Reference other templates from within templates or page/posts * Reference user info from within templates or page/posts * User access management from within templates or page/posts * Global template application rules
* is_single, is_home, is_archive, is_author, etc …
http://github.com/mikevanwinkle/twigify
