Hi, if you don’t want to code then you can use the ad injection feature in my Advanced Ads plugin. I mention it because I had other users of EasyRecipyPlus who accomplished the same with it.
Thomas
Thread Starter
leeiah
(@leeiah)
HI, Thomas. Thank you for your reply. Your plugin looks awesome, but I wanted to keep my plugin # down since I have too many already, which is why I asked for a code. I’m learning to code, but just beginning.
If I do end up using your plugin, what settings will insure that my adsense ad (300 x 250) shows up right above every Easy Recipe ‘recipe’ in every post, for both mobile and desktop?
Hi leeiah,
without an extra plugin I see two ways:
1. create your own shortcode that you can then place manually into the editor.
see https://codex.wordpress.org/Shortcode_API
2. Use the the_content hook to inject the ad. If you select a priority slightly higher than from the Recipe plugin than you might be able to inject it automatically above it.
As it happens, an article about hooks that I wrote was just published on Smashing Magazine 🙂
With Advanced Ads you could use the provided shortcode of the ad or the content injection feature, maybe with adapting the priority as well.
Thomas
Thread Starter
leeiah
(@leeiah)
Thank you for all of that, Thomas. I think I’ll probably end up using your plugin after all. Great and super informative article at Smashing Magazine! I’ve bookmarked it permanently to learn from! 🙂