Skip to content

Instantly share code, notes, and snippets.

@tenman
tenman / test.php
Created December 4, 2013 09:54
date, title, custom field value pagenate
<?php
/**
* Template Name: test category
*
* WordPress Static Page Template
*/
?>
<ul style="text-align:left">
<?php
@tenman
tenman / add-link-on-header.markdown
Last active April 2, 2019 05:19
add link on header
<!DOCTYPE html>
<head>
<meta charset=utf-8>
<title>quickHtml5Template.html</title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link ref="stylesheet" href="http://html5resetcss.googlecode.com/files/html5-reset-1.4.css" media="all">
@tenman
tenman / functions.php
Created May 9, 2012 12:29
Add classes wp_list_categories
//themes functions.php
class MyWalker extends Walker_Category {
function start_el(&$output, $category, $depth, $args) {
extract($args);
$cat_name = esc_attr( $category->name );
$link = '<a href="%1$s" rel="%2$s">%3$s</a>';
@tenman
tenman / blur.html
Created December 27, 2013 09:25
background blur
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
<title>背景にblurをかけてぼかす</title>
@tenman
tenman / grid-post.php
Created December 16, 2013 00:26
Grid posts template for WordPress theme Raindrops
<?php
/**
* Template Name: Grid Post
*
*
*/
if ( ! defined( 'ABSPATH' ) ) { exit; }
do_action( 'raindrops_'. basename(__FILE__) );
$raindrops_current_column = raindrops_show_one_column( );
@tenman
tenman / gist:7224661
Last active December 26, 2015 22:39
full width home.php template for WordPress Raindrops theme.
<!DOCTYPE html>
<html <?php language_attributes( ); ?>>
<head>
<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' );?>; charset=<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
global $raindrops_link_unique_text;
@tenman
tenman / gist:6821293
Created October 4, 2013 05:20
Hi donshapiro Please replace your functions.php Raindrops functions.php for ver1.135 home page shows excerpt.
<?php
/**
* functions and constants for Raindrops theme
*
*
* @package Raindrops
* @since Raindrops 0.1
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
@tenman
tenman / gist:6678806
Created September 24, 2013 00:20
part.php next previus link position change from content after to content before.
<?php
/**
* Template part file part
*
* @package Raindrops
* @since Raindrops 0.940
*
*/
$format = get_post_format( );
@tenman
tenman / gist:6447226
Created September 5, 2013 08:00
custom header.php header image right side.
<!DOCTYPE html>
<html <?php language_attributes( ); ?>>
<head>
<meta http-equiv="content-type" content="<?php bloginfo( 'html_type' );?>; charset=<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title( '|', true, 'right' ); ?></title>
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<?php
global $raindrops_link_unique_text;