Title: Text before exif data
Last modified: August 21, 2016

---

# Text before exif data

 *  [A Restless Soul](https://wordpress.org/support/users/lightchaserphotos/)
 * (@lightchaserphotos)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/text-before-exif-data/)
 * Hi Kristarella.
 * Love the plugin, works pretty good, but…
 * I have added this code to the bottom of the exifography.php file and it works
   fine except the text is showing after, not before which is where I want it.
 *     ```
       // my edits to exif display
   
       function add_before_exif($content) {
       	$item = '<h4>Camera Information</h4>';
       	array_unshift($content,$item);
       	return $content;
       }
       add_filter('exifography_display_exif','add_before_exif');
   
       function reorder_exif($content) {
       	$order = array('camera','shutter_speed','aperture','exposure_bias','focal_length','iso');
       	$new = array();
       	foreach ($order as $key) {
       		if (isset($content[$key])) {
       			$new[$key] = $content[$key];
       			unset($content[$key]);
       		}
       	}
       	$new_content = array_merge($new,$content);
   
       	return $new_content;
       }
       add_filter('exifography_display_exif','reorder_exif');
       ```
   
 * Is there a fix for this issue?
 * You can view it on my website here: [My Site](http://lightchaser.photos)
 * Regards.
    Michael.
 * [https://wordpress.org/plugins/thesography/](https://wordpress.org/plugins/thesography/)

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

 *  Plugin Author [kristarella](https://wordpress.org/support/users/kristarella/)
 * (@kristarella)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/text-before-exif-data/#post-5009792)
 * Hey Michael,
 * Sorry for the delay getting back to you.
 * I’m thinking maybe the reordering is putting the heading at the end. You could
   add the heading in the plugin setting page in the “before block” section, which
   would minimize on PHP, but otherwise you can order your functions either by just
   moving the first one to after the second one, or adding a priority to your [add_filter](http://codex.wordpress.org/Function_Reference/add_filter)
   lines.
 * So you would use a lower number for the reordering filter in order to get it 
   to run before (as a higher priority) than the heading function.
 *  Thread Starter [A Restless Soul](https://wordpress.org/support/users/lightchaserphotos/)
 * (@lightchaserphotos)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/text-before-exif-data/#post-5009798)
 * Thank you for getting back to me Kristarella.
 * I have looked at the ‘before block’ and it has this in it:
 * `<li class="%s">`
 * Do I just replace this with my text i.e. <h4>Camera Information</h4>
 * I’m not very good at the coding stuff, sorry.
 * Mike.
 *  Plugin Author [kristarella](https://wordpress.org/support/users/kristarella/)
 * (@kristarella)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/text-before-exif-data/#post-5009835)
 * You would put it before that. E.g.,
    `<h4>Camera Information</h4><li class="%
   s">` Although I think it should probably be ul instead of li in that HTML.
 * No need to apologise!

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

The topic ‘Text before exif data’ is closed to new replies.

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

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [kristarella](https://wordpress.org/support/users/kristarella/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/text-before-exif-data/#post-5009835)
 * Status: not resolved