Skip to content

Instantly share code, notes, and snippets.

@takien
takien / gist:4115858
Created November 20, 2012 03:54
WordPress, Disable Featured image on Single Post
/**
* Disable Featured image on Single Post
* @version: 1.0
* @author: takien
* @url: http://takien.com
* Copy and paste this code in your theme's functions.php
*/
add_filter('post_thumbnail_html','disable_single_featured');
function disable_single_featured(){
@takien
takien / functions.php
Created November 15, 2012 14:56
WordPress Custom Rewrite Rule
/**
* WordPress Custom Rewrite Rule
* @author: takien
* @version: 1.0
* @url: http://takien.com
*/
function create_rewrite_rules() {
global $wp_rewrite;
$rewrite_tag = '%coba%';
@takien
takien / youtubeID.js
Last active August 15, 2025 06:28
Get YouTube ID from various YouTube URL using JavaScript
/**
* Get YouTube ID from various YouTube URL
* @author: takien
* @url: http://takien.com
* For PHP YouTube parser, go here http://takien.com/864
*/
function YouTubeGetID(url){
var ID = '';
url = url.replace(/(>|<)/gi,'').split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/);
@takien
takien / takien-mobile-version.php
Created July 17, 2012 04:38
WordPress mobile version plugin.
<?php
/*
Plugin Name: Takien Mobile Version
Plugin URI: http://takien.com
Description: Automatically detects mobile useragent end redirect to mobile version.
Author: takien
Version: 0.1
Author URI: http://takien.com/
*/