Tell us what you are trying to do?
I have a single post and I want to show another post that has the same custom field value as this post. The single post is in district 10 and I want to display other post from the same district. My client doesnt want to use maps, so I am trying to do the nearby thing by using district.
Is there any documentation that you are following?
Can't find any.
So you have a custom field for district, and when viewing a post you want to show other posts that have the same value for district?
My first instinct is that it makes more sense for district to be a taxonomy rather than a custom field, but in any case the principles are the same.
Create a View to show the related posts.
Include a Query Filter for the district field and specify that the value should come from a shortcode attribute. Give the attribute a name that makes sense to you. In my example, I'm going to specify the attribute will be "filter".
Now insert the View into a template to display the posts. You'll need to edit the shortcode that inserts the View to add the attribute you specified in the last step and provide the value of the field for the current post, so it should look something like this:
In my example I'm using a custom field 'options', but you would be using whatever the custom field is that both posts are using for district, presumably called something like 'district'.