创建一个Slider,其中填充了WordPress网站的帖子中的内容。
- 相关话题
- 内容来源
- 元内容
创建基于帖子的滑块时,可以从您的帖子中提取很多东西。对于本教程中的示例,我们将获取帖子的标题,摘录和特色图片,如下面的#1,#2和#4所示。然后拉入所有带有类别或“滑块革命”(#3)的帖子。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-setup-1-1.jpg)
要创建基于Post的滑块,请首先创建一个新模块。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/new-module-5.jpg)
接下来,将模块的内容源设置为“基于帖子”,并将其内容类型设置为“发布”。
选择“特定帖子”以从手动输入的一组特定帖子ID中填充幻灯片,如果要从嵌入了模块短代码的同一帖子中提取模块的内容,则选择“当前帖子”。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-based-content-source-1.jpg)
然后设置发布选择设置以指示模块应包含哪些发布。
1.
从您选择的一系列选定帖子中张贴填充幻灯片。
2.特定帖子
填充手动输入的一组特定帖子ID中的幻灯片。
3.当前帖子
该模块的内容将从嵌入该模块的简码的同一页面中提取。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-categories-settings-1.jpg)
然后将幻灯片的背景源设置为“图像”,并启用“存在时来自流的图像”选项。
帖子的“精选图片”现在将作为幻灯片的主要背景。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/image-background-1.jpg)
接下来,添加“快速样式标题”
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/quick-style-headline-1-1.jpg)
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/quick-style-header-1.jpg)
然后在“图层”的内容部分中选择“元”选项。
选择元数据之前,请清除默认的“新层”文本,因为将不再需要它。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-meta-content-1.jpg)
然后选择“帖子标题”选项。
从元模态中选择一个选项将为内容创建一个占位符。有很多选项可供选择,这就是从任何外部内容源(如WooCommerce,Events Manager和Social Streams(Facebook,YouTube等))中提取内容的方式。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-title-content-1.jpg)
然后,一个特殊的meta占位符标签将被添加到Layer的content字段中。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-title-tag-1.jpg)
然后将另一个文本层添加到舞台,并为其内容选择“摘录”元占位符。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-excerpt-1.jpg)
现在,您的编辑阶段将如下图所示,
通过此设置,当在您的网站上查看模块时,帖子的精选图像将作为幻灯片的主要背景以及帖子的标题和节选被拉入。
![[Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。 [Slider Revolution 6]创建一个Slider,其中填充了WordPress网站的帖子中的内容。](https://aladd.net//wp-content/uploads/2020/05/post-meta-placeholder-text-1.jpg)