Skip Navigation

[Resolved] is it possible insert view on achive template?

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

Problem:

How to display related posts in WordPress Archive page?

Solution:

I suggest you try these:

https://toolset.com/forums/topic/is-it-possible-insert-view-on-achive-template/#post-2379369

Relevant Documentation:

https://toolset.com/block-item/content-template/

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

Last updated by ridgel 2 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2379309

Tell us what you are trying to do?
i have two cpt called step and tutorial they have relationship one tutorial have many step
i create a view insert a tutorial single page to display all the child post (step) and it's working well
i also wanna create a archive template for toturial there will be two part
tutorial name with link, below it ,i wanna insert a view where to display the child post (step) title with link that below tutorial title, so that customer can see the tutorial and all step, but when i try to insert, it's said not working, or do i did something wrong?

What is the link to your site?
hidden link

#2379369

Hello,

I suggest you try these:
1) Create another new content template, for example: "new-ct-tutorial"
Display a post view:
- Query step posts
- Filter by post type between tutorial and step
- In view's loop, display the step post information

2) In the WordPress Archive loop, display above content template, if you are using Blocks editor, please try content template block:
https://toolset.com/block-item/content-template/

#2380405

My issue is resolved now. Thank you!