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 | |
| /* | |
| * Template Name: Acme Category Landing | |
| */ | |
| get_header(); | |
| function acme_get_logo( $term ) { | |
| $img = get_field('category_image_src' , $term->taxonomy . '_' . $term->term_id ); |
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 | |
| // Add our custom loop | |
| add_action( 'genesis_loop', 'one_post_per_tax_loop' ); | |
| function one_post_per_tax_loop() { | |
| $terms = get_terms( 'sets' ); | |
| foreach ( $terms as $term ) { | |
| $args = array( | |
| 'tax_query' => array( | |
| array( |
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 | |
| // Add our custom loop | |
| add_action( 'genesis_loop', 'one_post_per_tax_loop' ); | |
| function one_post_per_tax_loop() { | |
| $terms = get_terms( 'sets' ); | |
| foreach ( $terms as $term ) { | |
| $args = array( | |
| 'tax_query' => array( | |
| array( |
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
| <!-- First Article --> | |
| <div class="feature"> | |
| <h2 class="entry-title"> | |
| <a rel="bookmark" href="http://localhost/plosfoo/site1/multiple-paragraph-post/">Multiple Paragraph Post</a> | |
| </h2> | |
| <div class="post-info"> | |
| <span class="date published time" title="2015-03-26T22:26:40+00:00">March 26, 2015</span> | |
| by | |
| <span class="author vcard"> |
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 | |
| $categories = get_categories(); | |
| foreach ( $categories as $category ) { | |
| $args = array( | |
| 'cat' => $category->term_id, | |
| 'post_type' => 'post', | |
| 'posts_per_page' => '1', | |
| ); | |
| $query = new WP_Query( $args ); |
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 | |
| /* | |
| Template Name: Category List | |
| */ | |
| ?> | |
| <?php | |
| remove_action('genesis_loop', 'genesis_do_loop'); | |
| add_action('genesis_loop', 'category_post_loop'); | |
| function category_post_loop() { |
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 | |
| /* | |
| Template Name: Category List | |
| */ | |
| remove_action('genesis_loop', 'genesis_do_loop'); | |
| add_action('genesis_loop', 'category_post_loop'); | |
| function category_post_loop() { | |
| $args = array( |
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
| var Path = require('path'); | |
| var Gulp = require('gulp'); | |
| var Elm = require('gulp-elm'); | |
| var Concat = require('gulp-concat'); | |
| var Newer = require('gulp-newer'); | |
| Gulp.task('elm-init', Elm.init); | |
| Gulp.task('elm', ['elm-init'], function () { |
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
| echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf | |
| echo 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf | |
| echo 'ulimit -n 4096' | sudo tee -a /etc/profile |
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
| mongoimport -h ds037155.mongolab.com:37155 -d <databasename> -c <collectionname> -u <username> -p <password> --file <nameofjsonfile.json> --jsonArray |
OlderNewer