Custom Post Type Widgets
Custom Post Type Widgets plugin adds default custom post type widgets. You can filter by registered Custom Post Type or Taxonomy on widgets. Descriptions of Widgets Recent Posts (Custom Post Type) display a list of the most recent custom posts. Title – description that appears over the list of recent custom posts. Post Type – if selected, filter by a custom post type. (e.g. post). Number of posts to show (at most 15) – enter the number of posts to display. Display post date? – if checked, display post date. Archives (Custom Post Type) display a list of archive links for each month that has custom posts. Title – description that appears over the list of archive links. Post Type – if selected, filter by a custom post type. (e.g. post). Archive Type Display as dropdown – if checked, this box causes the archives to be displayed in a drop-down box. Show post counts – if checked, this box causes a count of the number of posts for each archive period. Order Categories (Custom Post Type) display a list of categories that has custom posts. Title – description that appears over the list of categories. Taxonomy – if selected, filter a custom taxonomy (e.g. category). Display as dropdown – if checked, this box causes the categories to be displayed in a dropdown box. Show post counts – if checked, this box causes the count of the number of posts to display with each category. Show hierarchy – if checked, shows parent/child relationships in an indented manner. Calendar (Custom Post Type) display a calendar of the current month. Title – description that appears over the calendar. Post Type – if selected, filter by a custom post type. (e.g. post). Recent Comments (Custom Post Type) display a list of the most recent comments. Title – description that appears over the list of recent comments. Post Type – if selected, filter by a custom post type. (e.g. post). Number of comments to show (at most 15) – enter the number of comments to be displayed. Tag Cloud (Custom Post Type) display a list of the top 45 that has used in a tag cloud. Title – description that appears over the tag cloud. Taxonomy – if selected, filter a custom taxonomy (e.g. post_tag). Show tag counts – if checked, this box causes the count of the number of tags to display with each tag. Search (Custom Post Type) A search form for your site. Title – description that appears over the search. Post Type – if selected, filter by a custom post type. (e.g. post). Hooks Custom Post Type Widgets has its own hooks. See the reference for details. Reference: https://github.com/thingsym/custom-post-type-widgets#hooks Support If you have any trouble, you can use the forums or report bugs. Forum: https://wordpress.org/support/plugin/custom-post-type-widgets/ Issues: https://github.com/thingsym/custom-post-type-widgets/issues Contribution Small patches and bug reports can be submitted a issue tracker in Github. Forking on Github is another good way. You can send a pull request. Translating a plugin takes a lot of time, effort, and patience. I really appreciate the hard work from these contributors. If you have created or updated your own language pack, you can send gettext PO and MO files to author. I can bundle it into plugin. VCS – GitHub Homepage – WordPress Plugin Translate Custom Post Type Widgets into your language. You can also contribute by answering issues on the forums. Forum: https://wordpress.org/support/plugin/custom-post-type-widgets/ Issues: https://github.com/thingsym/custom-post-type-widgets/issues Patches and Bug Fixes Forking on Github is another good way. You can send a pull request. Fork Custom Post Type Widgets from GitHub repository Create a feature branch: git checkout -b my-new-feature Commit your changes: git commit -am ‘Add some feature’ Push to the branch: git push origin my-new-feature Create new Pull Request Contribute guidlines If you would like to contribute, here are some notes and guidlines. All development happens on the develop branch, so it is always the most up-to-date The master branch only contains tagged releases If you are going to be submitting a pull request, please submit your pull request to the develop branch See about forking and pull requests Test Matrix For operation compatibility between PHP version and WordPress version, see below Github Actions.
Simple Restaurant Menu Display
Simple Restaurant Menu Display allows you to: Create and categorize menu items using a custom post type and taxonomy Define multiple quantity/price pairs for items (like size/portion/volume) Mark items as “Special” with a custom field badge Override styles using your theme Insert menus easily via a Gutenberg block or shortcode Usage Add menu items under Menu Items > Add New in the admin. Assign items to a Menu Section (taxonomy). Optionally mark as Special or add pricing quantities. [simple_restaurant_menu_display] — shows full menu grouped by section. [simple_restaurant_menu_display section=”breakfast”] — filters items to the “breakfast” section. [simple_restaurant_menu_display special=”yes”] — shows only special items. [simple_restaurant_menu_display section=”lunch” special=”yes”] — shows special lunch items. Insert the Menu Block via the Gutenberg editor. Template Overrides You can override the HTML templates used to display menu items. Template Files You Can Override | Plugin File | Theme Override Location | |———————————–|———————————————————————-| | templates/simpremed-menu-item.php | your-theme/simple-restaurant-menu-display/simpremed-menu-item.php | | templates/simpremed-menu-loop.php | your-theme/simple-restaurant-menu-display/simpremed-menu-loop.php | How to Override 1. Create this directory in your theme: /wp-content/themes/your-theme/simple-restaurant-menu-display/ Copy the plugin template file(s) to your theme directory. Edit the templates in your theme as needed. ✅ If a template file exists in your theme, it will be used instead of the plugin default. Filters simpremed_currency_symbol — Change the currency symbol. simpremed_template_part — Customize the logic for loading template parts. Translation This plugin is translation-ready and includes a .pot file in the /languages folder.