This plugin adds a Community Custom Post Type to a Genesis Child theme, similar to the one in the Winning Agent Pro theme by Carrie Dils. You can change the name of the custom post type and the name of the slug, making this a very versatile plugin. Easily rename it to Portfolio, Projects, Towns, Cities, Neighborhoods, etc. Includes a widget to display your custom post type. Archive page settings includes changing the name of the slug, and some nice sorting options.
Note: This plugin requires the Genesis Framework.
Read more about why I wrote this plugin along with examples here: Genesis Communities CPT Plugin
CUSTOM POST TYPE NAME AND SLUG
You can choose the name you want to use for the slug URL under Communities -> Settings. It defaults to ‘communities’.
You can also change the singular and plural name of the custom post type. For example if Towns make more sense for you, you can change the singular name to ‘Town’, plural name to ‘Towns’ and the slug to ‘towns’. This makes this plugin versatile as it can be used outside of real estate. Other uses, portfolio, projects, etc.
A stylesheet is included and if you prefer to use your own stylesheet, you can deregister it under Communities -> Settings. This deactivates the stylesheet. You may copy the css styles from the awp-communities.css file in the css folder of the plugin directory and paste them in your theme’s stylesheet.
FEATURED COMMUNITIES WIDGET
Adds a widget for sidebar or for using on the home page. Includes a random sort option, along with sorting by title, date, post_id, and menu_order. Option to include page title, the featured image with choice of sizes, and whether to include any content. CSS is style for using this widget in the sidebar and on the home page.
COMMUNITY ARCHIVE PAGE
Lots of sorting options for this page. Choose them in the Communities -> Settings page. Defaults to sorting by title (ascending A-Z).
Will display communities four across on desktop and responsive for smaller viewport widths. (This keeps page load times fast). Includes a random sort option, along with sorting by title, date, post_id, and menu_order. You can change the number of posts per page in the Communities -> Settings page.
Does this plugin require the Genesis Framework?
Yes. Install the plugin into your active Genesis Child theme.
How do I know if the plugin is working?
Look in your Dashboard for a house icon with the name of your custom post type (Defaults to Communities).
Is this plugin translation ready?
Yes. The code is in place.
Bug fix on Fatal error: Uncaught Error: Call to a member function get() on null under certain conditions.
Bug fix on Fatal error: Call to undefined function get_plugin_data()
Updated banner image for plugin on WordPress repository. Updated urls in README.md and readme.txt files. Bug fix in archive template - add missing closing div and remove duplicate header output. Removed random sort from plugin settings option. Was producing unexpected results and may have also caused an issue using session_start() improperly.
Disabled random sort on archive page with pagination. Was producing unexpected results and may have also caused an issue using session_start() improperly.
Oops. Error with version number. Corrected
Bug fix - corrects duplicated featured image on single community post type when using the Winning Agent Pro theme.
Update to avoid conflict with Contact Form 7 hiding the Genesis Communities CPT menu from the Dashboard. Changed menu_position in register_post_type() to 21 from 25.
Bug fix: Updated plugin stylesheet to correct border on widget sidebar.
Bug fix: Updated plugin stylesheet to correct centering on media queries for archive page.
Bug fix: New sorting options not initialized properly when updating to version 0.6.3
Removed erroneous test message.
Added check to make sure Genesis is still active and if not, deactivate the plugin.
Removed test code message on some pages.
Updated plugin for translations. New features added for archive page. Some file names were changed.
Stylesheet changes for font sizes and removing borders on single page post display.
Updated code in functions.php to fix bug that displayed featured image on all single posts instead of just the ‘awp-community’ custom type posts.
Plugin renamed to Genesis Communities CPT. New Github location. https://github.com/jdelia/genesis-communities-cpt
Still need to add support for languages and test.
Bug fix if any of the fields are empty to reset to default on settings page. Setting pages now shows current version number.
Bug fix - uncommented code to update option on init.
Fixed bug in awp-settings.php missing slug variable on initial load.
Added support to change the name of the custom post type.
Updated plugin with function prefix to avoid conflicts. Updated Readme.txt and instructions.
This section describes how to install the plugin and get it working.
- Make sure you have the Genesis Framework installed and a Genesis Child theme active.
- Upload the entire
genesis-communities-cptfolder to the
- Activate the plugin through the 'Plugins' menu in WordPress
- That's it! You can enter your Archive Page settings under Communities -> Archive Settings.
- You can change the name of the slug in Communities -> Settings.
Sample home page using the Genesis Communities CPT Widget.
Sample Archive page for Genesis Communities CPT.
Sample Detail page for Genesis Communities CPT.