Skip to content

Instantly share code, notes, and snippets.

@PeterTheOne
PeterTheOne / plz-coord-austria.csv
Created August 17, 2016 16:09
PLZ coordinates austria, August 2016, Geocoded with OSM
9163 Unterbergen K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.4781017 14.2559153 225
9135 Bad Eisenkappel K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.4812105646964 14.6062427452371 225
9170 Ferlach K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5253656509035 14.3104077671798 225
9182 Maria Elend K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5298704238434 14.0761492080012 225
9181 Feistritz im Rosental K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5322359733192 14.1353740987715 225
9183 Rosenbach K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5364895720495 14.0376219311205 225
9162 Strau K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.538069 14.263217 225
9173 St. Margareten im Rosental K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5424186613725 14.4066575369548 225
9602 Thörl-Maglern K 01.01.1966 PLZ-Adressierung extern Ja Ja 46.5432506251966 13.6473041244356 225
9072 Ludmannsdorf K 01.01.1966 PLZ-Adressierung extern Ja Nein 46.5434291311274 14.1433352631987 225
@cristianstan
cristianstan / Simple Ajax Login Form.php
Last active February 22, 2025 16:16
Wordpress: Simple Ajax Login Form
<?php
//Simple Ajax Login Form
//Source: http://natko.com/wordpress-ajax-login-without-a-plugin-the-right-way/
?>
//html
<form id="login" action="login" method="post">
<h1>Site Login</h1>
<p class="status"></p>
<label for="username">Username</label>
@gerbenvandijk
gerbenvandijk / Mark parent navigation active when on custom post type single page
Last active July 16, 2024 16:53
Mark (highlight) custom post type parent as active item in Wordpress Navigation.When you visit a custom post type's single page, the parent menu item (the post type archive) isn't marked as active. This code solves it by comparing the slug of the current post type with the navigation items, and adds a class accordingly.
<?php
function add_current_nav_class($classes, $item) {
// Getting the current post details
global $post;
// Get post ID, if nothing found set to NULL
$id = ( isset( $post->ID ) ? get_the_ID() : NULL );