Title: Can we do php operation on field&#8217;s value of custom widget
Last modified: August 24, 2023

---

# Can we do php operation on field’s value of custom widget

 *  Resolved [ojasya](https://wordpress.org/support/users/ojasya/)
 * (@ojasya)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/can-we-do-php-operation-on-fields-value/)
 * Thanks for the great plugin
   We created a custom widget with fields **“title”**
   and **“number”**Is it possible to do PHP operation on value of fieldfor eg: I
   have a field named “Number” i.e {{number}}so base one the value of
 *     ```wp-block-code
       <span class="title1">{{title}}</span>
       <br>
       {{number}}
       <br>
       {{text}}
       <br>
   
       <?php
       $x = 8*{{number}};
       echo  $x;
       ?>
       ```
   
 * I see that normal PHP operation like following works
 *     ```wp-block-code
       <?php
       $x = 8*3;
       echo  $x;
       ?>
       ```
   
 * But problem is when we want to do operation on value of field 
   SO is it possible?
    -  This topic was modified 2 years, 9 months ago by [ojasya](https://wordpress.org/support/users/ojasya/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Support [Reedwanul Haque](https://wordpress.org/support/users/reedwanul/)
 * (@reedwanul)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/can-we-do-php-operation-on-fields-value/#post-17005036)
 * Hi [@ojasya](https://wordpress.org/support/users/ojasya/) ,
 * Thanks for contacting us & extremely sorry for the delayed response.
 * I understand what you are looking for. I want to let you know that we can use
   PHP with dynamic input numbers. Don’t worry, I am sharing a [video](https://d.pr/v/R98k8v)
   on this topic. After following these instructions I hope will get the solution.
 * Let us know if you need further assistance.
 * Regards,
   Reju
 *  Thread Starter [ojasya](https://wordpress.org/support/users/ojasya/)
 * (@ojasya)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/can-we-do-php-operation-on-fields-value/#post-17009578)
 * Hey Reju 
   Greetings!Thanks a lot for the details explanation 🙂
 *  Plugin Support [Reedwanul Haque](https://wordpress.org/support/users/reedwanul/)
 * (@reedwanul)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/can-we-do-php-operation-on-fields-value/#post-17011260)
 * Hello [@ojasya](https://wordpress.org/support/users/ojasya/) ,
 * Glad to hear that you are clear now on this topic 🙂
 * If this plugin looks good to you and our support team, maybe you can help us 
   by giving a 5-star on wordpress.org.
 * Please navigate to the **Review** link from the sidebar then click the Add your
   own **review** link to put your review🙂.
 * We’re working so hard to make this plugin more and more useful to our valuable
   users like you and a 5-star will really help us to grow on the market 🙂
 * Best Regards,
   Reju

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Can we do php operation on field’s value of custom widget’ is closed 
to new replies.

 * ![](https://ps.w.org/elementskit-lite/assets/icon-256x256.gif?rev=2518175)
 * [ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor](https://wordpress.org/plugins/elementskit-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/elementskit-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/elementskit-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/elementskit-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/elementskit-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/elementskit-lite/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Reedwanul Haque](https://wordpress.org/support/users/reedwanul/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/can-we-do-php-operation-on-fields-value/#post-17011260)
 * Status: resolved