Title: get function stops page render
Last modified: August 21, 2016

---

# get function stops page render

 *  Resolved [jeffreyd000](https://wordpress.org/support/users/jeffreyd000/)
 * (@jeffreyd000)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/get-function-stops-page-render/)
 * Hi,
    I just installed the plugin, great idea! I want to have the credit show 
   below the featured image. I edited single.php to include: <?php get_image_credits();?
   >
 * When I check the site the page stops rendering right where that is supposed to
   show up.
 * Do I have a syntax error? Do I need to leave the functions call in functions.
   php for the plugin to work?
 * BTW: The plugin did work when I only had the code in functions.php but it was
   just too low on the page. Right below the featured image is the sweet spot!.
 * Thanks,
    Jeffrey
 * [http://wordpress.org/plugins/image-credits/](http://wordpress.org/plugins/image-credits/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Adam Capriola](https://wordpress.org/support/users/adamcapriola/)
 * (@adamcapriola)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/get-function-stops-page-render/#post-4125330)
 * `get_image_credits()` only returns the image credits, so you might need to do`
   echo get_image_credits();`.
 * If that doesn’t work, then I might have an idea as to why it’s stopping the page
   render.
 * What theme are you using by the way?
 *  Thread Starter [jeffreyd000](https://wordpress.org/support/users/jeffreyd000/)
 * (@jeffreyd000)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/get-function-stops-page-render/#post-4125333)
 * I’ll give it a go. Thanks.
    Theme = Responsive from Cyberchimps
 *  Thread Starter [jeffreyd000](https://wordpress.org/support/users/jeffreyd000/)
 * (@jeffreyd000)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/get-function-stops-page-render/#post-4125334)
 * Solved with <div class=”image-credits”><?php echo do_shortcode(“[image-credits]”);?
   ></div>
 *  Plugin Author [Adam Capriola](https://wordpress.org/support/users/adamcapriola/)
 * (@adamcapriola)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/get-function-stops-page-render/#post-4125335)
 * Great! I’m still not quite sure why the page stopped rendering, but I’m happy
   you got it working. Normally I filter the the_content to add the image credits
   like this:
 *     ```
       /**
        * Image Credits on Posts
        *
        */
       add_filter( 'the_content', 'ac_image_credits' );
   
       function ac_image_credits( $content ) {
   
       	if ( is_singular( 'post' ) ) {
   
       		$content .= '<p>[image-credits]</p>';
   
       	}
   
       	return $content;
   
       }
       ```
   
 * That adds the credits to the end of a post. If you wanted them at the beginning,
   you could do `$content = '<p>[image-credits]</p>' . $content;`.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘get function stops page render’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/image-credits_ffffff.svg)
 * [Image Credits](https://wordpress.org/plugins/image-credits/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/image-credits/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/image-credits/)
 * [Active Topics](https://wordpress.org/support/plugin/image-credits/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/image-credits/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/image-credits/reviews/)

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)

 * 4 replies
 * 2 participants
 * Last reply from: [Adam Capriola](https://wordpress.org/support/users/adamcapriola/)
 * Last activity: [12 years, 8 months ago](https://wordpress.org/support/topic/get-function-stops-page-render/#post-4125335)
 * Status: resolved