Problem:
I tried using the following code to show Google Ad in the middle of the view, I set the view to output 11 posts in a page, but this instead resulting post #5 to be replaced with the ad instead (thus the post was not shown). Is this an expected behavior?
Solution:
This is expected result, in the item #5, you will need to display the content template shortcode too, otherwise it won't display #5 item, for example:
https://toolset.com/forums/topic/placing-google-ad-in-post-view/#post-1260743
Relevant Documentation:
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | 9:00 – 13:00 | - |
- | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | 14:00 – 18:00 | - |
Supporter timezone: Asia/Hong_Kong (GMT+08:00)
This topic contains 2 replies, has 2 voices.
Last updated by 5 years, 5 months ago.
Assisted by: Luo Yang.