Hello,
I’m attempting to use a plugin that uses the (get_)the_post_thumbnail function to process and display “featured” images. I’m looking for a little direction as to ‘which’ function does Newspaper 6 use to process the featured image?
Is it possible to use the (get_)the_post_thumbnail function in its place?
If it is and it will require some code tweaking, can you please point me in the right direction?
Basically, I use a custom field for the og:image url and I’m trying to set the featured image as the url defined in the og:image custom field.
Thanks you for your time and assistance!
Todd
Hi
The theme use a custom function to get the featured image http://screencast.com/t/m3TNv3gi6EVH – http://screencast.com/t/IOXvSwWksK I can’t say hoe the indicated function will work with our theme as we didn’t test it and most probably you will need some custom modification in order to work.
Please consider that this is a very complex task which involve many customizations and very good coding skills. If you can’t do it yourself my advice is to find someone to help you or hire a freelancer to do this for you as we can’t offer any customization services at the moment.
Thanks!
Andrei,
Thank you very much. I do have a developer that is helping with this. He spent a few hours on it today and responded with, “this is a very complex template” …. “a lot of php classes creating the HTML”…
I do not expect the tagDiv team to help me create this modification, but I do hope they are available to explain the existing code in the template so we can better understand it.
Thanks again!
Todd
Hi
Indeed our theme is very complex and in order to customize it you need to understand it’s code first and also very good php coding skill are required.
The theme uses thumbs to keep the page size as low as possible. All thumbs are defined in td_config.php file: http://screencast.com/t/AMx9d7cQ The get_image() function retrieve the thumb size as a parameter $thumbType. Also during the execution collects different information about the image, but all this information are generated by custom methods built in theme core.
A starting point would be using the var_dump() for the variables where the informations about the image are prepared: http://screencast.com/t/o4vKiQ3q in order to see the what is stored there and how can be used for others customizations. Also read carefully the comments from code, they are meant to help others developers to easily understand the code.
Hope this help.
Thanks!