This page can’t load Google Maps correctly [closed]

Welcome to the new world of Google Maps 🙁 You now have to have your credit card linked to your Google Maps API. They give you $250 a month of “credit” so you will likely not get charged, but you do have to have the card linked. https://venturebeat.com/2018/05/02/google-maps-platform-arrives-with-pay-as-you-go-billing-free-support-and-cloud-requirement-starting-june-11/

Create a custom taxonomy that will be used to create and filter markers in a Google Map

Here’s a fully working example to get you started. Register the “marker” taxonomy register_taxonomy( ‘marker’, ‘post’, array( ‘hierarchical’ => false, ‘update_count_callback’ => ‘_update_post_term_count’, ‘label’ => __( ‘Markers’, ‘textdomain’ ), ‘labels’ => array( ‘name’ => __( ‘Markers’, ‘textdomain’ ), ‘singular_name’ => __( ‘Marker’, ‘textdomain’ ), ‘menu_name’ => _x( ‘Markers’, ‘Admin menu name’, ‘textdomain’ ), ‘search_items’ => … Read more

Return XML of Post Metadata

The best solution is to create a custom XML page template in the exact format you need. If you look at the code below taken from the WordPress XML exporter you can see that the data it returns contains the normal stuff we see in a typical WordPress loop. echo ‘<?xml version=”1.0″ encoding=”‘ . get_bloginfo(‘charset’) … Read more

Post form as custom post

Within your theme folder create a page names archive-{YOUR_POST_TYPE}.php. In your case archive-roadkills.php. Test whether your archive page is catching this page or not? If yes, then you can edit the page the way you like. Whether copying the code from existing archive.php or your own. Reference: Template Hierarchy Codex

Google map that opens in a new window

So, the issue is that if you use a google custom embed code, then the iframe sucks up all the clicks, so you can’t trigger a link. The solution I’ve found is to use Google Static Maps which I discovered via Simple Static Googlemaps Plugin. My priority is an attractive map which loads faster (requires … Read more

Custom plugin route in WordPress

You need to do three important things: Create a custom rewrite rule to turn parts of the URI into values passed to index.php. Add myroute and myargument to WordPress’s query variables whitelist, so that WordPress doesn’t just ignore them when they appear in a query string. Flush the rewrite rules. Firstly, I’m going to recommend … Read more