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
# Create Beanstalk Repository | |
printf "git\n \n" | /Users/avclark/beanstalk repo:create {query} | |
# Create our new project directory | |
cd ~/desktop && mkdir {query} && cd {query} | |
# Clone our HTML-Base repo from Github | |
git clone https://github.com/avclark/HTML-Base.git | |
# Cleanup directory |
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
register_post_type('floorplans', array( | |
'label' => __('Floorplans'), | |
'singular_label' => __('Floorplans'), | |
'public' => true, | |
'show_ui' => true, | |
'capability_type' => 'post', | |
'hierarchical' => false, | |
'rewrite' => true, | |
'query_var' => false, | |
'supports' => array('title', 'editor', 'author'), |
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
// Here are some of the changes I made to these two functions, but this broke the whole, I was getting an error saying something like unidentified param: amount, so something like that. | |
function populateCurrentPrice(price) { | |
$('.currentPrice span').text(price/100); | |
$('#customButton span').text(price/100); | |
$('#currentPurchases').text( (price/100) -1); | |
$('#customButton').off('click'); | |
$('#customButton').on('click', function(e) { | |
handler.open({ | |
amount: price |
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
add_filter( 'pre_get_posts', 'my_get_posts' ); | |
function my_get_posts( $query ) { | |
if ( is_home() && $query->is_main_query() ) | |
$query->set( 'post_type', array( 'Resources' ) ); | |
return $query; | |
} |
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 | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wlwmanifest_link'); | |
remove_action('wp_head', 'wp_generator'); | |
remove_action('wp_head', 'start_post_rel_link'); | |
remove_action('wp_head', 'index_rel_link'); | |
remove_action('wp_head', 'adjacent_posts_rel_link'); | |
?> |
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(); ?> | |
<?php | |
$number_of_feature_posts = 1; | |
$number_of_secondary_posts = 8; | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$how_many_secondary_posts_past = ($number_of_secondary_posts * ($paged - 1)); | |
$off = $number_of_feature_posts + (($paged > 1) ? $how_many_secondary_posts_past : 0); | |
?> |
NewerOlder