Reactor Theme: Prevent Post Thumb on Post

Callback This is how “Reactor” hooks the callback add_action( ‘reactor_post_header’, ‘reactor_do_standard_thumbnail’, 4 ); Backtrace The function itself is hooked from where you linked ~/theme_root/library/inc/content/content-post.php but this file is called by the class Reactor. This class/file is not included during the main callback hooked to after_setup_theme in the functions.php file on priority 10, but before that … Read more

How do I turn a post thumbnail into a background image?

I was looking for a code snippet that will extract the URL of a post thumbnail to be used as a background image. Through research elsewhere, the best answer I found is the code snippet below: <div style=”background: url(<?php $image_id = get_post_thumbnail_id(); $image_url = wp_get_attachment_image_src($image_id,’large’, true); echo $image_url[0]; ?>)”></div> This code sets the large thumbnail … Read more