Today we are launching an exciting new product, a plugin for ClassiPress called Dynamic Multi-Level Fields, which is probably the most complete multi-region solution yet for ClassiPress. The decision to create the plugin came at the back of some good deliberation, which prompted us to discuss the idea on the AppThemes forum thread available here. A lot of people registered their interest which then helped us decide to go for it.
Prerequisites
- The ClassiPress fields you wish to attach to different levels must exist on all the forms.
- The fields will be forced to be required for the plugin to work correctly.
How to Install and Integrate?
- Extract zip in the /wp-content/plugins/ directory.
- Activate the plugin through the ‘Plugins’ menu in WordPress.
- Open ClassiPress → ML Plugin Options page.
- Enter the field values for each level and attach it to a ClassiPress field
Image may be NSFW.
Clik here to view.Enter values for each level and attach it to a ClassiPress field
- Setup the Menu and Popup options if you decide to allow filtering by field values
Image may be NSFW.
Clik here to view.Setup Menu and Popup Options
- Nearly done then, if you wish to allow your visitors to be able to filter the ads they see based on the values they select using the dynamic drop downs, which you will if you are using the plugin as a region selector, make sure you have configured the “Menu and Popup options” as mentioned in #5, and then open header.phpin your child theme folder and locate the following line:
<?php wp_nav_menu( array('theme_location' => 'primary', 'fallback_cb' => false, 'container' => false) ); ?>
and paste the following, directly above or below based on your preferred location:
<?php do_action('ml_show_select_menu'); ?>
That’s it then. Hope you enjoy taking your ClassiPress website to a new level.