dekodeinteraktiv/hogan-simple-posts

Hogan的简单列表模块

1.1.4 2024-04-30 08:49 UTC

This package is auto-updated.

Last update: 2024-08-30 09:44:34 UTC


README

安装

使用Composer安装模块 composer require dekodeinteraktiv/hogan-simple-posts,或者简单地下载此存储库并将其放置在 wp-content/plugins

用法

可用过滤器

管理员

  • hogan/module/simple_posts/post_type_link : 自定义文章类型链接的过滤钩子。默认 wp 文章链接。
  • hogan/module/simple_posts/the_title : 自定义标题的过滤钩子。默认 wp 文章标题。
  • hogan/module/simple_posts/the_excerpt : 自定义摘要的过滤钩子。默认 wp 文章摘要。
  • hogan/module/simple_posts/the_image_metadata_value : 返回自定义附件 id 的过滤器。默认 null,将获取 _thumbnail_id 的文章元数据。
  • hogan/module/simple_posts/relationship/post_types : 允许哪些文章类型。默认 ['post', 'page']
  • hogan/module/simple_posts/manual_list/max_count : 手动列表中文章的最大数量。默认 ''(无限)。
  • hogan/module/simple_posts/automatic_list/max_count : 自动列表中文章的最大数量。默认 ''(无限)。

模板

过滤器

  • hogan/module/simple_posts/show_image_column : 是否在前端显示卡片中的图片列。如果卡片类型设置为小,则为 false,否则为 true
  • hogan/module/simple_posts/image_size : 卡片图片缩略图大小。默认 `post-thumbnail`。
  • hogan/module/simple_posts/featured_image : 特色图片输出。默认 get_the_post_thumbnail() 的响应。
  • hogan/module/simple_posts/card_heading : 卡片标题标签。默认:'h2'

操作

  • hogan/module/simple_posts/after_the_excerpt : 在摘要之后插入内容的操作。