Skip Navigation

[Resuelto] Adding Dynamic Links to Sidebar on Pages with Product Facets Enabled

Este hilo está resuelto. Aquí tiene una descripción del problema y la solución.

Problem:
The essence of the problem here is that the customer wanted to display the Parent Link in her Child Post.

Solution:
To do this you simply need to use:

[wpv-post-link id="$parent"]

Where you can replace the $parent with the slug of the CPT Parent.

This support ticket is created hace 8 años, 2 meses. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Etiquetado: 

This topic contains 4 respuestas, has 2 mensajes.

Last updated by Daniella hace 8 años, 2 meses.

Assisted by: Shane.

Autor
Mensajes
#370713

I'd like to add links to pages that have something in common with the page a person is on. This will only apply to those pages tat have the product facet feature enables.

There are essentially 2 rules for this.

Rule 1:

If the page is a parent page like Bracelets - hidden link - then the links in the left column underneath the search need to be all subpages.

Rule 2:

If the page is a sub-page like Hawaii Necklace - hidden link... - then the links in the left column underneath the search need to be:

The Parent Page - hidden link
Other pages that share the same non-Type attributes. Usually it should only be one attribute. In this example it's Hawaii (Origin) .
Hawaii Seaglass Jewelry - hidden link
Hawaii Seaglass Bracelets - hidden link...
Hawaii Seaglass Earrings - hidden link
Another Example of this would be Amber Bracelets - hidden link
The Parent Page is - hidden link
The other pages/links would be based on Amber (color)
Amber Seaglass Jewelry - hidden link
Amber Seaglass Necklaces - hidden link
Amber Seaglass Earrings - hidden link

#370752

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Daniella,

Thank you for contacting our support forum.

I understand what you are trying to achieve and this is something that is certainly possible.

For your first view it seems to me that you would like to display the list of child posts of the current parent page correct?

If so then the tutorial below will be able to guide you through this process.
https://toolset.com/documentation/user-guides/querying-and-displaying-child-posts/

Secondly your next issue involves displaying the parent link as well as the brother pages of the current child post being displayed.

The link below should be able to assist you with this.
https://toolset.com/documentation/user-guides/displaying-related-child-posts/

Please let me know if this was able to help you.

Thanks,
Shane

#370758

Not sure that's what I need to do. I got this to work on this page's sidebar: hidden link.
Below the sidebar you can see the two links. Now I want to display the parent link, hidden link, above the other two links:
AQUA SEA GLASS JEWELRY NECKLACES
AQUA SEA GLASS JEWELRY BRACELETS

#370760

Shane
Supporter

Languages: Inglés (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Daniella,

Is the parent of this page another Post Type ?

If so then you can simple do this.
[wpv-post-link id="$parent"]

Where you can replace the $parent with the slug of the CPT Parent.

Please let me know if this helps.
Thanks,
Shane

#370766

Thank you SO much!

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.