This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //add this to your functions.php file ?> | |
<?php | |
//hook into the init action and call create_maker_taxonomies when it fires | |
add_action( 'init', 'create_maker_taxonomies', 0 ); | |
//create maker taxonomy for the post type "post" | |
function create_maker_taxonomies() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//To use, just call <?php js_excerpt(Charecters that you want); ?> in your theme. Add this bit here to your functions.php file. | |
function js_excerpt($length){ | |
echo substr(get_the_excerpt(), 0, $length); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function make_youtube_embed($width,$height) { | |
global $wp_query; | |
$big_video = get_post_custom_values('Big Video'); | |
?> | |
<object width="<?php echo $width; ?>" height="<?php echo $height; ?>"> | |
<param name="movie" value="http://www.youtube-nocookie.com/v/<?php echo $big_video[0]; ?>?showinfo=1&version=3&hl=en_US&hd=1"></param> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
["child"]=> | |
array(1) { | |
["http://www.w3.org/2005/Atom"]=> | |
array(7) { | |
["title"]=> | |
array(1) { | |
[0]=> | |
array(5) { | |
["data"]=> | |
string(21) "Make: Deal of the Day" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
<?php $arr = array(185,4,171); ?> | |
$(document).ready(function(){ | |
/* Put your jQuery here */ | |
$('.post-4').hide(); | |
$('.post-171').hide(); | |
$('.click185').addClass('active'); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Untitled</title> | |
<meta name="generator" content="BBEdit 10.1" /> | |
</head> | |
<body> | |
<h1>Super and Subs</h1> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div class="row"> | |
<?php | |
global $wp_query; | |
$postid = $wp_query->post->ID; | |
$big_video = get_post_custom_values('Big Video'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$json = file_get_contents('http://makeprojects.com/api/0.1/guide/1019'); | |
$json_output = json_decode($json); | |
$steps = $json_output->guide->steps; | |
foreach ($steps as $step) { | |
echo '<div>'; | |
echo $step->title; | |
$images = $json_output->guide->steps->images; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$json = file_get_contents('http://makeprojects.com/api/0.1/guide/1019'); | |
$json_output = json_decode($json); | |
//print_r(json_decode($json)); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div class="row"> | |
<?php | |
global $wp_query; | |
$postid = $wp_query->post->ID; | |
$big_video = get_post_custom_values('Big_Video'); |
OlderNewer