pragmaticweb/customisable-archive-templates 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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.

统计信息

  • 总下载量: 10.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-only
  • 更新时间: 2020-06-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固