This file contains hidden or 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 | |
$field = pods('pod_name') -> find(); | |
if ( 0 < $field->total() ) { | |
while ( $field->fetch() ) { | |
$data = $field -> field('field_name'); | |
echo '<div class="div">'; | |
echo $data; | |
echo '</div>'; | |
} | |
} |
This file contains hidden or 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 adam_load_scripts(){ | |
wp_register_script( 'handle', get_template_directory_uri()."path", array('dep'), 'ver', 'footer?'); | |
//to add a stylesheet, change all script to style except wp_enqueue_script | |
//wp_register_style( 'handle', get_template_directory_uri()."path", array('dep'), 'ver', 'media') | |
wp_enqueue_script('handle'); | |
} | |
add_action('wp_enqueue_scripts', 'adam_load_scripts'); |
This file contains hidden or 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 | |
$query = new WP_Query( 'params' );//http://codex.wordpress.org/Function_Reference/WP_Query | |
while($query->have_posts()) : $query->the_post(); | |
//content goes here | |
endwhile; | |
wp_reset_postdata(); // reset the query |
This file contains hidden or 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 function_cpt() { | |
$post_type_args = array( | |
'label' => "Label", | |
'public' => true, | |
'publicly_queryable' => true, | |
'show_ui' => true, | |
'show_in_menu' => true, | |
'menu_position' => 5, | |
'query_var' => true, |
This file contains hidden or 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
// Settings in here override those in "Default/Preferences.sublime-settings", and | |
// are overridden in turn by file type specific settings. | |
{ | |
"bold_folder_labels": true, | |
"close_windows_when_empty": true, | |
"color_scheme": "Packages/Theme - Aqua/Color Schemes/Tomorrow Night Aqua.tmTheme", | |
"detect_slow_plugins": false, | |
"draw_centered": false, | |
"fade_fold_buttons": false, | |
"font_face": "Menlo", |
This file contains hidden or 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
if( !Modernizr.formvalidation ){ | |
var sb_formValidation = $('.content form, .search-container form, .support-search form'); | |
H5F.setup(sb_formValidation); | |
$(sb_formValidation).find('[required]').popover({ | |
placement:'bottom', | |
title:'Required!', | |
content:"Please fill out this field.", |
This file contains hidden or 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
/* window.addEventListener( "resize", mmListener); | |
mmListener();*/ | |
if (window.addEventListener) { | |
window.addEventListener("resize", mmListener); | |
} else if (window.attachEvent) { | |
window.attachEvent("resize", mmListener); | |
} | |
mmListener(); |
This file contains hidden or 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
@mixin font-size( $decimal-size, $keyword: null ) { | |
@if $keyword{ font-size: $keyword; } | |
@else { font-size: $decimal-size * $base-font-multiplier * 16px;} | |
font-size: $decimal-size * 1rem; | |
} |
This file contains hidden or 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
{ | |
"folders": | |
[ | |
{ | |
"file_exclude_patterns": | |
[ | |
"*.sublime-*" | |
], | |
"folder_exclude_patterns": | |
[ |
This file contains hidden or 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
/**********************************************/ | |
/* | |
/* Tomorrow Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Chris Kempson's Tomorrow Theme: | |
/* https://github.com/ChrisKempson/Tomorrow-Theme | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
OlderNewer