Skip Navigation

[Resolved] Content template wont display with CPT

This support ticket is created 7 years, 4 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
- 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 4 replies, has 2 voices.

Last updated by Minesh 7 years, 4 months ago.

Assisted by: Minesh.

Author
Posts
#547618
2017-07-11_16-39-53.jpg

In a site for a small real estate agent I have two custom post types one for rental properties and one for available/sold properties. I have content templates for each that are applied to their respective single views.

However the single view for the available /sold properties has no effect on that post type. If i apply it to the other post type(rentals) it works- So i assume the template itself is fine. Ive bound and rebound it several times and it's selected correctly in the post's content template area . Im stumped

#547740

Minesh
Supporter

Languages: English (English )

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

Hello. Thank you for contacting the Toolset support.

That is strange - Could you please share problem URL where the content template is not attached.

*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).

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

#547930

Minesh
Supporter

Languages: English (English )

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

Could you please check now. You made mistake in one of the conditional statement where your forget to close the bracket and I've adjusted that and it seems now working.

Could you please confirm.
=> hidden link

#547961

Thanks so much Minesh- funny it worked on the other CPT but not that one.

There is one other issue there however- it appears almost like the template is getting appended to a default template- instead of replacing it. The content above where you inserted you name shouldnt be there. Also just noticed that even though featured image is turned on in the post setup the metabox doesnt appear

#547983

Minesh
Supporter

Languages: English (English )

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

Sorry - I forget to remove my name.

Glad to hear that now it works for you.

For your other different queries, as your original issue is resolved, may I kindly ask you to open a new ticket for your each new question. This will help other users searching on the forum.

Thank you for understanding.