Skip to content

Instantly share code, notes, and snippets.

View marisqaporter's full-sized avatar

marisqaporter

View GitHub Profile
@marisqaporter
marisqaporter / php-loop-date-picker.php
Created March 1, 2016 00:06
php loop with date picker
<?php
$args = array(
'post_type' => 'volunteer-opportunit', // enter your custom post type
'orderby' => 'date', // order
'order'=> 'ASC', //reverse order
);
@marisqaporter
marisqaporter / acf-image-id.php
Created February 29, 2016 21:10
php loop with image as id - let's you call image size
<?php
$args = array(
'post_type' => 'volunteer-opportunit', // enter your custom post type
'orderby' => 'date', // order
'order'=> 'ASC', //reverse order
);
@marisqaporter
marisqaporter / functions.php
Created February 29, 2016 21:04 — forked from arkadiusjonczek/functions.php
WordPress: Add new image sizes
// insert into functions.php
//* Add new image sizes
add_image_size('grid-thumbnail', 100, 100, TRUE);
@marisqaporter
marisqaporter / php-loop-simple.php
Last active February 28, 2016 00:23
Another simple php loop - shorter
<?php
$args = array(
'post_type' => 'faqa', // enter your custom post type
'orderby' => 'rand', // order
);
@marisqaporter
marisqaporter / php-loop.php
Last active February 25, 2016 21:51
A Typical Custom Post Type Loop with Flexbox
<?php
$args = array(
'post_type' => 'mini-features', // enter your custom post type
'orderby' => 'date', // order
'feature-type' => 'web',
'posts_per_page'=> '0', // return only 1 post
);
@marisqaporter
marisqaporter / customizer.php
Last active February 22, 2016 20:54
Marisa's Genesis Starter Theme
<?php
/**
* Customizer additions.
*
* @package Workstation Pro
* @author StudioPress
* @link http://my.studiopress.com/themes/workstation/
* @license GPL2-0+
*/
/* Masonry Custom CSS */
/* Masonry container */
body.blog div#content, body.archive div#content {
-moz-column-count: 4;
-webkit-column-count: 4;
column-count: 4;
-moz-column-gap: 1em;
-webkit-column-gap: 1em;
column-gap: 1em;
@marisqaporter
marisqaporter / flexbox.css
Last active February 27, 2016 23:54
flexboxgrid master style sheet
/* Flexbox Grid
------------*/
/* Uncomment and set these variables to customize the grid. */
.container-fluid {
margin-right: auto;
margin-left: auto;
padding-right: 2rem;
padding-left: 2rem;
@marisqaporter
marisqaporter / functions.php
Created July 8, 2015 01:17
add footer full width widget to a specific page in Genesis
//Extra Widget Area for resources page
function genesischild_footerwidgetheader() {
genesis_register_sidebar( array(
'id' => 'footerwidgetheader',
'name' => __( 'Footer Widget Header', 'genesis' ),
'description' => __( 'This is for the Footer Widget Headline', 'genesis' ),
) );
}
/**
*
* @author Calvin Makes
* @link http://www.calvinmakes.com/
* @version 1.0
*
* Add previous and next buttons to custom post types.
*/
function cm_custom_navigation_links() {