Skip Navigation

[Resolved] Displaying custom post type content (from 3rd-party plugin) in Layouts

This thread is resolved. Here is a description of the problem and solution.

Problem: I would like to use Layouts to design a single post page for a post type created in a 3rd-party plugin. I'm able to create the Layout and assign it to the single post successfully, but the post content seems to be repeated in multiple cells.

Solution: Replace Content Template cells with Visual Editor cells, and choose the "Disable the_content filter" option in the cell dialog.

This support ticket is created 6 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 9 replies, has 3 voices.

Last updated by webD-3 6 years, 5 months ago.

Assisted by: Christian Cox.

Author
Posts
#911255
webd3-060818.jpg

I am trying to integrate a events calendar plugin with Layouts. This is the 3rd or 4th different events calendar I've tried and this is the best one I've found so far in regards to getting it to play well with Layouts. Nonetheless I am still having one issue with this one. Screenshot attached. The output from the calendar is showing in 5 different areas. It's the white area with sidebar where I'm intending it to go, but even there it's displaying twice instead of once. Is there anything that I might be able to do to restrict the content to display one time only, in that white area to the right of the sidebar?

#911257

I should note that the main calendar itself, which is a shortcode on a "Page", is just fine. It's just when I try to view the /event/ single posts that this issue arises.

#911390

I guess you inserted a ShortCode of that Plugin into a Visual composer cell in Toolset Layouts, and now things are repeating in the front end.

This should be something that you can resolve by either inserting your ShortCode in a Page or Content Template and then call that thru the Layout instead of using a Visual Composer cell, or, you may be happy to use this new feature:
https://toolset.com/documentation/user-guides/rich-content-cell-text-images-html/#troubleshooting

If that does not help, we will need a copy of that Plugin, instructions how to replicate the problem and then we can look into this - eventually we can add some compatibility.

#911793

Beda,

Thanks for the reply. This is an events calendar plugin. The main calendar is displayed via shortcode on page /calendar. When you click an individual event, you're then viewing a Single post of type "event" and this is what the screenshot is of. My Layout is using a "Post Content" cell. There is no shortcode at all. But the post content is showing up in three areas in the Parent Layout as well as duplicating in the intended Post Content area.

Again, I have had similar issues with a number of other events calendar plugins on this site. I'm just trying to find one that will work well with Layouts, one way or the other. This one is the closest to working "out of the box" that I've found yet, and I'm hopeful to get this figured out in some way.

#911877

Hi, can you take some screenshots showing the single Event Layout in wp-admin? I would like to see how your cells are set up. Please also let me know which specific events calendar plugin you are using.

#911952
webd3-layout-event.png

Christian,

Thank you. The events calendar I'm trying this time is Event Calendar WD. I've uploaded the screenshot of the Layout I'm using for the single posts of the Events custom post type. Thank you for your help.

#912065

In the Layout you have pictured here, you should be able to click the Visual Editor cell and check the box "Disable the_content filter". That should remove one of the repetitions from the main content area. May I see screenshots of the parent Layout or Layouts?

#912473
webd3-061218.png

Christian, thank you. "Disable the_content filter" is either new, or I've overlooked it in the past. I checked that in the Visual Editor in the child layout, and also checked it in the one Visual Editor that was present in the Parent layout. That leaves just two areas, which are both Content Templates as shown in the new screenshot I'm uploading now. I suppose I could just take the code in these Content Templates and place them into Visual Editor instead. Is that the best course of action or is there a way to keep the Content Template from being replaced?

#912607

Yes, the "Disable the_content filter" checkbox is a new option. I would recommend switching from Content Templates to Visual Editor cells if possible. Once that has been done, if you still see repeated content let me know and we can do a deeper investigation.

#912616

Christian, thank you. Taking the contents of those two Content Templates, removing the content templates and then pasting the code into Visual Editors instead, being sure to check the "Disable the_content Filter" box, has resolved my issue. I'm glad that this new feature is now in place.