|
In Views “cicle output” the pagination code no working after a plugin update
Started by: Massimo Scalese
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the customer's Pagination stopped working after their views plugin was updated.
Solution:
In the view the customer was using these elements "<>" for his pagination links, however these elements were breaking the html structure for the view and removing them caused the pagination to start working again.
|
|
2 |
3 |
7 years, 3 months ago
Massimo Scalese
|
|
Adding field values
Started by: paulW-10
in: Toolset Professional Support
Quick solution available
Problem:
How to add/sum the values of custom fields?
Solution:
1. Add this code in your theme’s or child theme’s functions.php file:
add_shortcode('wpv-calculate', 'calculate_shortcode');
function calculate_shortcode($atts, $content = null) {
$content = wpv_do_shortcode($content);
$content = @eval("return $content;");
return round($content);
}
2. Then use the below shortcode:
[wpv-calculate][types field='judge-1-score'][/types] + [types field='judge-2-score'][/types][/wpv-calculate]
Change the field names / slugs as needed.
|
|
2 |
10 |
7 years, 3 months ago
Noman
|