Skip Navigation

[Resolved] Show one custom type from another custom type

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

Problem:

Display related posts on Toolset post type relationships.

Solution:

You can follow our document to setup the view block, and post relationship filters:

https://toolset.com/course-lesson/displaying-related-posts/#displaying-many-related-items

Relevant Documentation:

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

Last updated by avansisI-2 3 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1884173

Hello!
I have a custom type called "landing" where I want to display a selection of another custom type called "comercio". How can I do this?

#1884767

Hello,

You need setup relationship between post types "landing" and "comercio".

In your case, you can try with custom reference field, see our document:
https://toolset.com/course-lesson/using-post-reference-field-to-set-up-one-to-many-relationships/

#1888671
Captura de pantalla 2020-12-28 a las 13.12.08.png
Captura de pantalla 2020-12-28 a las 13.12.08.png
Captura de pantalla 2020-12-28 a las 13.09.28.png

Thank you Luo for your reply.

I have tried to do what you indicate by following the link, but I can not see it.

Attached screenshots of what was done. Can you help me?

#1889261

According to your screenshots:
https://toolset.com/wp-content/uploads/2020/12/1888671-Captura_de_pantalla_2020_12_28_a_las_13.12.08.png

It seems the reference field can not find existed "Empresas ... " posts.

Is there any existed "Empresas ... " posts in your website?

If not, please add some "Empresas ... " posts, then test again.
If there is, then the problem you mentioned above is abnormal, please check 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 2021, 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/

4) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1890193

Thanks for the details, I am downloading the files, will update if find anything

#1890221
empresas.JPG

I can install the duplicator package file in my localhost, it works fine, see my screenshot: empresas.JPG

So it should be a server issue, please follow the document I mentioned above to get the PHP debug logs from your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/
section "PHP Debugging"

#1890413

Thank you Luo,

It is true that now they appear in the administrator, but when I select a company it does not appear on the screen page, and if I have a view created. Can you check it?

On the other hand, I would like to be able to select more than one company. How do I do that?

#1890467

Please elaborate the question with more details, your website isn't in English, I am not sure where I can see the problem.

Which one is the company? where can I see the problem: it does not appear on the screen page

For the new question:

On the other hand, I would like to be able to select more than one company. How do I do that?

You can consider one-to-many or many-to-many relationships, see our document:
https://toolset.com/course-lesson/how-to-set-up-post-relationships-in-wordpress/

#1890539
Captura de pantalla 2020-12-30 a las 10.58.08.png
Captura de pantalla 2020-12-30 a las 10.57.29.png

in spanish page appear 'ponentes' (image 1) and in english page (image 2) said item not found. I need that in english page appear 'ponentes' and i can translate this. (ponentes is a repeteable group of fields)

#1891435

I assume we are talking about the same problem of your another thread:
https://toolset.com/forums/topic/how-to-translate-custom-type/#post-1891433

Please check answer in above thread

#1891695
Captura de pantalla 2020-12-31 a las 19.12.35.png
Captura de pantalla 2020-12-31 a las 19.10.04.png

Hi Luo.

Sorry a mix topics.

Translate 'ponentes' is solved.

But i can't do this other,

In the landing page of custom type I add a company 'company' (see image), but in front this 'company' does not appear.

Could you help me?

thanks u

#1893507

The credentials you provided in another thread was removed for protecting your privacy:
https://toolset.com/forums/topic/how-to-translate-custom-type/#post-1889155

Please provide the credentials in below private message box again.

#1893663

Thanks for the details, I have done below modifications in your website:
Edit the content template:
hidden link
find and select view block "Participantes", in section "Content Selection", choose option "Fichas de empresas->
Fichas de empresas that are related to the current landing-page"

Please test again, check if it is fixed, thanks

#1893769

Great Luo! It's ok,

How can i add more than one 'Ficha de empresa'?

Thanks

New threads created by Luo Yang and linked to this one are listed below:

https://toolset.com/forums/topic/how-can-i-add-more-than-one-ficha-de-empresa/

#1894461

I assume the original question of this thread is resolved, for the other new questions, please check the new thread here:
https://toolset.com/forums/topic/how-can-i-add-more-than-one-ficha-de-empresa/