vtrotot/conseil-municipal-post-type
Composer 安装命令:
composer require vtrotot/conseil-municipal-post-type
包简介
Conseil Municipal Custom Post Type for WordPress Theme
README 文档
README
ConseilMunicipalPostType est un package permettant d'ajouter un Custom Post Type vt_cm à un theme WordPress.
Ce Custom Post Type ajoute six metadata : un ordre du jour (nom et lien du fichier PDF), un compte rendu (nom et lien du fichier PDF) et un compte rendu audio (nom et lien du fichier mp3).
La classe VincentTrotot\ConseilMunicipalPostType paramètre le Custom Post Type tandis que la classe VincentTrotot\ConseilMunicipal\ConseilMunicipal est une espèce de wrapper du Post (la classe hérite de la classe Timber\TimberPost).
Installation
composer require vtrotot/conseil-municipal-post-type
Utilisation
Votre theme doit instancier la classe ConseilMunicipalPostType
new VincentTrotot\ConseilMunicipal\ConseilMunicipalPostType();
Vous pouvez ensuite récupérer un Post de type ConseilMunicipal:
$post = new VincentTrotot\ConseilMunicipal\ConseilMunicipal();
Ou récupérer plusieurs posts avec :
$args = [ 'post_type' => 'vt_cm', ... ]; $posts = new Timber\TimberRequest($args, VincentTrotot\ConseilMunicipal\ConseilMunicipal::class);
统计信息
- 总下载量: 197
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-06-09