July 2017
Beginner to intermediate
386 pages
12h 55m
English
add_filter( 'the_content', 'ch5_psl_display_source_link' );
function ch5_psl_display_source_link ( $content ) { $post_id = get_the_ID(); if ( !empty( $post_id ) ) { if ( 'post' == get_post_type( $post_id ) || 'page' == get_post_type( $post_id ) ) { // Retrieve current source name and address for post $post_source_name ...Read now
Unlock full access