filter formid and _wppl_address
-
Using your plugin (free version) to display post type pages. Have numerous pages for each of five cities. Using the plugin input areas on each of the page Edit screens I have input lat/long coordinates and in the area entitled “Saved data-This table contains the data that is going to be used, it must have an address, latitude and longitude” all display on the last line to the right of “Full Address” the following format: “City MI US” (on purpose since lat/long are not specific to a physical address, they map fine) where “City” is one of five cities (like Detroit, Lansing, etc). Source code shows “City MI US” has an ID _wppl_address. I have created five separate search forms wppl_formid 1 thru 5 and input each unique short code on five different pages. Additionally I have hidden the search input field and miles showing only the “Submit” button with additional text instructing the user to click the button to view all results in Detroit, or on another page Lansing, etc. So I am basically using the plugin to display pages common to each city and by hiding the search field it won’t display a blue pin nor render distance (both of which I don’t need). Have been trying to figure out how to render results based on wppl_formid and $post->ID,’_wppl_address. So wppl-formid=1 results would yield _wppl_address for “Detroit MI US” only, and wppl-formid=2 yield _wppl_address for “Lansing MI US”. I tried doing if, elseif, etc in plugins/geo-my-wp/shortcodes.php around Line 158 run the result function but can’t seem to make it work, either get syntax errors or unfiltered search results. Any assistance would be appreciated.
- The topic ‘filter formid and _wppl_address’ is closed to new replies.