Using The Featured Blog Article Slider With Other Post Types

Link: https://support.brilliantdirectories.com/support/solutions/articles/12000066244-using-the-featured-blog-article-slider-with-other-post-types

The admin can use the "Featured Blog Article Slider" add-on functionality to show single photo posts such as blogs (Default), articles, coupons, and Jobs. 


If the admin would like to use this add-on with any of the posts mentioned above, please follow these steps: 


1. Go to Settings - Design Settings and click on Home tab, from there expand the Select Content to Display:




2. Select the option "Featured Blog Article Slider"



3. Choose the post type the admin wants to use this streaming widget with: articles, coupons, or jobs . In this case, I'll use the coupons post type, so I'll choose "Coupons". 




4. By default, the Blog Form has a field to display the "Featured Post Input", so in order to add these new posts, we need to add this same field to the coupons form. Please go to Toolbox >> Form Manager. 



5. Find the form the admin needs to customize (Articles, coupons, or jobs). 

6. Click on Actions >> Customize. 



I'm going to customize the "Coupons" form because I'm using this post type as an example but if the admin is going to use another post, please use the following forms: 


  • Articles: member_article_fields 
  • Coupons: coupon_fields 
  • Jobs: job_fields 




7. Click on "New Field". 

8 Select "Custom HTML" as the Field Type. 

9. In the"Field Label" option, paste this widget: [widget=Bootstrap Theme - Display - Feature Post Input]

10. In the "Database Variable" field, paste this variable: widget_bootstrap_theme_display_feature_post_input

11. Show in Display View? need to be set to "Off".

12. Show in Input View? need to be set to "On".

13. Save the changes. 





Once this has been added the admin will see a new field in the "Coupons" form. It will allow the admin to select the posts they want to show in the homepage slider. 


Before the form customization: 




After the form customization: 




Now, when a coupon is added, we can select which coupon to show in the homepage slider.  


They will look like this: 




Important: this add-on won't work with multiple photo posts such as properties, photo albums, classifieds, products, etc. Also, make sure to follow the suggested image size: Recommended image size 760x400 pixels


Note: This could also work for other post types like the Events Post type, but to have this working , it will be required to do some small customizations to the widget: Bootstrap Theme - Homepage - Featured Blog Posts Slider. This "<" sign has to be changed for a ">" sign, flipping the way the logic works in relation to the start_date of the posts:



If this add-on is not yet owned, the admin can purchase it on our website.
Also find more information about this add-on in our documentation: Featured Blog Article Slider Add-On.