Skip Navigation

[Resolved] View Inside Layout didn't give result of the query

This support ticket is created 7 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.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Frank Hackenbuchner 7 years, 3 months ago.

Assisted by: Shane.

Author
Posts
#557759
result_on_single_product_page.png
result_on_normal_page.png

We use a view inside the single page layout of a product. Instead of using the wpv-related-products we want to show a more attractive view of other products under the single product description.

However, including the view in the single product layout page give us an unexpected behavior. The results shows only several views of the SAME product - that one from the single product page. Instead start a new query, the product is the same in every view.

Using the view on any other page, show the expected result - but not in the single product layout. It seams, that the view query will not work, instead the view uses the query of the single product layout?!

The attached images shows the result of the exact same view. On a normal page, ist show three different products - like it should be - and on the single product page, it shows only the same product, but three times.

How we can force a new query within a layout / view to get the expected result?

Thanks, Frank

#557888

Shane
Supporter

Languages: English (English )

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

Hi Frank,

Thank you for contacting our support forum.

Would you mind providing me with admin access to website so that I can have a look at this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane