Genesis Communities CPT

Description

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.

STYLESHEET

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.

Screenshots

  • Sample home page using the Genesis Communities CPT Widget.
  • Sample Archive page for Genesis Communities CPT.
  • Sample Detail page for Genesis Communities CPT.

Installation

This section describes how to install the plugin and get it working.

  1. Make sure you have the Genesis Framework installed and a Genesis Child theme active.
  2. Upload the entire genesis-communities-cpt folder to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress
  4. That’s it! You can enter your Archive Page settings under Communities -> Archive Settings.
  5. You can change the name of the slug in Communities -> Settings.

FAQ

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.

Reviews

Thanks

Thanks so much for great plugin. I love it. Is it possible to create multiple categories ? Because I would like to create some list instead of only one.

Thanks

Read all 3 reviews

Contributors & Developers

“Genesis Communities CPT” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

0.7.2

Bug fix on Fatal error: Uncaught Error: Call to a member function get() on null under certain conditions.

0.7.1

Bug fix on Fatal error: Call to undefined function get_plugin_data()

0.7.0

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.

0.6.9

Disabled random sort on archive page with pagination. Was producing unexpected results and may have also caused an issue using session_start() improperly.

0.6.8.1

Oops. Error with version number. Corrected

0.6.8

Bug fix – corrects duplicated featured image on single community post type when using the Winning Agent Pro theme.

0.6.7

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.

0.6.6

Bug fix: Updated plugin stylesheet to correct border on widget sidebar.

0.6.5

Bug fix: Updated plugin stylesheet to correct centering on media queries for archive page.

0.6.4

Bug fix: New sorting options not initialized properly when updating to version 0.6.3

0.6.3

Removed erroneous test message.

0.6.2

Added check to make sure Genesis is still active and if not, deactivate the plugin.

0.6.1

Removed test code message on some pages.

0.6.0

Updated plugin for translations. New features added for archive page. Some file names were changed.

0.5.2

Stylesheet changes for font sizes and removing borders on single page post display.

0.5.1

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.

0.5.0

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.

0.4.3

Bug fix if any of the fields are empty to reset to default on settings page. Setting pages now shows current version number.

0.4.2

Bug fix – uncommented code to update option on init.

0.4.1

Fixed bug in awp-settings.php missing slug variable on initial load.

0.4.0

Added support to change the name of the custom post type.

0.3.2

Updated plugin with function prefix to avoid conflicts. Updated Readme.txt and instructions.

0.2.2

Initial Release.