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 Read More Link to Excerpts | |
add_filter('excerpt_more', 'get_read_more_link'); | |
add_filter( 'the_content_more_link', 'get_read_more_link' ); | |
function get_read_more_link() { | |
return '... <a href="' . get_permalink() . '">[Read More]</a>'; | |
} |
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
Added this to the .htaccess page | |
<FilesMatch "\.(ttf|otf|eot|woff)$"> | |
<IfModule mod_headers.c> | |
Header set Access-Control-Allow-Origin "*" | |
</IfModule> | |
</FilesMatch> |
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 Gravity Forms Permission for Editor | |
function add_grav_forms(){ | |
$role = get_role('editor'); | |
$role->add_cap('gform_full_access'); | |
} | |
add_action('admin_init','add_grav_forms') |
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 Excerpts to Pages */ | |
add_action( 'init', 'my_add_excerpts_to_pages' ); | |
function my_add_excerpts_to_pages() { | |
add_post_type_support( 'page', 'excerpt' ); | |
} |
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
/* custom excerpt function for the homepage */ | |
function excerpt_read_more_link( $output ) { | |
if ( is_home() ) { | |
global $post; | |
return $output . '<a class="more-link" href="' . get_permalink( $post->ID ) . '" title="' . get_the_title( $post->ID ) . '">Read more ... </a>'; | |
} else { | |
return $output; | |
} | |
} |
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
// Our custom post type function | |
function create_posttype() { | |
register_post_type( 'members', | |
// CPT Options | |
array( | |
'labels' => array( | |
'name' => __( 'Members' ), | |
'singular_name' => __( 'Member' ) | |
), |
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
/* | |
* Creating a function to create our CPT | |
*/ | |
function custom_post_type() { | |
// Set UI labels for Custom Post Type | |
$labels = array( | |
'name' => _x( 'Members', 'Post Type General Name', 'twentythirteen' ), | |
'singular_name' => _x( 'Member', 'Post Type Singular Name', 'twentythirteen' ), |
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 Genesis Title Toggle to Posts | |
* | |
* @link http://www.billerickson.net/code/genesis-title-toggle-for-posts | |
* @author Bill Erickson | |
* | |
* @param array $post_types | |
* @return array | |
*/ | |
function be_title_toggle_on_posts( $post_types ) { |
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
if (is_category('Glossary')) | |
{ | |
$args = array( 'posts_per_page' => -1, 'orderby'=> 'title', 'order' => 'ASC' ); | |
$glossaryposts = get_posts( $args ); | |
} | |
foreach( $glossaryposts as $post ) : setup_postdata($post); |
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 Helper fields for Mobile Phone and Birthdate. | |
* | |
*/ | |
// Add All the content below this line to your to your PMPro Customizations page. | |
// We have to put everything in a function called on init, so we are sure Register Helper is loaded. | |
function my_pmprorh_init() { |
OlderNewer