You would want to take the example function and change the filter hook, so it would become something like this:
add_filter( 'display_featured_image_genesis_use_large_image', 'rgc_use_large_image' );
function rgc_use_large_image( $post_types ) {
$post_types[] = 'post';
$post_types[] = 'page';
return $post_types;
}
Each line of $post_types[] = 'some_post_type'; would be whatever post types you want to have it use the large image on, so the above would be on all posts and pages. It should cover categories and tags as well, if you set featured images for those. Hope that helps–
Thanks for getting back to me so fast. I copied and pasted the code at the end of the functions.php file, but got the following error when I hit the update file button:
Parse error: syntax error, unexpected ‘function’ (T_FUNCTION) in [ …my path ]/wp-content/themes/outreach-pro/functions.php on line 148
Any ideas what that means?
Anne, I haven’t seen that one before. The filter/function work fine on my server. I’ve done some searching and the most consistent explanation I can find suggests that you may be on an old version of PHP, possibly because the filter is adding on to an array–there are other filters already in Outreach Pro, so filters in general do work.
Do you have any way to check what version of PHP you’re on? I’ll keep digging but that’s my guess so far. If it’s PHP 5.2 or lower, you would want to contact your host about updating that.
It worked when I made the change in Text Wrangler and uploaded it via cPanel instead of making the change in WordPress Editor. So sorry for the extra work! Thank you for this great plugin!
Great, glad to hear you got it sorted! Yes, definitely better to edit outside the Editor. Thank you for letting me know!