PHP code to display Copyright manually
-
Hello!
I would like to display the copyright credits manually under the featured image. I have the following code in the file functions.php:=================================
//* Add featured image on single post
add_action( ‘genesis_entry_content’, ‘maker_featured_image’, 1 );
function maker_featured_image() {$add_single_image = get_theme_mod( ‘maker_single_image_setting’, true );
$image = genesis_get_image( array(
‘format’ => ‘html’,
‘size’ => ‘featured-image-large’,
‘context’ => ”,
‘attr’ => array ( ‘alt’ => the_title_attribute( ‘echo=0’ ), ‘class’ => ‘aligncenter’ ),
) );if ( is_singular() && ( true === $add_single_image ) ) {
if ( $image ) {
printf( ‘<div class=”featured-image”>%s<div class=”featured-image-credits”><p class=”copyright-info”>’NEED CODE TO DISPLAY COPYRIGHT'</p></div></div>’, $image );
}
}
}
=================================Is there a way to do that using a simple php-code from Credit Tracker?
Thank you very much for your help!
- The topic ‘PHP code to display Copyright manually’ is closed to new replies.