Linux 软件免费装
Banner图

Dynamic Template Parts

开发者 mattwatsoncodes
更新时间 2024年12月4日 03:43
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.7
版权: GPLv2 or later
版权网址: 版权信息

标签

template editor block switcher custom-templates

下载

1.0.0

详情介绍:

安装:

This section describes how to install the plugin and get it working.
  1. Upload the plugin folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the 'Plugins' screen in WordPress.

屏幕截图:

  • **Select a Template Part in the Template Editor:** Navigate to the Template Editor and select a Template Part you wish to edit.
  • **Enable the Dynamic Template Part Option:** In the Template Part attributes panel, enable the Dynamic Template Part setting.
  • **Choose Swapping Preferences:** Configure your swapping preferences by selecting whether to swap with the same type, any type, or curated Template Parts.
  • **Edit a Post and Access the Dynamic Template Part Sidebar:** While editing a post, open the Dynamic Template Part sidebar from the editor interface.
  • **View Available Template Parts with Previews, and Select an Alternative Template Part:** Browse through the available Template Parts, complete with live previews to assist in your selection. Choose the alternative Template Part you wish to substitute in place of the default.
  • **Save and View the Post with Swapped Template Parts:** Save your changes and preview the post to see your customised Template Parts in action.

升级注意事项:

1.0.0 Welcome to the first release of Dynamic Template Parts! Enjoy dynamic control over your templates.

常见问题:

How do I enable dynamic Template Parts?

In the template editor, select a Template Part and enable the 'Dynamic Template Part' option in its attributes. Choose your swapping options and save the template.

Can I limit which Template Parts can be swapped?

Yes! You can curate specific Template Parts that can be swapped. When enabling the 'Dynamic Template Part' option, select the Template Parts you want to make available for swapping.

Does this plugin work with custom post types?

Absolutely. Dynamic Template Parts works with posts, pages, and any custom post types you have.

Can I swap Template Parts of different types?

Yes, you have the option to allow swapping with Template Parts of the same type (Header, Footer, Generic), any type, or a curated list of parts from different types.

How are user permissions managed?

See the User Permissions section for information on how you can alter the template swapping permissions.

What happens if I deactivate the plugin?

If you deactivate the plugin, your content will revert to using the default template parts defined in your theme. Your content remains safe, and you can reactivate the plugin anytime to restore dynamic functionality.

Is this plugin compatible with my theme?

Dynamic Template Parts is designed to work with any Full Site Editing (FSE) theme that utilizes block templates and template parts. It enhances the existing functionality of FSE themes without requiring theme modifications.

更新日志:

1.0.0 1.0.0 1.0.0