I am using a child theme. In the child theme I would like to have a subfolder for all my page templates, e.g. homepage-template, default-template, etc in /templates. How can I do this so that wordpress admin menu can still see them when I choose a template for a page?
相关问题
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
- change the font size in tag cloud
相关文章
- wordpress新增页面如何个性化设置
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- Change order status just after payment in WooComme
- Publishing or uploading failed. Error message: “Th
- Facebook Login With WP JWT Auth
- Wordpress development process
Can you upgrade to WordPress 3.4? This is a native function of 3.4.
See: http://nacin.com/2012/03/29/page-templates-in-subdirectories-new-in-wordpress-3-4/
Create a folder with the name page-templates in your theme folder. If you have already published pages with templates before having them under this sub-folder, you have to reselect the template page for these pages and click update.