這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Categ Menu

外掛說明

Description: Widget/shortcodes menu(list or select field) based on posts categories/pages(also for custom post types and custom taxonomies). You can display subcategories(one level) and configure CSS, with optional jquery dropdown effect.
Based on Sample Hello World Plugin 2 (http://lonewolf-online.net/) by Tim Trott(http://lonewolf-online.net/)
and WP e-Commerce Featured Product by Zorgbargle | Phenomenoodle http://www.phenomenoodle.com

More info about the plugin:http://www.wpworking.com/

Arbitrary section

You can also use this hack instead of the plugin http://wp.me/p1fZU8-7A
If you have any questions, please let me know alvaron8@gmail.com

This readme file were validated at https://wordpress.org/extend/plugins/about/validator/

螢幕擷圖

  • Configuring widget parameters on wp-admin
  • Live demo on http://www.wpworking.com/posts-list/

安裝方式

  • After the steps bellow, go to the permalink settings page and update it without changing, it flushes
    WordPress permalink settings and make the product permalink work.
  1. Upload wp_categ_menu folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress

Version 7.0.0 supports short codes, like this:
[wpcm tpp=’s’ pggo=’c’ tte=” typep=’posts’ catg=’category’ subc=’false’ orient=” styatr1=” styatr2=” styatr3=” styatr4=” ste=’Select a Category’ selcss=”]
/*
tpp – Menu Type – ‘s’ select ‘m’ menu – default = ‘posts’;
pggo – Display Pages or Categories? ‘c’ categories ‘p’ pages;
tte – Widget Title – default = ”;
typep – Posts Type – default = ‘posts’;
catg – Posts Category – default = ‘category’;
subc – Display subcategories/child pages(one level) – default =” ;
sbmn – Use Jquery drop down subcategory submenu – default =” ;
orient – Menu Orientation(doesn’t work for select field) ‘h’ or ‘v’ – default =” ;
styatr1 – Main menu(ul) CSS (doesn’t work for select field);
styatr2 – Main menu(LI) CSS (doesn’t work for select field);
styatr3 – Sub menu(ul) CSS (doesn’t work for select field);
styatr4 – Sub menu(LI) CSS (doesn’t work for select field);
ste – Select first option text(doesn’t work for regular menu) – default is “Select One”;
selcss – Select field CSS(doesn’t work for regular menu)
*/

Or

  1. Register a widget sidebar on your functions file, for example, just paste the code below on your theme functions.php

/if ( function_exists(‘register_sidebar’) )
register_sidebar(array(
‘name’ => ‘wp_categ_menu’,
‘before_widget’ => ”,
‘after_widget’ => ”,
‘before_title’ => ”,
‘after_title’ => ”,
));
/

  1. Go to the permalink settings page and update it without changing

Or

You if you have already registered any sidebar, you can drag the WP Categ Menu widget inside it, at wp-admin

  1. Configure the widget on your wp-admin pannel and save(see screenshot 1)
  2. Use the PHP code bellow where you want the widget to show, on your theme pages
    /* if ( !function_exists(‘dynamic_sidebar’) || !dynamic_sidebar(‘wp_categ_menu’)) : endif; */
  3. You can also play with its CSS styles, so using the ids divcateg, ulcateg and the dynamic generated licateg_[category slug], you may change the category menu appearance. If you choose to use the select field menu, use the element selcateg to change CSS.
  4. Go to the permalink settings page and update it without changing

常見問題集

If you have any questions, please let me know alvaron8@gmail.com

使用者評論

這個外掛目前沒有任何使用者評論。

參與者及開發者

以下人員參與了開源軟體〈WP Categ Menu〉的開發相關工作。

參與者

將〈WP Categ Menu〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

On version 7.0.0 works with shortcodes
On version 6.0.2 fixed javascritp bug
On version 6.0.1 fixed bug for categories or pages with “-” on the name
On version 6.0.0 you can choose pages or categories to display on the menu
bug fixed on ul-li menu