WP Menu CPT
MU plugin to manage and display restaurant menus in WordPress.
★ 2stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/andre-lmarinho/wp-menu-cpt/archive/refs/heads/main.zipFrom the readme
WP Menu CPT
A WordPress MU plugin that registers a Menu Item custom post type with categories, pricing, CSV import, image linking, and shortcode rendering. Ideal for restaurants, cafés, and food-service businesses.
Features
- Custom Post Type (menuitem) with full admin UI
- Hierarchical taxonomy (menucategory) with sort order and layout options
- Price metabox with automatic numeric normalization
- Single-category enforcement per item
- CSV bulk import with delimiter auto-detection
- Automatic image linking by item code
- Shortcodes for rendering menus on the frontend
- Two layout modes: Simple (list) and Media (with thumbnails)
- Inline styles — no external CSS dependencies
- Fully sanitized and escaped (WPCS compliant)
Installation
1. Copy the wp-menu-cpt/ folder into wp-content/mu-plugins/.
2. WordPress will load it automatically on every request.
Alternatively, create a loader file at wp-content/mu-plugins/load-wp-menu-cpt.php:
Shortcodes
Display a single category
Attributes: id, slug, name, showtitle (0|1), showdesc (0|1), showprice (0|1), layout (simple|media), limit, order (ASC|DESC), orderby (menuorder|title).
Display the full menu
Auto-generated per-category sho