內容簡介
,使用HEP顯示文章外掛可讓用戶以多種方式以響應式設計在網站中顯示文章。
您可以在網站中以兩種方式顯示文章。 他們是:
1.使用小工具
2.使用短碼
小工具指示
要將文章顯示為小工具,您需要遵循以下指示:
* 在管理面板的左側邊欄上懸停在“外觀”上
* 单击“小工具”
* 在小工具页面上,在所需的边栏中添加一个“HEP Display Posts”小工具
* 就这样! 現在文章將顯示在網站的側邊欄中
短代码
此外掛的短碼是:
[hep_display_posts]
要將文章顯示為簡碼,只需將簡碼粘貼到所需的區域中,文章將相應顯示。 您可以在不同的文章,頁面,側邊欄等位置貼上它。
選項
有多個選項可以修改文章的顯示方式。 在使用簡碼時需要的屬性也已經提到。
*小工具標題:顯示小工具的標題。 例如:最新文章
*文章數量(短碼屬性:hep_no_of_posts):顯示多少篇文章。 默認值為5。
[hep_display_posts hep_no_of_posts =“5”]
*文本對齊(短碼屬性:hep_text_align):文本將如何對齊。 對於阿拉伯文,使用從右到左(rtl)的對齊。 对于英文,使用从左到右(ltr)的对齐方式。 默認值是'ltr'。
[hep_display_posts hep_text_align ="ltr"];值為ltr,rtl
*文章排序(短碼屬性:hep_post_sorting_order):文章將按升序還是降序排序。 默認值為'Descending'(短碼为'desc')。
[hep_display_posts hep_post_sorting_order ="desc"];值為asc,desc
*按哪種信息排序文章(短碼屬性:hep_post_sorting_order_by):文章將按日期、文章標題或隨機排序。 默認值為“date”。
[hep_display_posts hep_post_sorting_order_by ="date"];值為date、title、rand
*按類別顯示(短碼屬性:hep_settings_post_category):按類別顯示文章。 應提供類別的縮寫。 多個類別縮寫也可以用逗號分隔輸入。 如果不需要特定類別,可以讓此處空白。
[hep_display_posts hep_settings_post_category ="news"]
*按標籤展示(短碼屬性:hep_settings_post_tag):按標籤顯示文章。 應提供標籤的縮寫。 多個標籤縮寫也可以用逗號分隔輸入。 如果不需要特定標籤,可以讓此處空白。
[hep_display_posts hep_settings_post_tag ="tag1"]
*按作者顯示文章(短碼屬性:hep_settings_post_author):根据作者显示文章。 应提供作者的縮寫。 只允许在此处输入一个作者縮寫。 如果不需要特定作者,可以讓此處空白。
[hep_display_posts hep_settings_post_author ="admin"]
*隱藏縮略圖(短碼屬性:hep_hide_thumbnail):隱藏網站上顯示的文章縮略圖像。 為了隱藏簡碼的縮略圖,值應為“on”。
[hep_display_posts hep_hide_thumbnail ="on"];
*隱藏日期(短碼屬性:hep_hide_date):隱藏網站上顯示的文章日期。 為了隱藏簡碼的日期
外掛標籤
開發者團隊
原文外掛簡介
HEP Display Posts plugin allows users to display posts with responsive design in the websites in different ways by using multiple options.
You can display the posts in 2 (two) ways in your websites. They are:
1. Using Widgets
2. Using Shortcodes
Widget Instructions
To show the posts as widgets, you need to follow these instructions:
* Hover on ‘Appearance’ on the left sidebar of admin panel
* Click on ‘Widgets’
* In the widgets page, add an ‘HEP Display Posts’ widget in the required sidebar
* That’s it! Now posts will be shown in the sidebar of the website
Shortcode
The shortcode of this plugin is:
[hep_display_posts]
To show the posts as shortcodes, just paste the shortcode in your desired area, the posts will be shown accordingly. You can paste it in different posts, pages, sidebars etc. wherever you wish.
Options
There are several options to modify the display of the posts. The attributes, which are needed while using the shortcode are also mentioned.
* Widget Title: Display the title of the widget. For example: Latest Posts
* Number of Posts (shortcode attribute: hep_no_of_posts): How many posts will be shown. Default value is 5.
[hep_display_posts hep_no_of_posts="5"]
* Text Alignment (shortcode attribute: hep_text_align): How the text will be aligned. For Arabic, Right to Left (rtl) alignment is used. For English, Left to Right (ltr) alignment is used. Default value is ‘ltr’.
[hep_display_posts hep_text_align="ltr"]; the values are ltr, rtl
* Order Posts (shortcode attribute: hep_post_sorting_order): How the posts will be ordered, Ascending or Descending. Default value is ‘Descending’ (‘desc’ for shortcode).
[hep_display_posts hep_post_sorting_order="desc"]; the values are asc, desc
* Order Posts By (shortcode attribute: hep_post_sorting_order_by): According to which information the posts will be ordered. The options are by Date, by Post Title, or Random. Default value is ‘date’.
[hep_display_posts hep_post_sorting_order_by="date"]; the values are date, title, rand
* Show By Category (shortcode attribute: hep_settings_post_category): Show posts according to category(ies). The slug of the category should be given. Multiple category slugs could also be entered, separated by commas. You can keep it blank for no specific categories.
[hep_display_posts hep_settings_post_category="news"]
* Show By Tag (shortcode attribute: hep_settings_post_tag): Show posts according to tag(s). The slug of the tag should be given. Multiple tag slugs could also be entered, separated by commas. You can keep it blank for no specific tags.
[hep_display_posts hep_settings_post_tag="tag1"]
* Show By Author (shortcode attribute: hep_settings_post_author): Show posts according to author. The slug of the author should be given. Only one slug is allowed here. You can keep it blank for no specific author.
[hep_display_posts hep_settings_post_author="admin"]
* Hide Thumbnail (shortcode attribute: hep_hide_thumbnail): Hide the thumbnail images of the posts displayed on webite. In order to hide the thumbnail for shortcode, the value should be ‘on’.
[hep_display_posts hep_hide_thumbnail="on"];
* Hide Date (shortcode attribute: hep_hide_date): Hide the date of the posts displayed on webite. In order to hide the date for shortcode, the value should be ‘on’.
[hep_display_posts hep_hide_date="on"]
* Word Limit for Title (shortcode attribute: hep_title_word_limit): How many words of the title will be shown. Keep 0 (zero) to show the full title. Default value is 0 (zero).
[hep_display_posts hep_title_word_limit="5"]
* Message for No Posts (shortcode attribute: hep_no_posts_message): Message to show if no posts are found. Default message is ‘No posts found!’.
[hep_display_posts hep_no_posts_message="No posts found!"]
A sample shortcode is given below with some of the attributes:
[hep_display_posts hep_no_of_posts="5" hep_text_align="ltr" hep_post_sorting_order="desc" hep_post_sorting_order_by="date"]
