
內容簡介
這個外掛可以做什麼?
如果你的網站有多個子頁面,你可能會想在模板中處理一些特定的內容(比如側邊欄、頁腳、橫幅等等)。 WordPress 小工具可以在特定的小工具位置顯示內容,但是你不能告訴 WordPress 只在某個頁面上顯示你的內容,這就是這個外掛的作用。
你可以創建不同的模組位置,分配內容並選擇顯示在哪些頁面。如果你使用 WordPress 作為 CMS,這會非常有幫助。
創建模組位置
首先,你可以創建不同的模組位置,名稱可以自定義。要將模組位置放在模板中,只需要將短碼複製並粘貼到位置的旁邊。如果你已經創建了內容,你可以拖放它們來改變順序。
創建內容
現在,你可以為你的模組位置創建內容。你可以選擇要在哪些頁面、分類或文章中顯示你的內容。這些信息將從你的自定義菜單中(在模板中定義)載入。
如果你的自定義菜單中有包含文章的分類,點擊“+”按鈕來顯示它們。你也可以在這裡選擇在哪些文章中顯示你的內容。
定義 HTML 標記
在右側的小框中,你可以簡單地定義你的 HTML 標記。請寫 {{post_content}} 來引用你的內容, {{post_title}} 來引用你的標題 - 所有值的列表可以在這裡找到。要重置你的標記,只需點擊“重置”,即可載入標準標記(可以在設置頁面上更改)。
設置
更改標準 HTML 標記。如果你在模組位置文章中點擊“重置”,這將被加載。
更改分類下拉菜單中文章的排序。如果一個分類下有很多文章,你可以通過更改它們的排序來找到特定的文章。
有遺漏嗎?發送電子郵件給我!
我很樂意接受新的想法!給我寫封信: [email protected]
外掛標籤
開發者團隊
原文外掛簡介
What does it do?
If you have a site with multiple subpages, you might have some positions in your template where you probably want to manage individual content (like a sidebar, a footer, a banner or whatever). The WordPress widgets can display content in specific widget-positions, but you can’t tell WordPress to only display your content on a certain page – That’s where my plugin comes in.
You can create different module positions, assign content and choose on which pages it will be shown. If you use WordPress as a CMS, this will be very helpful.
Create Module Positions
First, you can create different module positions. Rename these as you want. To put a module position in your template you can easily copy & paste the shortcode right next to the positions’s name. if you have already created content, you can drag and drop these around to change their order.
Create Content
Now, you can create content for your module positions. You can choose on which pages, categories or posts your content will be displayed. For this information your custom menus will be loaded (which are defined in your template).
If there are categories with posts in your custom menu, click the “+”-button to show them. You also can choose on which posts your content will be displayed here.
Define your HTML-markup
In the little metabox on the right side, you can simply define your HTML-markup. Try writing {{post_content}} for your content and {{post_title}} for your title – A list of all values can be found here. To reset your markup just click on “Reset”, that will load the standard markup (which can be changed on the settings page).
Settings
Change your standard HTML-markup. If you click on “Reset” in your moduleposition-posts, this will be loaded.
Change the order of posts in the drop-down menus of your categories. That may be useful if you have a lot of posts in a category and you want to find a special post.
Missing something? Send me an e-mail!
I’m open to new ideas! Write me: [email protected]
