[wordpress插件] CFP.DEV shortcodesCFP.DEV简码

wordpress 插件 文章 2020-03-21 08:00 434 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

When you have a CFP.DEV instance running you might want to show a list of speakers on your WordPress instance.

当您运行CFP.DEV实例时,您可能希望在WordPress实例上显示发言人列表。

This plugin provides several shortcodes to list speakers, show speaker details, the schedule per day and talk details, my schedule and search results.

该插件提供了一些短代码,用于列出发言人,显示发言人详细信息,每天的日程安排和谈话详细信息,我的日程安排和搜索结果。

First thing you need to provide is the CFP.DEV key, which is the subdomain of your CFP.DEV instance (for example dvbe19).

您需要提供的第一件事是CFP.DEV密钥,它是CFP.DEV实例的子域(例如dvbe19)。

Go to the CFP.DEV admin settings page and enter the key.

转到CFP.DEV管理员设置页面,然后输入密钥。

The available short codes are :

可用的短代码为:

* [cfp_speakers size=10 random=yes title=”Speakers” subtitle=”This list will grow”] list of speakers

* [cfp_speakers size = 10 random = yes title =“ Speakers” subtitle =“此列表将会增加”]发言人列表

* [cfp_speaker_details] Speaker detail page

* [cfp_speaker_details]扬声器详细信息页面

* [cfp_talk] talk detail page

* [cfp_talk]对话详细信息页面

* [cfp_schedule day=yyyyyyy] yyyyy is the day name, for example monday.

* [cfp_schedule day = yyyyyyy] yyyyy是日期名称,例如星期一。

* [cfp_talks_by_tracks] list all the talks by tracks

* [cfp_talks_by_tracks]按曲目列出所有演讲

* [cfp_talks_by_tracks] List all the talks by the track id

* [cfp_talks_by_tracks]按照曲目ID列出所有演讲

* [cfp_talks_by_sessions] list all the talks by sesssion types (conference, bof, etc.)

* [cfp_talks_by_sessions]按会话类型(会议,bof等)列出所有会话。

* [cfp_my_schedule] Shows the schedule of the authenticated JWT user

* [cfp_my_schedule]显示已通过身份验证的JWT用户的时间表

* [cfp_search_results] Shows the search results which can include speakers and talks.

* [cfp_search_results]显示搜索结果,其中可以包括发言人和演讲。

This page is triggered by the search request on the schedule page.

此页面由计划页面上的搜索请求触发。

All rendered CFP.DEV wordpress pages are cached and are refreshed every 24 hours.

所有呈现的CFP.DEV WordPress页面均被缓存并每24小时刷新一次。

You can manually clear the cache on the WordPress CFP.DEV settings page for the speakers list page and schedule.

您可以在WordPress CFP.DEV设置页面上手动清除发言人列表页面和日程表的缓存。

The individual speaker and talk detail page can not be refreshed manually (for now).

不能手动刷新单个发言人和谈话详细信息页面(目前)。

安装步骤

This section describes how to install the plugin and get it working.

本节介绍如何安装插件并使其正常工作。

e.g.

例如

    1. Upload the plugin files to the /wp-content/plugins/plugin-name directory, or install the plugin through the WordPress plugins screen directly.

      将插件文件上传到 / wp-content / plugins / plugin-name 目录,或直接通过WordPress插件屏幕安装插件。

    2. Activate the plugin through the ‘Plugins’ screen in WordPress

      通过WordPress中的“插件”屏幕激活插件

    3. Provide the CFP.DEV key on the WordPress CFP.DEV Settings page.

      在WordPress CFP.DEV设置页面上提供CFP.DEV密钥。

    4. You can now add the speakers list shortcode to a WordPress page as follows [cfp_speakers]

      您现在可以按照以下[cfp_speakers]将发言人列表短代码添加到WordPress页面中

    4.1 The speaker list is ordered by speaker last name, you can also decide to show a random list by adding the shortcode parameter random=true, as follows [cfp_speakers random=true]

    4.1发言人列表按发言人姓氏排序,您还可以通过添加简码参数random = true来决定显示随机列表,如下所示[cfp_speakers random = true]

    4.2 You can also specify how many speakers you want to show on the page by using the size param.

    4.2您还可以使用size参数指定要在页面上显示多少位发言人。

    For example [cfp_speakers size=20 random=true] will show 20 random speakers.

    例如[cfp_speakers size = 20 random = true]将显示20个随机扬声器。

    4.3 You can also add a title and subtitle above the list of speakers by using the related params: title and subtitle

    4.3您还可以使用以下相关参数在发言者列表上方添加标题和副标题:标题和副标题

      1. To display speaker details you need to create a WordPress page named ‘speaker-details’ and add the shortcode [cfp_speaker_details]

        要显示演讲者详细信息,您需要创建一个名为“ speaker-details”的WordPress页面并添加简短代码[cfp_speaker_details]

      2. To display a schedule you can use the shortcode [cfp_schedule day=monday], this will show the schedule for Monday.

        要显示时间表,您可以使用简码[cfp_schedule day = monday],它将显示星期一的时间表。

      3. To display a talk details a WordPress page named ‘talk-details’ must exist.

        要显示对话详细信息,必须存在一个名为“ talk-details”的WordPress页面。

        There you need to add the shortcode [cfp_talk]

        您需要在其中添加简码[cfp_talk]

      4. To show search results a WordPress page named ‘search-results’ must exist.

        要显示搜索结果,必须存在一个名为“搜索结果”的WordPress页面。

      5. Create a ‘My Schedule’ and add the shortcode [cfp-my-schedule] to show the authenticated users talk favourites.

        创建一个“我的日程安排”并添加简短代码[cfp-my-schedule],以显示已通过身份验证的用户的谈话收藏夹。

下载地址
https://downloads.wordpress.org/plugin/cfp-dev-shortcodes.zip
-EOF-

AI助手支持GPT4.0