WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Genesis Agent Profiles

This plugin creates a real estate agent directory for Genesis child themes.

  1. Upload the entire genesis-agent-profiles folder to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Start entering agents into the agent directory.

Shortcode usage

To display all agents:

[agent_profiles]

To selectively display only certain agents:

[agent_profiles id="$post_id"]
$post_id

is the ID number of each agent post, separated by comma if more than one. You can find the ID by editing the agent and looking in your browser's address bar for post=##.

Optional configuration

The following steps will allow you to connect your Agent Profiles to listings added using the WP Listings or AgentPress Listings plugin.

  1. Install and activate the Posts 2 Posts plugin. Also make sure the either WP Listings or AgentPress Listings plugin is installed, activated, and listings exist.
  2. Once activated each listing and each agent profile will have a "Connected..." sidebar widget on the Edit screen. Use this to connect them by clicking the plus sign next to each post you want to connect to the current post. This is reciprocal and only has to be done on one of the two post types.
  3. Single Agent Profiles will automatically display connected listings.
  4. The plugin includes a single-listing.php template that will be used if no single-listing.php exists in the child theme. If your theme already includes a single-listing.php template, to display connected agents on single listings, you must do one of two things:

Option 1

  1. Delete the single-listing.php in your child theme and the plugin's template will be used instead.

Option 2

  1. Edit your child theme's single-listing.php and include this code to display connected agents:
add_action( 'genesis_after_post', 'aeprofiles_show_connected_agent' ); // XHTML
add_action( 'genesis_after_entry', 'aeprofiles_show_connected_agent' ); // HTML5

function aeprofiles_show_connected_agent() {
    if (function_exists('_p2p_init') && function_exists('agentpress_listings_init') || function_exists('_p2p_init') && function_exists('wp_listings_init')) {
        echo'
        <div class="connected-agents">';
        aeprofiles_connected_agents_markup();
        echo '</div>';
    }
}

Requires: 3.2 or higher
Compatible up to: 3.9.1
Last Updated: 2014-6-20
Downloads: 4,021

Ratings

3 stars
3.8 out of 5 stars

Support

12 of 12 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

2 people say it works.
0 people say it's broken.

100,1,1
100,2,2 100,1,1 100,2,2 100,1,1 100,2,2
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 100,2,2