to set the quote source, or set the 'quote_source' custom field, * or the post title will be used as quote source. * No post title and featured image is displayed. * * Post lists display: * - content * * Single post page display: * - content * * @package Auberge Plus * @copyright 2015 WebMan - Oliver Juhas * * @since 1.1 * @version 1.3 */ ?>
>
'; //Remove
tags $content = preg_replace( '/<(\/?)blockquote(.*?)>/', '', get_the_content() ); //Quote source //First, look for custom field $quote_source = trim( get_post_meta( get_the_ID(), 'quote_source', true ) ); //Fall back to post title as quote source if no custom field set if ( empty( $quote_source ) ) { $quote_source = strip_tags( get_the_title() ); } //Finally, display the above set quote source only if it wasn't included in the post content if ( false === stristr( $content, ''; } //Output $content = explode( '' . $content[0] . '
'; //Quote source if ( isset( $content[1] ) && $content[1] ) { echo ''; wmhook_entry_bottom(); ?>