How to use "Niche Hero" in WordPress - dallasrowling/niche-hero GitHub Wiki
In order to generate your first hero section, you must use the [nichehero] shortcode. There are various attributes attached to this shortcode that allow you customize how you would like your hero section to be displayed.
Number of posts:
Example: [nichehero number_of_posts="6"]
Default value: 6
Post type
Example: [nichehero post_type="watch"]
Default value: post
Enable total comments to be displayed
Example: [nichehero comments_enabled="1"]
Default value: 0 You would input "1" in order to enable this feature
Enable video views to be displayed
Example: [nichehero video_views_enabled="1"]
Default value: 0 You would input "1" in order to enable this feature
Display the date for your posts
Example: [nichehero video_show_date="0"]
Default value: 1 You would input "1" in order to enable this feature
Display the date in the leading hero sections
Example: [nichehero video_show_date_in_lead="1"]
Default value: 0 You would input "1" in order to enable this feature
Order your posts per shortcode
Example: [nichehero order_by="ASC"]
Default value: DESC
Customize background color of first leading hero post
Example: [nichehero overlay_color='rgba(5,25,244,0.6)']
Default value: rgba(55,55,255,0.3)
Customize background color of second leading hero post
Example: [nichehero second_overlay_color='rgba(1,85,244,0.6)']
Default value: rgba(55,55,255,0.3)
Customize background color of third leading hero post
Example: v[nichehero third_overlay_color='rgba(15,85,244,0.6)']`
Default value: rgba(55,55,255,0.3)
Change the display style for each shortcode
Example: [nichehero display='3']
Default value: rgba(55,55,255,0.3) You can currently select 1, 2, or 3 as display options
Change the height of each hero post
Example: [nichehero image_height="190px"]
Default value: 140px
Change the min-height of each hero post
Example: [nichehero image_height="295px"]
Default value: 220px
Select how many columns you want to display
Example: [nichehero columns="3"]
Default value: 4
Offset from the first post as indicated by orderby
Example: [nichehero post_offset="10"]`
Default value: 0