How to insert in middle of post but not page
-
I am trying to use the automatically insert ad zone in the middle of a post, but it also ads the zone to the end of the page that lists all posts within a category.
If I only want it in the middle of the single post – how do I remove it from showing on the bottom of pages?
Also, if I want to show after every 3 posts listed on a page with a “read more” link, how would I set that up?
You can see at https://www.diyherbs.com if you click How To Articles for example. Because I have the auto insert in the middle of the post turned on, it creates an ad on the bottom of the page above the ad I have set to show on the bottom of pages.
If you open one of the posts listed on the page it works correctly in the middle of the post.
I did find how to hardcode the php into the content using if is_home to have it show an ad between each post on the homepage. I’m just not finding how to get it after every 3 posts listed on a page (or at least roughly in the middle of a page that is pulling a loop of posts in that category).
Nor do I see how to turn it off on pages and keep it automatically inserting in the middle of a post. At least I’d only have one ad at the bottom of the page that way – LOL
- The topic ‘How to insert in middle of post but not page’ is closed to new replies.