Skip to content

Instantly share code, notes, and snippets.

@whyisjake
Created November 17, 2011 04:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save whyisjake/1372394 to your computer and use it in GitHub Desktop.
Save whyisjake/1372394 to your computer and use it in GitHub Desktop.
functions for make:projects
function js_add_review($content) {
global $post;
$original = $content;
$content = js_ratings_box();
$content .= $original;
return $content;
}
add_filter( 'the_content', 'js_add_review', 15 );
function js_add_project($content) {
global $post;
$original = $content;
$guide = get_post_custom_values('MakeProjectsGuideNumber');
if (isset($guide[0])) {
$content = js_make_project($guide);
}
$content .= $original;
return $content;
}
add_filter( 'the_content', 'js_add_project', 20 );
@whyisjake
Copy link
Author

function js_add_review($content) {
global $post;
$original = $content;
$content = js_ratings_box();
$content .= $original;
return $content;
}

add_filter( 'the_content', 'js_add_review', 15 );

function js_add_project($content) {
global $post;
$original = $content;
$guide = get_post_custom_values('MakeProjectsGuideNumber');
if (isset($guide[0])) {
$content = js_make_project($guide);
}
$content .= $original;
return $content;
}

add_filter( 'the_content', 'js_add_project', 20 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment