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
/* 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; | |
}} |
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 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 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 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 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 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 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 Post type code used inside the functions.php file inside the Minumum Pro Genesis child theme. | |
//* Create portfolio custom post type | |
add_action( 'init', 'minimum_portfolio_post_type' ); | |
function minimum_portfolio_post_type() { | |
register_post_type( 'portfolio', | |
array( | |
'labels' => array( | |
'name' => __( 'Portfolio', 'minimum' ), | |
'singular_name' => __( 'Portfolio', 'minimum' ), |
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 Post type code used inside the functions.php file inside the Executive Pro Genesis child theme. | |
//* Create Portfolio Type custom taxonomy | |
add_action( 'init', 'executive_type_taxonomy' ); | |
function executive_type_taxonomy() { | |
register_taxonomy( 'portfolio-type', 'portfolio', | |
array( | |
'labels' => array( | |
'name' => _x( 'Types', 'taxonomy general name', 'executive' ), | |
'add_new_item' => __( 'Add New Portfolio Type', 'executive' ), |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
OlderNewer