Tell us what you are trying to do? I cannot get data/values to display from a repeatable group in a newly created custom post type. I have created a custom post type called Tech Sheets. Within the Tech Sheet post type there are custom fields, then a Repeatable Group called product specs. I cannot get any data from the repeatable group to display on any view. Whether including a post relationship query or not. I am not using block editor, this is all being done with the classic view through the plugin and custom PHP.
Is there any documentation that you are following? The documentation within Toolset
Hello. Thank you for contacting the Toolset support.
You are trying to display the single post of tech sheet post type and on that single post you also want to display the repeating field group - correct?
I would like to know how exactly you configured your content template that displays the single tech sheet post.
Actually, the thing is that you will have to create another view that should set to query your desired repeating field group and configure your view's loop output and save your view and later add this view to your parent view but if you already have content template that is set to display the single tech sheet post information then the view you should setup to display the Repeating Field Group should be set to query only your desired repeating field group and then add the post relationship filter to it and select the post where view is shown.
You should not set your tech sheet post type to query with this view. Can you please try and let me know if you require further assistance.
Yes, I am trying to have the repeating group of "Product Specs" display where the post type of "Tech Sheet" displays.
I have tried to configure a view for Product Specs, but nothing is working. No data is being pulled in. And I can't figure out how to get the Tech Sheet post type view to display the Product Specs repeatable group.
I have tried to set a relationship view but still nothing is coming through.
Here is a screenshot of each view. Tech Sheet Bottom is the repeating group view. I have also included a screenshot of the PHP I am writing to display the views.
I can still see that you attached your view to query both post type and repeating field group.
Can you please share problem URL and admin access details and on what post/page you want to display the repeating field group.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
I checked and it seems you are using the views in wrong way. In addition to that I'm not sure why you are using the hook to display the view using the hook "woocommerce_after_shop_loop_item".
You should create a view that should display the products and then add your view inside that to find the related product.
However, I've adjusted the line of code you added to your functions.php as given under:
I've moved the view that displays the repeating field group entries "tech-sheet-bottom-tech-sheet-page" to the ""tech-sheet-top-tech-sheet-page" view's loop editor section:
- hidden link
Now, if you can see - it does display the information:
- hidden link
Thank you for that. I think this resolved my issue.
However, I will say, you might want to update your documentation on how to get the repeatable group to display in a view. What you ended up doing is not mentioned or displayed anywhere in your instructions on repeatable field groups.
For future reference for those that are searching for how to display repeatable field groups: Step 1 - Create two separate views; One for the "main" view and one for the "repeatable group view". Step 2 - Then display that repeatable group view in the main view, but call it in the loop editor and display it as a wpv-view inside the "<wpv-loop>" tag. I've attached a screenshot to help illustrate my entire finished setup.