Kristarella, thanks for the fresh update. I’m getting EXIF! I’m very excited.
I’ve noticed that if I go back and edit an old post, the EXIF will display after I save it. Is there a method to go back on the 150 or so existing posts and have the EXIF display without editing individually? I read the main thread, and I believe the answer is no, but wanted to be sure. Not a huge deal either way, but I’m curious enough to ask.
Is it possible to only have the EXIF data show on individual post pages? If so, how would I go about customizing that? (This might be a nice enhancement for a future Thesography version).
What is meant to display for Credit, Caption, and Copyright? I have these checked, but get no output.
Looks like the Mini skin has some love thrown at the formatting on the output for these data. Sorry for a basic question, but where would I go to tweak that?
James — You can add EXIF to older posts by using a custom function that adds the EXIF to the posts from before a certain date. That is described in an older thread. I haven’t come up with a better way to do it yet, or I might have started, but didn’t finish yet.
If you only want to add it on single pages you would need:
function custom_exif() {
global $post;
$exif_options = get_post_meta($post->ID, '_use_exif', true);
if (function_exists('display_exif') && is_single())
echo thesography_display_exif();
}
add_action('thesis_hook_after_post','custom_exif');
You might also need remove_action('thesis_hook_after_post','thesography_display_exif'); if it’s getting displayed twice because of the auto-insert.
Thesography custom styles in Mini are from line 61 of custom.css.
I thought I would start with the single-page only mod, and added those lines to my custom_functions.php. You were right, it did double post the data on the individual pages, but it also continued to post on the main (home) page.
I added the remove_action line you suggested (to custom_functions.php), but this seemed to have no impact.
Summary: After the suggested mods, I see the EXIF data once on multi-post pages (my home page), and twice on individual pages.
I went ahead and left these on the site on the chance that you might have a chance to look at it.
James — Are you using the shortcode in posts at all?
Can you please post all the PHP you’ve got in your file relating to Thesography?
Perhaps the theme functions files get processed before the plugin files, so the remove_action won’t work that easily. Perhaps I’ll have to add extra options for turning the display on and off, or just an option to only show on single pages.
Kirstarella – I am not using the shortcode, it’s just a default load.
I need to dig in a little more to see what’s going on. I think I’ve mentioned before that my familiarity with php and css combine to make me a bit clumsy as a blogger, but a couple lights went off in my head over this past week, so I’m going to try to set aside a few hours to experiment with this in the near future. Let me see what I can come up with on my own, then I will be back to discuss. :)
Version 1.0.3 is out now and it has an option to turn off the automatic insertion. This should allow you to use the code above to insert the exif manually on specific pages without duplication.
{ 6 comments… read them below or add one }
Kristarella, thanks for the fresh update. I’m getting EXIF! I’m very excited.
I’ve noticed that if I go back and edit an old post, the EXIF will display after I save it. Is there a method to go back on the 150 or so existing posts and have the EXIF display without editing individually? I read the main thread, and I believe the answer is no, but wanted to be sure. Not a huge deal either way, but I’m curious enough to ask.
Is it possible to only have the EXIF data show on individual post pages? If so, how would I go about customizing that? (This might be a nice enhancement for a future Thesography version).
What is meant to display for Credit, Caption, and Copyright? I have these checked, but get no output.
Looks like the Mini skin has some love thrown at the formatting on the output for these data. Sorry for a basic question, but where would I go to tweak that?
James
James — You can add EXIF to older posts by using a custom function that adds the EXIF to the posts from before a certain date. That is described in an older thread. I haven’t come up with a better way to do it yet, or I might have started, but didn’t finish yet.
If you only want to add it on single pages you would need:
function custom_exif() { global $post; $exif_options = get_post_meta($post->ID, '_use_exif', true); if (function_exists('display_exif') && is_single()) echo thesography_display_exif(); } add_action('thesis_hook_after_post','custom_exif');You might also need
remove_action('thesis_hook_after_post','thesography_display_exif');if it’s getting displayed twice because of the auto-insert.Thesography custom styles in Mini are from line 61 of custom.css.
Thank you!
I thought I would start with the single-page only mod, and added those lines to my custom_functions.php. You were right, it did double post the data on the individual pages, but it also continued to post on the main (home) page.
I added the remove_action line you suggested (to custom_functions.php), but this seemed to have no impact.
Summary: After the suggested mods, I see the EXIF data once on multi-post pages (my home page), and twice on individual pages.
I went ahead and left these on the site on the chance that you might have a chance to look at it.
James — Are you using the shortcode in posts at all?
Can you please post all the PHP you’ve got in your file relating to Thesography?
Perhaps the theme functions files get processed before the plugin files, so the remove_action won’t work that easily. Perhaps I’ll have to add extra options for turning the display on and off, or just an option to only show on single pages.
Kirstarella – I am not using the shortcode, it’s just a default load.
I need to dig in a little more to see what’s going on. I think I’ve mentioned before that my familiarity with php and css combine to make me a bit clumsy as a blogger, but a couple lights went off in my head over this past week, so I’m going to try to set aside a few hours to experiment with this in the near future. Let me see what I can come up with on my own, then I will be back to discuss. :)
Thanks again!
Hi James!
Version 1.0.3 is out now and it has an option to turn off the automatic insertion. This should allow you to use the code above to insert the exif manually on specific pages without duplication.