Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #37928
    Profile photo of Paolo
    Paolo
    Participant

    On my website https://myvideoimage.com I uploaded both videos (with the Video plugin) and photos. When I open a Woocommece product page, for example: https://myvideoimage.com/video-photos-stock/assicurazioni-generali-skyscraper-with-the-blue-sky-background-and-trees-with-green- leaves /

    in the proposals of the “Related products” I find both photos and videos.

    I would like only photos or only videos to appear according to the principle of similarity with the main product of the page (photos or videos).
    I use the DIVI theme.
    How can I do?
    Thanks

    #38019
    Profile photo of Robin
    Robin
    Keymaster

    Hi there,

    You would have to create custom code that would add a filter to the related products query within WooCommerce. This would then have to ensure the products that are selected have the video meta information in them.

    #38020
    Profile photo of Paolo
    Paolo
    Participant

    Hi Robin

    Could you please give me an example of what you mean by “A custom code”.

    I distinguished the video with a “Video” Brand and the photos with a “photo” Brand. In custom products they appear mixed.

    Thanks

    #38090
    Profile photo of Robin
    Robin
    Keymaster

    This is somewhat beyond the scope of our ability to provide support – however, if you provide code snippets that filter the related products query with product meta information, we can then direct you into the right way.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.