Views is a WordPress plugin that lets you easily design the display of single pages using content templates. You can also include any field belonging to the content in your templates, without writing PHP code.
When you ask for help or report issues, make sure to tell us what you have created so far and what you want to achieve.
Viewing 15 topics - 331 through 345 (of 2,198 total)
Problem:
The customer reported that it is not possible to edit the existing content templates and a particular WordPress archive, as the edit screen just shows the white blank screen.
Solution:
Guided that since WordPress 5.9, if using non-Toolset blocks (including core blocks) with dynamic sources in templates, Views, or custom archives, errors are thrown and it may not be possible to edit the page.
This will be fixed in the future release and a quick fix is to set the 'SCRIPT_DEBUG' constant to 'false' in the website's 'wp-config.php' file.
As for the archive, some of the data needed for its proper functioning was no longer available in the database, so it was unrecoverable, and suggested creating a new one.
Problem:
The customer asked how to select a specific post/page in the view with the field of the content template so that it is used for the preview.
Solution:
Guided that the "View with" selection field at the top of the content template editor, automatically shows the most recently modified pages/posts. If the content template is assigned to any specific post type, only posts from that post type are shown.
To quickly set any specific page/post in this "View with" field, you can follow these steps:
1. Go to the edit screen of the target preview page/post that you'd like to select in your content template.
2. On the edit screen, you'll see the option to select a content template in the right settings panel. You can select the target content template in this field and save the changes.
3. After that, when you'll visit the edit screen of the target content template, you'll see that the target preview page/post will be available in the "View with" field's dropdown. You can select it and save the template.
4. In the last step, you can go back to the edit screen of the target preview page/post and select the default option 'Template Dynamically Assigned by Toolset' in the content template selection field.
Problem:
The customer reported that the custom user role can't use a post edit form.
Solution:
Guided to enable the user role's access to that form through the settings at WP Admin -> Toolset -> Access Control -> Toolset Forms -> Post Forms Front-end Access Group.
Problem:
The customer asked what is the correct format to load the content template shortcode, that gets the item attribute values from a repeating custom field.
Solution:
Guided that for the repeating field, it is best to wrap each instance of the content template shortcode inside the 'wpv-for-each' shortcode.