If you're interested in placing your “Jump to Recipe” and “Print” quick links that appear at the top of your post, above your featured image, you can use this filter to add it in.
***Before doing this, make sure that you have access to your site's files via FTP (the editor in WordPress is not sufficient in case problems arise) and that you are comfortable with editing your functions.php file. Any minor error in the functions.php file can result in the “white screen of death,” which is easily fixed via FTP but is difficult to fix otherwise (and a nuisance as your site will be unavailable until fixed).***
Just add in the following snippet to your theme's functions.php file:
/**
* Ensures the "Jump to Recipe" button is added to the content really late.
*/
add_action( 'init', function() {
if ( method_exists( 'Tasty_RecipesShortcodes', 'filter_the_content_late' ) ) {
remove_filter( 'the_content', array( 'Tasty_RecipesShortcodes', 'filter_the_content_late' ), 100 );
add_filter( 'the_content', array( 'Tasty_RecipesShortcodes', 'filter_the_content_late' ), 10000 );
}
});
If you're using a Genesis theme and the filter above does not work, try using this filter instead:
/**
* Ensures the "Jump to Recipe" button is added above the featured image.
*/
add_action( 'init', function(){
if ( method_exists( 'Tasty_RecipesShortcodes', 'filter_the_content_late' ) ) {
remove_filter( 'the_content', array( 'Tasty_RecipesShortcodes', 'filter_the_content_late' ), 100 );
add_action( 'genesis_before_entry_content', function() {
echo Tasty_RecipesShortcodes::filter_the_content_late( '' );
});
}
});