My Community Pro Theme Setup

  1. Home
  2. Docs
  3. My Community Pro Theme Setup
  4. Extras
  5. Neighborhoods – Show Using IDs

Neighborhoods – Show Using IDs

To show only specific Neighborhoods or Communities on the Home Page, you will edit the Shortcode used to display the communities.

The shortcode block uses the Display Posts plugin. This plugin allows for flexibility to display your communities or neighborhoods.

Get the IDs for your Neighborhoods

First add the plugin Show IDs by 99 Robots
neighborhoods section shortcode block with Display Posts Shortcode

This plugin adds an additional - ID - column to the Communities > All Communities screen.

neighborhoods section show IDs plugin

 

To show specific communities by ID, add a comma-separated list of 6 IDs to the shortcode that is already in your Neighborhoods section:

    • id="9, 10, 11, 13, 17, 22"

Your shortcode will look like this - you can copy this:

[display-posts image_size="square-image" post_type="wap-community"  wrapper="div" wrapper_class="display-posts community grid" posts_per_page="6" id="9, 10, 11, 13, 17, 22" ]


Click the Update button on the right when finished.