Skip Navigation

[Waiting for user confirmation] Script for automatic ad insertion not working on CPT

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.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 3 replies, has 1 voice.

Last updated by Minesh 3 days, 12 hours ago.

Assisted by: Minesh.

Author
Posts
#2826501

Hello,
When I use the CPT with [wpv-post-body view_template="None"] to display the page content, the script to automatically insert advertising in my content stops working. How can I display the content using a CPT while keeping the ad script working?

Thanks for your help!
Eloise.

With CPT (no ad in content): hidden link
Without CPT (ad automatically added to content): hidden link

#2826547

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

Can you please share admin access details and tell me exactly what script you want to see it working. Please share that script and details where exactly you added that scrip.

*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.

I have set the next reply to private which means only you and I have access to it.

#2826732

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Can you please tell me where exaclty you added the shortcode:

[wpv-post-body view_template="None"] 

Also, it would be better to check this with "Mediavine" plugin support as they know the best how they are injecting the script when page/post is loaded. You can check with them if they have any solution or workaaround for you.

#2826739

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

If you want to use PHP template file - you need to create your single-posttype.php.

Please check the following doc:
- https://toolset.com/documentation/customizing-sites-using-php/creating-templates-single-custom-posts/