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 - 2,866 through 2,880 (of 3,940 total)
Solution:
No, at moment CRED Edit form shortcode can not be executed in WooCommerce single-product.php -- it is submitted as a feature request for further consideration. However, this shortcode works fine in normal post template php files.
2. OR you may want to use Views shortcode “Post edit link”.
[wpv-post-edit-link text="Edit Item"]
This does not work as frontend edit form but just gives a link that will take user to backend editor.
Some testing notes:
- This shortcode [toolset-edit-post-link] works when we insert directly in Product's body content / Product Description editor (NO Views CT).
- This shortcode [toolset-edit-post-link] also works when we add it in single.php file (Posts) and single-book.php file (CPT).
Problem:
I am getting blank page when I refresh a page that has a View which display posts of Custom Post Type. It happens randomly in my site, sometimes page shows up fine and sometimes it shows blank white screen.
Solution:
Increasing WP Memory resolved the issue.
One common reason of white screen is WP Memory limit is hit, please added these lines in wp-config.php file:
Problem:
I am using multiple instances field OR repeating field to upload photos. I would like to count these photos and show on the page that there are X photos for this post or listing.
Solution:
You can do this by using custom shortcode. Please add this code in your theme’s or child theme’s functions.php file:
Then you can use this Shortcode. You should wrap this Shortcode in an HTML Conditional to check if the Field does exist, as other wise unexpected results can be produced: