Title: Edit locality content
Last modified: January 30, 2023

---

# Edit locality content

 *  Resolved [karelgeenen](https://wordpress.org/support/users/karelgeenen/)
 * (@karelgeenen)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/edit-locality-content/)
 * Hello. Is it possible to add content to this page? I want to create strong city
   pages so they can rank in Google. But I have to be able to add content to it.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fedit-locality-content%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * (@shazahm1hotmailcom)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/edit-locality-content/#post-16423076)
 * The “locality” is a filter applied to the page in which your directory is embedded.
   It is not possible to edit the filtered directory listings.
 * If you want strong rankings, it is best to ensure current quality, unique content
   for each business listing. You can accomplish this by leveraging the entry’s 
   bio and excerpt fields.
 * It is possible to dynamically insert content by leveraging the `[cn-content]`
   shortcode. Here’s the link to the docs:
    - [https://connections-pro.com/documentation/shortcodes/cn-content/](https://connections-pro.com/documentation/shortcodes/cn-content/)
 * There is no condition for “locality,” but it is possible to add one. The following
   code should add it:
 *     ```wp-block-code
       add_filter(
       	'Connections_Directory/Shortcode/Conditional_Content/is_condition/is_locality',
       	static function( $condition, $parameter, $shortcode ) {
   
       		$queryValue = cnQuery::getVar( 'cn-locality', false );
   
       		if ( ! is_null( $parameter ) && $queryValue ) {
   
       			if ( $queryValue === $parameter ) {
   
       				$condition = true;
       			}
       		}
   
       		return $condition;
       	},
       	10,
       	3
       );
       ```
   
 * You can add this code to your site using the Code Snippets plugin:
    - [https://wordpress.org/plugins/code-snippets/](https://wordpress.org/plugins/code-snippets/)
 * I hope this helps; please let me know.

Viewing 1 replies (of 1 total)

The topic ‘Edit locality content’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/connections_2b7e99.svg)
 * [Connections Business Directory](https://wordpress.org/plugins/connections/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/connections/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/connections/)
 * [Active Topics](https://wordpress.org/support/plugin/connections/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/connections/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/connections/reviews/)

## Tags

 * [entry](https://wordpress.org/support/topic-tag/entry/)
 * [seo](https://wordpress.org/support/topic-tag/seo/)

 * 1 reply
 * 2 participants
 * Last reply from: [Steven](https://wordpress.org/support/users/shazahm1hotmailcom/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/edit-locality-content/#post-16423076)
 * Status: resolved