Quantcast
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Add automatic field

Dear tsonyoT,

You can use a shortcode for make it. Open your functions.php file and put into it the following code:

add_shortcode('total', 'incrementor');
function incrementor($atts, $content = 0) {
   static $i = 0;
   $i += do_shortcode($content);
   return $i;
}

Now edit the View loop like this:

<wpv-loop>
   [total][types field="wpcf-profit" raw="true"][/types][/total]
</wpv-loop>

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.


Viewing all articles
Browse latest Browse all 20145

Trending Articles