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
function remove_read_more_feed_link( $content ) { | |
$excerpt = strip_tags($content); | |
$excerpt = str_replace('Read More', ' ', $content); | |
return $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
add_filter('pre_get_posts', 'add_cpt_to_main_feed'); | |
function add_cpt_to_main_feed($query){ | |
if ( $query->is_feed() ){ | |
$query->set( 'post_type', array('post', 'my_custom_post_type') ); | |
} | |
return $query; |
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 ( ! function_exists( 'unregister_post_type' ) ) : | |
function unregister_post_type() { | |
global $wp_post_types; | |
if ( isset( $wp_post_types[ 'post_type_name' ] ) ) { | |
unset( $wp_post_types[ 'post_type_name' ] ); | |
return true; | |
} | |
return false; | |
} | |
endif; |
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
version: '2' | |
services: | |
redis: | |
image: redis | |
postgres: | |
image: 'postgres' | |
environment: | |
POSTGRES_USER: postgres |