I’m running the Arras Theme 1.4.3.1 on a site and I wanted to display the 640×250 thumbnail image on each post/page, but hide it for certain content, in this case it was all my pages.
There is some PHP code you can add to two files which will allow you to set a special custom field on a post/page which will hide that header image.
- In Functions.php:
Define( ARRAS_DONT_DISPLAY_THUMB, 'dontdisplaythumbinpost');
- In library/template.php, find the line
if ($post) $id = $post->ID;
- Add the following code after that line:
$dontdisplaythumbinpost = get_post_meta($post->ID, ARRAS_DONT_DISPLAY_THUMB, true); if ($dontdisplaythumbinpost) { return false; }
[…] […]
Hi Mitch,
Did you try this in Arras Theme 1.5? I’ve tried but have been unsuccessful and was wondering if you have updated the above code?
Thanks
I have not tried it on 1.5 but if I ever upgrade then I will check that out. Thanks
Have you upgraded to the Arras Theme 1.5 yet? I am wondering if you have gotten it to work yet. Please let me know, thanks!
Hi Mitch,
I am also using a customize arras theme, version 1.5.1.2, and I was wondering if you had a solution for this version.