Skip to content

Instantly share code, notes, and snippets.

View Kevinci's full-sized avatar

Kevin Imig Kevinci

View GitHub Profile
@Kevinci
Kevinci / index.html
Created January 27, 2015 00:18
yyXrGN
<div class="wrapper">
<ul>
<li class="item">Home</li>
<li class="item">About</li>
<li class="item">Hell</li>
<li class="item">Heaven</li>
<li class="item">Origin</li>
</ul>
</div>
@Kevinci
Kevinci / index.php
Created September 24, 2015 08:36
make directorys from .csv row data
<?php
error_reporting(0);
$row = 1;
if (($handle = fopen("file/data.csv", "r")) !== FALSE) {
while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) {
if($row == 1 || empty($data[6])){
$row++;
continue;
}
mkdir("ordner/$data[0]-$data[6]");
function custom_post_type_link($permalink, $post, $leavename) {
if (!gettype($post) == 'post') {
return $permalink;
}
switch ($post->post_type) {
case 'slug':
$permalink = get_home_url() . '/' . $post->post_name . '/';
break;
}