Wp geo template tags




















You can change these site settings in: WordPress — Settings — General. Business hours has a special timezone feature. When a listing is added or edited, and the map pin is changed, if the address is checked from the API, then the timezone of the address is also retrieved. The timezone of the business hours is then updated with an offset. For example, if the site timezone is GMT 0 , and a listing is added in Philadelphia, the timezone offset is updated as follows:.

For example, if a shop is open until 4am Tuesday morning, then set the open time on Monday to last until , then the time on Tuesday to start at and end at It can only be used once on each Custom Post Type.

Featured is the most common field used for this kind of promotion of paid listings. There is also another doc focused on featured listings and options for decorating them, too. With Pricing Manager installed, the Featured field is completely managed by the settings in the Price package applied to the listing. If you set a default value for the field, that default will be shown when a new listing is created, but, once the listing is saved with a price package, the package settings will adjust the value of the field automatically.

Include the featured field in Price Packages to set the value automatically. As soon as the Pricing Manager addon is installed, it is no longer possible to override the value of the featured field for a listing by editing it manually. If you are looking for an ad hoc way to group and filter listings for GD Listings, you can also use categories or tags.

See the Tags section for more info. Tags are ad-hoc words or phrases that can be assigned to a listing. Tags are special because each tag gets at least one Archive page where all the listings with that tag are listed next to each other. GeoDirectory uses the default user interface for adding or removing tags in the backend, and then a multi-select field for the frontend edit form. For example, say you have a group of 5 places out of and you want to show them on a new Post with GD Listings.

Just use Quick Edit in the Places listing to add the same tag to each listing. Then setup your GD Listings to include only listings with that tag. That way you can use the Tags field for your own Administrative purposes like grouping similar listings.

The listing description field and video fields are both examples of textarea fields. You can add as many textareas to the listing form as you like. Shows the advanced editor on the listing form. This makes it easier for your site visitors to markup their text with bold or italics or links. Be careful with this setting, because of course users may enter broken HTML that will break your page layout. This option will force additional processing on the field.

Video service URLs like a youtube video link will be turned into an embedded video. Also, shortcodes entered into the field will be rendered. By default GeoDirectory will strip advanced scripts and iFrames from all fields. This is a normal security precaution in keeping with General WordPress policies to protect site owners from the injection of malicious code through fields that are available to end users.

You can use the following snippets to disable the sanitization of individual fields or by field type. GD Post Meta can be used to display the complete content of a textarea field. If you add a custom GD Post Meta shortcode to the tabs or as a widget you can use advanced options to show the field label, icon, or just the value. When this setting is enabled, then any embedded media links like Youtube videos will be rendered.

Also, shortcodes will be rendered. URL fields are a great way to allow listing owners to share links to their social profiles or event ticket sales. The field label of the URL field is used as the default link text. The user can override the field label title setting by adding a pipe character and inputting their link text after the pipe.

This allows the user to alter the text like this. Show the URL instead of the label with a snippet. GDV2 introduces Validation for text and phone fields. Field validation means that you can enter an HTML5 regex rule to govern what the user is allowed to input in the field. More examples can be found here. Does what it says. Intuitive and easy to use. This plugin has been an absolute lifesaver for me! It works flawlessly and I would highly recommend it to anyone for their geo-coding needs.

Thank you for such fantastic work! Contributors Dylan Kuhn Freemius. Interested in development? Changelog 1. First released on [Nov 15 ][inception]. Meta Version: 1. Ratings See all. This sets the latitude and longitude for the post. As soon as the latitude and longitude are known, the coordinates are sent to the Maps API for reverse Geocoding.

Reverse Geocoding for import of listings is not available. In order to import listings, address is required. If your CSV has only latitude and longitude, then there are a wide variety of services available to help you set the closest address for your listings. Remove an arbitrary string from GD Post Address template if neighborhood is empty — Snippet in topic. Open Map Bubble detail page links in a new tab — Snippet in topic. That means that whenever a user enters the add listing form and adjusts the map zoom, or the map type, that zoom level is saved with the listing and used to determine the zoom of the map on the tab or any other map shown on the page with the option enabled.

So, want to change that? Remove the default map tab, and add a Shortcode as a new tab with a GD Map element that has the map settings you want. Use the shortcode builder button to confgure a GD Map as you like, then save. Visit the listing to viw your new map. You will need to know the ID if the categories. In the example below the ID is 1 which shows as. In some cases, even though a business may not have a specific address, or the address should not be public online, you still want to show them on a map.

Go here to see this setting. GD Details Page. Find an example for that here:. Maps Everywhere! In this page we cover some of the awesome things you can do with maps when you use GeoDirectory. This setting has three options Auto — GeoDirectory will automatically switch the map type setting based on the GeoDirectory page type where it is shown.

Directory — can show post type selector, category filter. Most often used on Location page. Also good choice for individual WP Pages. Archive — For use in the Archive and Search page templates. When shown in an archive or search page this map type will automatically display the listings that are shown in GD Loop on that archive page. Post — For the Detail page to show a single post id on the map.

Can also be used in an individual page to show a map point when a listing ID is specified. Location — Directory map. Location pages can show multiple post types with GD Listings, so, use a directory map and adjust the options to show the the post type selector and category filter.

Archive or Search — Archive map.



0コメント

  • 1000 / 1000