Skip to content

Instantly share code, notes, and snippets.

@aguko
aguko / gist:a88378585dd56dcb53fc
Created April 1, 2015 01:20
Test...2015/04/01
<h1 class="main-title">Heading</h1>
<div class="row">
<div class="col-sm-10">
<?php echo 'Main Content';?>
</div>
<div class="col-sm-2">
<?php echo 'Side Content';?>
</div>
</div>
add_action('edit_attachment', 'update_attacment');
function update_attacment($post_ID){
remove_action('edit_attachment', 'update_attacment');
global $wf;
$the = $wf->post($post_ID);
$the->title = 'Media Name';
$the->filedset->field = 'Dummy Text';
$the->update();
add_action('edit_attachment', 'update_attacment');
}
WordPress database error: [Unknown column 'ec909ddbe567eaf391407079b994f270' in 'where clause']
SELECT tm.meta_key, tm.meta_value, tm.term_id, tt.taxonomy FROM wp_mp_termmeta tm INNER JOIN wp_term_taxonomy tt ON tm.term_id = tt.term_id WHERE tm.term_id = ec909ddbe567eaf391407079b994f270 AND tm.taxonomy = 'category' AND tt.taxonomy = 'category' AND meta_key LIKE 'com_set.%' ORDER BY term_id, meta_key, tmeta_id
WordPress database error: [Unknown column 'ec909ddbe567eaf391407079b994f270' in 'where clause']
SELECT v.*, u.* FROM `wp_mp_versions` v LEFT OUTER JOIN wp_users u ON u.ID = v.user_id WHERE v.object_id = ec909ddbe567eaf391407079b994f270 AND v.field_set_name = 'com_set' AND v.object_type = 'term' ORDER BY version_id DESC
@aguko
aguko / gist:9458304
Last active August 29, 2015 13:57
MEOW_Term :: update error
Notice: Undefined variable: id in ***\wp-content\plugins\masterpress\core\api\woof\woof.php on line 1588
WordPress database error: [Unknown column '73affcf1f2aa50ed867be5691a68fafc' in 'where clause']
SELECT tm.meta_key, tm.meta_value, tm.term_id, tt.taxonomy FROM wp_mp_termmeta tm INNER JOIN wp_term_taxonomy tt ON tm.term_id = tt.term_id WHERE tm.term_id = 73affcf1f2aa50ed867be5691a68fafc AND tm.taxonomy = 'key' AND tt.taxonomy = 'key' AND meta_key LIKE 'key_set.%' ORDER BY term_id, meta_key, tmeta_id
WordPress database error: [Unknown column '73affcf1f2aa50ed867be5691a68fafc' in 'where clause']
SELECT v.*, u.* FROM `wp_mp_versions` v LEFT OUTER JOIN wp_users u ON u.ID = v.user_id WHERE v.object_id = 73affcf1f2aa50ed867be5691a68fafc AND v.field_set_name = 'key_set' AND v.object_type = 'term' ORDER BY version_id DESC
@aguko
aguko / gist:8592817
Created January 24, 2014 06:16
sample html
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>IEに対応させよう!</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->