Skip Navigation

[Resolved] unnamed content template cannot be deleted

This support ticket is created 4 years, 1 month 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.

This topic contains 3 replies, has 2 voices.

Last updated by joanG 4 years, 1 month ago.

Author
Posts
#1788373
content template with no name.PNG

Tell us what you are trying to do? Had so many problems trying to create views and templates. I want to delete what didn't work . There is a strange blank content template with no name and no box to delete.

Is there any documentation that you are following? https://toolset.com/course-chapter/templates-for-single-posts-directory/

Is there a similar example that we can see? image attached

What is the link to your site? hidden link

#1789125

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'm not sure how you've managed to arrive at that situation, it sounds like you've been adding and deleting Views and somehow an orphaned template has been left behind.

You've only been using the Blocks interface, not the old legacy Views interface? (If you cannot see the menu item Toolset > Views then you've only been using Blocks.)

Because there are no links to delete it I think you may need to delete it directly from the database, from wp_posts, or you can run a code snippet one time to do the same, given that we know the post ID of that template is 109.

If you are familiar with phpMyAdmin you can use that to locate the entry in wp_posts for post id=109 and delete it.

Otherwise, go to Toolset > Settings > Custom Code and add a snippet with the following code

wp_delete_post( 109, true );

Don't active the snippet, just "Run now" so that it runs one time, and it will delete the orphan template.

As I say, I'm not sure how you ended up with it, but that should remove it.

Finally, might I suggest if you are having problems getting to grips working with the Views block and you have tried the tutorials available in the documentation pages, open a support thread asking for guidance on what you are aiming to do and someone will be able to give you directions.

#1789761

I have been trying to get a view to work for weeks. I have read the information over and over and watched may videos. I think I am finally getting something that works, but I did have a lot of difficulty with the views area and understanding the loop. I ran the code snippet in the custom area. It did remove the orphan template. I deactivated the code snippet after the run. Do I need to do anything else?

#1789763

My issue is resolved now. Thank you!