Skip to content

Instantly share code, notes, and snippets.

View sabotawsh's full-sized avatar

Natasha McDiarmid sabotawsh

View GitHub Profile
@sabotawsh
sabotawsh / wordpress_categories
Last active August 28, 2019 14:36
Removing the link from WordPress categories
// NON CPT
<?php
foreach((get_the_category()) as $category) {
echo $category->cat_name . ' ';
}
?>
// CPT
<?php echo strip_tags( get_the_term_list( $post->ID, 'job_titles', '', ', ') ) ?>
<!--[if IE]>
You're using IE!
<![endif]-->
<![if !IE]>
You're using something else!
<![endif]>
@sabotawsh
sabotawsh / 0_reuse_code.js
Last active August 29, 2015 14:09
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console