
內容簡介
這個外掛程式是為了 Impact Hub Bergen 網站設計的,但也可能對其他想要實現類似功能的網站有所幫助。
請注意:此外掛程式並非受 Impact Hub 公司的官方支持。
該外掛程式的功能包括:
新增自訂文章「Entrepreneur toolbox(創業家工具箱)」和「Member showroom(會員展廳)」。
使「Entrepreneur toolbox」預設為私密狀態。
從私密文章中移除「Private:」字樣。
啟用自訂短碼,以列出自訂文章。它包括分頁和顯示特色圖片的支援。
新增自訂的「hubmember」角色。
在 body 類別聲明中新增已登入使用者的角色。因此,基於使用者的角色,可以自訂管理介面的樣式。
短碼範例:
[list-posts limit=3 type="impcthub-resource"] 列出「Entrepreneur toolbox」文章,每頁最多三篇,包含「上一頁」和「下一頁」的頁碼連結。
[list-posts limit=-1 type="impcthub-member"] 列出所有「Member showroom」文章,不分頁。
外掛標籤
開發者團隊
② 後台搜尋「Toolbox and Showroom Supercharger」→ 直接安裝(推薦)
原文外掛簡介
This plugin was tailored for the Impact Hub Bergen site. And it might be useful for other sites that are looking to implement similar functionality.
Please note: This plugin is by no means officially supported by the Impact Hub company.
What the plugin does:
Adds the custom posts “Entrepreneur toolbox” and “Member showroom”.
Make Entrepreneur toolbox be published as private by default.
Trim away the word “Private:” from private posts.
Enable custom shortcode for listing out custom posts. It includes pagination and support for displaying featured image.
Adds a custom hubmember role.
Add logged-in user role to the body class declaration. So that one might add styles to customize the admin view based on the logged in user’s role.
Shortcode example usage:
[list-posts limit=3 type="impcthub-resource"] Lists out Entrepreneur resource posts with max three posts on each page with “previous” and “next” links for pagination.
[list-posts limit=-1 type="impcthub-member"] Lists out all Member showcase posts without pagination.
