[wordpress插件] BuddyForms Hierarchical PostsBuddyForms分层帖子

wordpress 插件 文章 2020-03-12 15:50 511 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Parent to child relationship

父子关系

With Hierarchical Posts you can structure your user submissions in a user friendly way.

使用分层帖子,您可以以用户友好的方式来组织用户提交的内容。

It’s logic is all about parent to child relationships which means that a parent post can have multiple child posts.

这完全是关于父子关系的逻辑,这意味着父帖子可以有多个子帖子。

WordPress can become unpleasant to write and read stories if they belong together in a hierarchical way.

如果WordPress以分层的方式归类在一起,那么它们撰写和阅读故事可能会变得不愉快。

If you have multiple posts belonging together to one story usually you would create a category for this story and add new posts to this category to make them a part of it.

如果您有多个帖子属于一个故事,通常您会为该故事创建一个类别,并将新帖子添加到该类别以使其成为其中的一部分。

This is a nice system but can become confusing and user unfriendly if you need a much more advanced way to structure your posts.

这是一个不错的系统,但是如果您需要一种更高级的方法来构建帖子,则可能会造成混乱和用户不友好。

In many cases you need a more structured order within a category or between posts.

在许多情况下,您需要在类别内或职位之间建立更有条理的订单。

With the plugin you are able to create one parent post and have its children listed above or underneath the content.

使用该插件,您可以创建一个父帖子,并在其内容的上方或下方列出其子级。

The children can share the same or a different category.

孩子们可以共享相同或不同的类别。

WordPress inbuilt and fully supported in custom post types

WordPress内置并完全支持自定义帖子类型

WordPress has all functions in place to work nicely with child posts.

WordPress具有所有功能,可以很好地处理子帖子。

They are used for pages and also menus (sub navigation).

它们用于页面和菜单(子导航)。

We have the ‘get_children’ function built in to gather all children posts off a parent post in one place.

我们内置了“ get_children”功能,可将所有子帖子收集到一个父帖子中。

From there you can create custom post types.

在这里,您可以创建自定义帖子类型。

The only thing you need to do in the settings is setting ‘hierarchical’ to true which will enable the hierarchical functionalities.

设置中唯一需要做的就是将“ hierarchical”设置为true,这将启用分层功能。

All in all with the parent to child relationship you give your story related posts a closer binding and make them belonging together.

总而言之,通过与父母与孩子的关系,您可以将与故事相关的帖子更紧密地绑定在一起,并使它们相互关联。

Making the structure of posts visible makes it a lot easier for readers to understand the relationships between the posts.

使帖子的结构可见,使读者更容易理解帖子之间的关系。

Think of parent post as journal and the child post as log

将父帖子视为日记,将子帖子视为日志

Most off the time you don’t want to display the children in the posts list.

您最不想在帖子列表中显示子级的时间。

You want to display the parents and then generate a view for the children log entries.

您要显示父级,然后为子级日志条目生成一个视图。

With using the plugin both viewing types are possible: displaying them separately or grouped together.

使用该插件,可以使用两种查看类型:分别显示或分组显示。

Parent post single view

父帖子发布视图

All child posts can be listed under or above the content of the parent post if displayed in the single view.

如果在单个视图中显示,则所有子帖子都可以在父帖子内容的下方或上方列出。

If a user creates a new parent post one can add any type of content just like in normal posts describing the parent (journal).

如果用户创建新的父帖子,则可以添加任何类型的内容,就像在描述父帖子(期刊)的普通帖子中一样。

The child posts (log from the journal) can be listed under or above the content.

子帖子(日记中的日志)可以在内容的下方或上方列出。

Multiple child forms

多个子表格

You can create different forms for the children and enable the user to select the form he likes to use for the child posts.

您可以为子级创建不同的表单,并使用户能够选择他喜欢用于子级帖子的表单。

If you only give one form as an option, this form will be used automatically.

如果您只选择一种形式,则会自动使用该形式。

Form element to the select the parent

选择父元素的表单元素

If one is selecting the parent page: allow the user to select the parent post or change a child posts parent.

如果正在选择父级页面:允许用户选择父级帖子或更改子级父级。

Deleting a parent post

删除父帖子

If you delete a parent journal you delete all logs too.

如果删除父日记,则也会删除所有日志。

Deleting will move the posts into trash.

删除会将帖子移到垃圾箱。

Watch the video to see the plugin in action:

观看视频以查看实际使用的插件:

"}];jQuery(function(){$("#article_content").find("a").each(function(){var url =$(this).attr("href");for(var i=0;i"+c+"

");} } }) })