Category Posts in Custom Menu Premium

 10,00 80,00

To generate your license key, I require the site URL(s). Please note your time zone difference from mine (CET). You will receive the license key via e-mail within 24 hours after purchase.
Product total
Options total
Grand total
SKU: CPCM-Premium Category:

Description

EW: CPCM V3 now provides support for Full Site Editing with the Gutenberg Block Editor

This plugin is available as Free and as Premium version.

Free

The free version of the plugin can be found in the WordPress.org Plugin Directory. Just search for “Category Posts in Custom Menu”. Or search for “CPCM”, that also works.

Premium

Payment in Euro’s via Stripe or bank transfer (IBAN) to The Netherlands. You’ll receive an automatic e-mail a month before your license expires.

Premium: Features

When you go Premium, you get the following extra features:

  1. Allow expanding unlimited amount of posts (-1 for unlimited)
  2. Extra wildcards, see below.
  3. Build a custom HTML structure for your menu items (no longer only flat text)
  4. More fine-grained control over how the posts are ordered. (Separate selection of Order By and Ascending/Descending, more fields to order by)
  5. More fine-grained control over how the posts are expanded. (When to remove the parent item, ability to exclude nested subcategories)
  6. The ability to extend the plugin with your custom post filtering and wildcards using the CPCM hooks
  7. Automatic updates

Premium: Actions and filters for extensibility

The plugin behavior can be extended.

To extend the backend with your own controls and use them in the posts query, add the following:

  • Filter “cpcm_filter_posts_query”: This filter is called to determine which posts to retrieve for the selected category/taxonomy. You can add or modify the posts query to your liking.
  • Action “cpcm_custom_fields”: This hook allows you to add your own input fields to the Category Posts in Custom Menu container in Appearance > Menus.

To add your own wildcards for the post navigation label, add the following:

  • Filter “cpcm_replace_user_wildcards”: This filter is called after all default CPCM wildcards have been processed.

You can see examples in the sample-extensions directory, included in the plugin code.

Premium: Actions and filters for extensibility

The plugin behavior can be extended.

To extend the backend with your own controls and use them in the posts query, add the following:

  • Filter “cpcm_filter_posts_query”: This filter is called to determine which posts to retrieve for the selected category/taxonomy. You can add or modify the posts query to your liking.
  • Action “cpcm_custom_fields”: This hook allows you to add your own input fields to the Category Posts in Custom Menu container in Appearance > Menus.

To add your own wildcards for the post navigation label, add the following:

  • Filter “cpcm_replace_user_wildcards”: This filter is called after all default CPCM wildcards have been processed.

You can see examples in the sample-extensions directory, included in the plugin code.

Premium: Actions and filters for extensibility

The plugin behavior can be extended.

To extend the backend with your own controls and use them in the posts query, add the following:

  • Filter “cpcm_filter_posts_query”: This filter is called to determine which posts to retrieve for the selected category/taxonomy. You can add or modify the posts query to your liking.
  • Action “cpcm_custom_fields”: This hook allows you to add your own input fields to the Category Posts in Custom Menu container in Appearance > Menus.

To add your own wildcards for the post navigation label, add the following:

  • Filter “cpcm_replace_user_wildcards”: This filter is called after all default CPCM wildcards have been processed.

You can see examples in the sample-extensions directory, included in the plugin code.

Premium: Screenshots

See product image gallery above

Missing CSS class (WordPress bug)

The CSS class ‘current-post-ancestor’ is not applied correctly. This is a bug in WordPress that I have reported here: https://core.trac.wordpress.org/ticket/32918. This is not something I am able to fix in the plugin, it has to be fixed in WordPress. I’m sorry for the inconvenience.

Performance

The plugin is potentially very expensive, especially when you decide to build your entire menu out of nothing but category posts. The solution would be to cache the menu using transients, as reported here https://wordpress.org/support/topic/performance-problem-many-database-queries?replies=11#post-7829450

Conflicts with plugins/themes

Problem: “I can’t see what effect it has had. Nothing has changed (not that I can see) in the Appearance > Menu page. Just like before.” If you are using a recent version of category Posts in Custom Menu and an updated version of WordPress, the problem can only occur due to your theme or other plugins conflicting with Category Posts in Custom Menu. Please disable all themes and plugins except CPCM; verify that the CPCM fields show; enable other plugins and themes one by one to determine which plugin/theme conflicts with CPCM. Note: A theme must either call wp_nav_menu() or apply_filters( 'wp_nav_menu_objects', … ) for CPCM to be triggered. You should first check that the Free version of my plugin works as intended, before you purchase the Premium version

Additional information

Duration

1 year, 2 years

Number of sites

Single site: 1 site URL, Developer pack: 10 site URLs