Overriding size argument in functions.php
-
Hello,
I am looking for an elegant way to change the size argument for get_the_post_thumbnail() in a template file using only functions.php.
I know I can override the template file itself in a child theme, however trying to figure out if this is possible.
The template file specifies the code like this:
$tb_img = get_the_post_thumbnail($post->ID, 'tb_large',$extra);
I want to change -> ‘tb_large’ to another registered size -> ‘tb_medium’ using only functions.php.
Is this possible?
Thanks in Advance
~D
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Overriding size argument in functions.php’ is closed to new replies.