Problem: I would like to know how best to optimize my site with WP Rocket.
Solution: We recommend you exclude from minification all JavaScript files in the Forms plugin. The Forms plugin directory is /wp-content/plugins/cred-frontend-editor/
The issue here is that the user wanted to display the related Posts on a Parent Post. Solution:
To achieve this you will need the use of the classic editor for views. The classic view can be enable by going to Toolset -> Settings and scrolling to Editing Experience and selecting the 3rd option which gives you access to both the block and classic editor.
Now you will be doing a nested view based on 2 post views. Where you will add the Child view inside the Parent view and then add the Parent view to the respective page.
First you will create your child view in the classic editor and populate it with the relevant fields inside the Loop editor. The final step on the Product view requires that you add the Post Relationship Filter. To add the filter you will need to scroll to the query filter section. If you're not seeing this section scroll to the top of the page and on the top right you will see "Screen Options" From there you can enable the query filter section.
Then scroll to the section and click add a filter and just add the post relationship filter. See Screenshot
Ensure that you've selected "The current post in the loop"
Finally just add this view to the Parent view and it should display the related information.