Skip Navigation

[Closed] How to show sibling pages

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/Karachi (GMT+05:00)

This topic contains 9 replies, has 3 voices.

Last updated by Waqar 1 year, 2 months ago.

Assisted by: Waqar.

Author
Posts
#2647813

I'm using Toolset for the first time and I'm struggling to understand how I should approach creating the website the client wants.

I will start by outlining the structure of the site:

----Screwing of furniture
>Residential furniture
>Office furniture
>Children's furniture
>...
----Renovation of furniture
> Antique furniture restoration
>Furniture restoration
>Furniture repair
>...
----Customized furniture
--Wardrobes
>Sliding wardrobes with mirrors
>Corner wardrobes
>Alcove wardrobes
>Bedroom wardrobes
>Cabinets for the entrance hall
>Cabinets for children's rooms
>Office wardrobes
--Racks
>Bookcases for the living room
>Bookcases
>Racks for rooms
>Office racks

"----" stands for the main category of services.
"--" stands for the sub-category of the main service.
">" indicates the landing page of the service.

The problem is that the client requires both child and sister pages to be displayed on each page.

For example, for 'Customized furniture', a 'Similar services' section should appear on the page with links to 'Renovation of furniture' and 'Screwing of furniture'. There should also be a section there with 'Specific services', which will include 'Wardrobes' and 'Racks'.

I have tried various approaches. I've tried creating CPTs for the main category (----), for the subcategories (--) and the landing page (>) and using the 'View' block, but ultimately it doesn't look like it should. How should I go about doing this?

#2647825

I would also like to add that, if this solution is not possible, I am considering an alternative solution:

_________________________________________________________
----Screwing of furniture
>Residential furniture
>Office furniture
>Children's furniture
>...
----Renovation of furniture
> Antique furniture restoration
>Furniture restoration
>Furniture repair
>...
----Customized furniture
>Wardrobes
--Sliding wardrobes with mirrors
--Corner wardrobes
--Alcove wardrobes
--Bedroom wardrobes
--Cabinets for the entrance hall
--Cabinets for children's rooms
--Office wardrobes
>Racks
--Bookcases for the living room
--Bookcases
--Racks for rooms
--Office racks

_________________________________________________________

In that case, the matter will be easier. But I will still need help to understand how best to create such a website. What to use CPT for, when to use categories and when to use relationships?

The idea is that siblings of one main category should only display on pages related to that category. For example: the 'Residential furniture' landing page should have a section with related services containing 'Office furniture' and 'Children's furniture'. The children of other categories, such as "Furniture restoration" or "Furniture repair ", for example, should not appear in this section.

#2647849

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I asked for a second opinion and will get back to you as soon as I have an answer.

#2647935

Christopher Amirian
Supporter

Languages: English (English )

Ok I have a few questions to be able to determine what should we do next:

I want to know what does landing page means there which you mentioned. Is it a custom post type single post? Or a page that you manually create?

Also the categories and sub-categories are for a custom post post type correct?

#2648241

All pages (main categories, sub-categories and landing pages) will be custom post types.

The client requires both child and sister pages to be displayed on each page. (e.g for 'Customized furniture', a 'Similar services' section should appear on the page with links to 'Renovation of furniture' and 'Screwing of furniture'. There should also be a section there with 'Specific services', which will include 'Wardrobes' and 'Racks'.)

As I said before, the idea is that siblings of one main category should only display on pages related to that category. For example: the 'Residential furniture' landing page should have a section with related services containing 'Office furniture' and 'Children's furniture'. The children of other categories, such as "Furniture restoration" or "Furniture repair ", for example, should not appear in this section.

#2649279

Christopher Amirian
Supporter

Languages: English (English )

Hi there,

I discussed this with my colleague and he will follow up with the issue with you.

I will also follow the back and forth there:

https://toolset.com/forums/topic/displaying-brother-pages-dont-work/

Thank you.

#2649609

In that ticket I describe a problem with sister pages displaying incorrectly.

Here I describe the problem with the advanced CPT structure: main categories, landing pages and, most importantly, subcategories, which will not be present for all landing pages.

Solving the problem with the incorrect display of sister pages will not solve the problem with creating the structure I am aiming for. I am still asking for help!

#2649715

Hi,

As I'm already in the process of helping you with the website's structure, it would be more efficient if I follow up on this ticket, as well.

I'll wait to hear back from you on the other ticket, but, you'll most likely need to use the classic editor views because they support nesting into one another. The blocks-based views do not support nesting.

Meanwhile, I'll recommend checking out our documentation on how classic editor can be used:
https://toolset.com/documentation/legacy-features/views-plugin/

I'll especially recommend this article on using the nested views:
https://toolset.com/documentation/legacy-features/views-plugin/using-a-child-view-in-a-taxonomy-view-layout/

To create a classic view you can follow these steps:

1. Please go to WP Admin > Toolset > Settings > General and select the option "Show both the legacy and Blocks interface and let me choose which to use for each item I build" for the "Editing Experience".

2. After that, you'll see the option to add classic views from WP Admin > Toolset > Views.

Note: I can understand that learning about the classic editor views can seem like too much work. But once you get familiar with them, you'll have much control and functionality over what you can achieve, through Toolset.

regards,
Waqar

#2650747

I will check it tommorow morning. Thanks for your help until now!

#2651005

Please take your time and glad I could help!

The topic ‘[Closed] How to show sibling pages’ is closed to new replies.