[Plugin: Pronamic Google Maps] SEARCH PRONAMIC MASHUP
-
Hello and many thanks for the wonderful plugin.
I have created a front end form to allow users submit a custom post type.
Now, I have created a page to show the mashup.
I am trying to allow users , apart from just having a look to the mashup,
to be able to search through it bu the use of an input field for the area / location (i have custom fields for city and country etc. apart from pronamic address meta).So far I have built this:
[ Moderator Note: Please post code or markup snippets between backticks or use the code button. ]
<form action="" method="post" name="searchgroup" id="searchgroup"><fieldset> <legend>Search for Groups in your Area!</legend> <input type="text" name="address" id="address" placeholder="type your area" placeholder="Type your Area"/> <input type="submit" name="submit" id="submit" value="Go"/> <?php $input = $_POST['address']; $query1 = new WP_Query( array('post_type' => 'any' )); $query2 = new WP_Query( array('meta_value' => $input )); if ( get_post_meta( get_the_ID() ) == $input ) {pronamic_google_maps_mashup($query2); } else pronamic_google_maps_mashup($query1); ?>
My query for the meta value does not work yet.
Any ideas?
Am I missing something? Is there any other way to do that?Thank you in advance!
https://www.ads-software.com/extend/plugins/pronamic-google-maps/
- The topic ‘[Plugin: Pronamic Google Maps] SEARCH PRONAMIC MASHUP’ is closed to new replies.