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
/************************** https://github.com/cosmic/cosmic-tinymce-excerpt | |
* Plugin Name: Cosmic TinyMCE Excerpt | |
* Description: TinyMCE pour les extraits | |
* Author: Agence Cosmic | |
* Author URI: http://agencecosmic.com/ | |
* Version: 1.0 | |
****************************/ | |
function cosmic_activate_page_excerpt() { | |
add_post_type_support('page', array('excerpt')); |
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 | |
/** | |
* movie archive page | |
* | |
*/ | |
//* Force full width content layout | |
add_filter( 'genesis_pre_get_option_site_layout', '__genesis_return_full_width_content' ); | |
//* Remove the breadcrumb navigation |
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 //* Mind this opening PHP tag | |
/** | |
* Register Movie Type | |
* | |
* @author Ren Ventura <EngageWP.com> - with some adjustments by Paal Joachim | |
* @link http://www.engagewp.com/nested-loops-custom-wordpress-queries | |
*/ | |
add_action( 'init', 'rv_movie_cpt' ); |
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
Another file | |
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
// Add or remove notes after the comment box | |
// | |
add_filter( 'comment_form_defaults', 'sp_remove_comment_form_allowed_tags' ); | |
function sp_remove_comment_form_allowed_tags( $defaults ) { | |
$defaults['comment_notes_after'] = 'An extra comment'; | |
return $defaults; | |
} |
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
/* Customize the post meta function below the post AND remove it from category pages | |
http://wordpress.stackexchange.com/questions/50961/removing-post-meta-from-category-pages */ | |
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' ); | |
function sp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
if (is_archive() ) $post_meta = ''; | |
else $post_meta = '[post_categories before="Categories: "] [post_tags before="Tagged: "]'; | |
return $post_meta; | |
}} |
NewerOlder