添加一个滑块-该滑块显示与当前查看的WP帖子相关的下一个和上一个帖子
插件要求
相邻帖子是一个高级插件,需要注册和激活购买代码。
首先,请从插件的主管理页面安装并激活插件
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/install-addons-modal-16.jpg)
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/adjacent-posts-addon-1.jpg)
接下来,创建一个新模块,并将其命名为“我的帖子滑块”(可以将模块命名为所需的任何名称)。
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/new-module-8.jpg)
然后选择“基于帖子”和“当前帖子”作为模块的内容源
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/current-post-1.jpg)
接下来,将幻灯片的主要背景设置为“图像”,并启用“存在时来自流的图像”选项。
不要从媒体/对象库中选择图像,因为该图像将自动从此处#4中显示的帖子的“精选图像” 中获取。
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/set-featured-image-5.jpg)
然后将{{link}}添加为幻灯片的链接URL的元占位符
这将允许用户在单击幻灯片时访问帖子。
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/related-posts-slide-link-3.jpg)
接下来,将文本图层添加到幻灯片,并调整其大小/位置和字体样式。
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/add-text-based-layer-5.jpg)
然后为“图层”的内容设置特殊的元占位符,从“发布”菜单中选择一个选项。
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/text-meta-placeholder-5.jpg)
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/post-title-meta-3.jpg)
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/gallery-image-meta-title-5.jpg)
如果您还想显示帖子的摘录或其他内容,请添加另一个文本图层并重复上述步骤。
接下来,回到AddOns Modal,将新的Posts Slider连接到AddOn,并配置其设置。
然后,设置完成后,“相邻帖子”滑块将自动添加到您的各个WordPress帖子页面中。
![[Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post. [Slider Revolution 6] Add a Slider that displays the Next and Previous posts in relation to the currently viewed WP Post.](https://aladd.net//wp-content/uploads/2020/05/adjacent-1.jpg)
1.仅类别
选择仅显示分配给当前查看帖子的类别中的上一个/下一个帖子。
2.滑块
选择根据以上说明创建的“我的帖子滑块”。
3.滑块位置
选择“相邻帖子”滑块是否应出现在当前查看的帖子内容的上方或下方。