pragmaticweb/customisable-archive-templates
Composer 安装命令:
composer require pragmaticweb/customisable-archive-templates
包简介
> Customise the WordPress term archive template with the block editor.
README 文档
README
A project by Pragmatic.
Customise the WordPress term archive template with the block editor.
Requirements
Usage Requirements
Ensure you have the prerequisite software installed:
Installation
Install this plugin with Composer: composer require pragmaticweb/customisable-archive-templates. Activate the plugin in your WordPress in the usual manner.
Edit a taxonomy term, and enable "Use Template". Set "Template Post ID" to a Post ID of any kind of WordPress post object. This post will be rendered onto the taxonomy archive URL for the specific term.
After that, create a custom taxonomy-{taxonomy_name}.php template in your theme and customise it for your requirements. We suggest duplicating a single post template like page.php.
The first post in the template loop will be the "Template Post" you selected earlier; everything subsequent will be the standard list of all posts that are assigned to the current taxonomy term.
You can choose to split the loop and render both parts in different places (e.g. a "see more xyz content" footer), or just render the main "Template Post" and skip the rest of the template loop with a break instruction inside the loop.
Development Process
This plugin mostly follows the standard Git Flow model.
Workflow
Development happens in feature branches, which are merged into develop, and then eventually merged into trunk for deployment to production. When making changes, a feature branch should be created that branches from develop (and the corresponding pull request should use develop as the target branch).
Scripts and Tooling
composer run lint:phpcs-- checks PHP files for compatibility with the WordPress-VIP-Go standards.composer run lint:phpcompat-- checks PHP files for compatibility with PHP 7.3.
pragmaticweb/customisable-archive-templates 适用场景与选型建议
pragmaticweb/customisable-archive-templates 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 10.46k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2020 年 06 月 10 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 pragmaticweb/customisable-archive-templates 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 pragmaticweb/customisable-archive-templates 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 10.46k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2020-06-10