Every CMS site needs a news section. Ultimate News Plugin allows you add, manage and display news, date archives, widget, news with thumbnails widget on your website.
The plugin adds a Latest News tab to your admin menu, which allows you to enter news items just as you would regular posts.
- Now you can Display news post with the help of short code :
[ccs_news]
[ccs_news_slider]
- Template code :
<?php echo do_shortcode('[ccs_news]'); ?>
<?php echo do_shortcode('[ccs_news_slider]'); ?>
Following are News Parameters for [ccs_news] :
- limit : [ccs_news limit="10"] (Display latest 10 news.)
- category : [ccs_news category="7,8,9"] (Display News categories wise. values are comma separated category ids.)
- design : [ccs_news design="design-1"] (select the design to show your news post. values are "design-1", "design-2", "design-3", "design-4", "design-5", "design-6")
- grid : [ccs_news grid="2"] (News items per row.)
- show_date : [ccs_news show_date="false"] (Display News date OR not. Options are "true OR false")
- show_category_name : [ccs_news show_category_name="true"] (Display News category name OR not. Options are "true OR false").
- show_content : [ccs_news show_content="true" ] (Display News Short content OR not. Options are "true OR false").
- order : [ccs_news order="asc"] (Display your news post in ascending or descending order. values are "asc" OR "desc")
- orderby : [ccs_news orderby="post_date"] (Display news post in desired order. Values are "post_date", "modified", "title", "name" (Post Slug), "ID", "rand", "menu_order", "comment_count")
- link_target : [ccs_news link_target="self"] (Open link in a same window or in a new tab. Values are "self" OR "blank".)
- exclude_post : [ccs_news exclude_post"1,2,3"] (Exclude some news post which you do not want to display.)
- posts : [ccs_news posts="4,5,6"] (Display only specific News posts.)
- show_readmore : [ccs_news show_readmore="false"] (Show read more button. Values are "true" and "false")
- word_limit : [ccs_news word_limit="20"] (Control News short content Words limit. By default limit is 20 words).
- readmore_tail : [ccs_news readmore_tail="..."] (Display three dots or ... after content.)
- pagination : [ccs_news pagination="false"] (Show pagination links. Values are "true" and "false")
Following are News Parameters for [ccs_news_slider] :
- limit : [ccs_news_slider limit="10"] (Display latest 10 news.)
- category : [ccs_news_slider category="7,8,9"] (Display News categories wise. values are comma separated category ids.)
- design : [ccs_news_slider design="design-1"] (select the design to show your news post. values are "design-1", "design-2", "design-3")
- show_date : [ccs_news_slider show_date="false"] (Display News date OR not. Options are "true OR false")
- show_category_name : [ccs_news_slider show_category_name="true"] (Display News category name OR not. Options are "true OR false").
- show_content : [ccs_news_slider show_content="true" ] (Display News Short content OR not. Options are "true OR false").
- order : [ccs_news_slider order="asc"] (Display your news post in ascending or descending order. values are "asc" OR "desc")
- orderby : [ccs_news_slider orderby="post_date"] (Display news post in desired order. Values are "post_date", "modified", "title", "name" (Post Slug), "ID", "rand", "menu_order", "comment_count")
- link_target : [ccs_news_slider link_target="self"] (Open link in a same window or in a new tab. Values are "self" OR "blank".)
- exclude_post : [ccs_news_slider exclude_post"1,2,3"] (Exclude some news post which you do not want to display.)
- posts : [ccs_news_slider posts="4,5,6"] (Display only specific News posts.)
- show_readmore : [ccs_news_slider show_readmore="false"] (Show read more button. Values are "true" and "false")
- word_limit : [ccs_news_slider word_limit="20"] (Control News short content Words limit. By default limit is 20 words).
- readmore_tail : [ccs_news_slider readmore_tail="..."] (Display three dots or ... after content.)
- slides_column : [ccs_news_slider slides_column="2"] (show the news slide at time in slider.)
- slides_scroll : [ccs_news_slider slides_scroll="1"] (number of slides to scroll.)
- dots : [ccs_news_slider dots="true"] (show pagination dots under the slider. values are "true" OR "false")
- arrows : [ccs_news_slider arrows="true"] (show the slider arrows. values are "true" OR "false")
- autoplay : [ccs_news_slider autoplay="true"] (auto slide your news post in slider. values are "true" OR "false")
- loop : [ccs_news_slider loop="true"] (continuous loop of news posts. values are "true" OR "false")