Skip Navigation

[Resolved] Need custom background, testimonials and gallery for each of my post types

This support ticket is created 5 years, 3 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.

Our next available supporter will start replying to tickets in about 5.30 hours from now. 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 6 replies, has 2 voices.

Last updated by Luo Yang 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1314073

Tell us what you are trying to do? I created a content template (HOA Partners) that includes, a background image at the top, testimonials in a section and a gallery. All that info needs to change for each of our HOA Partners. When I load the HOA Partners template and edit that info it shows saved on the backend, but won't publish the changes.

Is there a setting to override the content template so that I can display this information? I know that I can create custom fields, which I have for most of the content, just not sure how to do it for testimonials, a background image and a gallery. Thanks for the help.

Here are links:
custom post: hidden link
partners template: hidden link

if you need login credentials, I've created some for you.

Is there any documentation that you are following?

Is there a similar example that we can see?

What is the link to your site?

#1314153

Hello,

It is not safe to share the credentials publicly, I have edited your post to remove the credentials.

And the credentials is not valid, I get below message:
Invalid username

And the problem you mentioned above is abnormal:
When I load the HOA Partners template and edit that info it shows saved on the backend, but won't publish the changes.
Please try these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2019, deactivate all custom PHP/JS code snippets, and test again

3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

And I have enabled the private message box, you can provide the credentials in it.

#1314669

Here are the credentials

un: toolset
pw: 3c*W@dz8!4O5)lcIJGYugB)g

I've tested and the credentials work.

I am using the current plugin.

I've enable debugging and there are no errors in the log or on the front end.

If you look at hidden link on the backend you will see there are 4 testimonials under reviews rather than the one displayed on the front end.

#1315151

Thanks for the details, I can log into your website, will update here if there is any found

#1315157

Q1) Is there a setting to override the content template so that I can display this information?
Please elaborate the question with more details
How and where do you want to override the content template?

Q2) you will see there are 4 testimonials under reviews rather than the one displayed on the front end.
The content template "Template for HOA Partners" you mentioned above is designed by Divi builder, please edit it:
hidden link
in row Testimonial Module, there isn't 4 testimonials, where can I see those 4 testimonials
How do you setup those relationship between testimonials and HOA Partners?
Please provide details for above questions, thanks

#1315165

Hi Luo,

Hopefully this helps:

1. On Content Template "Template for HOA Partners" I want to be able to load that template for Custom Post Type "HOA Partner" and do the following when creating a new item (HOA Partner):
- Be able to edit the background image at the top right behind the name
- Change out testimonials
- Load a custom gallery for that HOA Partner
Currently, I can do this, but when I go to publish it stays like the original template on the front end of the site (background image, testimonials and gallery stay the same)

2. Correct there are not 4 testimonials in the template. I want to be able to add as many as I'd like, like this post hidden link and publish the override. Currently you can see the 4 testimonials with that link but on the front end it just loads the one (from the original template) hidden link .

#1315219

Q1) Be able to edit the background image at the top right behind the name
Yes, you are right, you can try these:
- setup the "background image" as a custom image field,
- put the custom image field's shortcode into your content template
https://toolset.com/documentation/customizing-sites-using-php/functions/#image
- Use custom CSS codes to setup it as background image, see similar thread here:
https://toolset.com/forums/topic/image-field-which-is-set-as-background-is-not-looping-for-different-posts/

Q2) Change out testimonials
How do you setup those relationship between testimonials and HOA Partners?
You can try these:
1) Create another post type "testimonials"
2) Setup one-to-many relationship between "HOA Partners" and "testimonials"
3) So when you edit a "HOA Partners" post, you will be able to add child "testimonials" posts, see our document:
https://toolset.com/documentation/post-relationships/
4) In the content template of single "HOA Partners" post, you can setup a post view to query related "testimonials" posts
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items

Q3) Load a custom gallery for that HOA Partner
You can setup a custom a custom Repeating Image Field, and display it with [wpv-for-each] shortcode
https://toolset.com/documentation/user-guides/repeating-fields/

Q4) I want to be able to add as many as I'd like,
Yes, it is possible to add multiple child "testimonials" posts for each HOA Partners post, see details Q1)