Skip to content

Instantly share code, notes, and snippets.

View jtcote's full-sized avatar

Jayson T. Cote jtcote

View GitHub Profile
@jdevalk
jdevalk / archive-speaking_event.php
Last active December 12, 2021 20:13
Genesis helper code for schema
<?php
add_filter( 'genesis_attr_content', 'yoast_schema_empty', 20 );
add_filter( 'genesis_attr_entry', 'yoast_schema_event', 20 );
add_filter( 'genesis_attr_entry-title', 'yoast_itemprop_name', 20 );
add_filter( 'genesis_attr_entry-content', 'yoast_itemprop_description', 20 );
add_filter( 'genesis_post_title_output', 'yoast_title_link_schema', 20 );
/**
* We'll use the post info output to add more meta data about the event.
@joshuadavidnelson
joshuadavidnelson / modify-soliloquy-slider.php
Created August 7, 2014 17:10
Modify a Soliloquy Slider's content
<?php
/**
* Modify a static image slider by adding recent posts.
*
* @author Joshua David Nelson, josh@joshuadnelson.com
*/
add_filter( 'soliloquy_output_after_container', 'jdn_soliloquy_add_custom_slides', 11, 2 );
function jdn_soliloquy_add_custom_slides( $slider, $data ) {
global $soliloquy_data;