Title: shortcode
Last modified: October 15, 2022

---

# shortcode

 *  Resolved [khaled70](https://wordpress.org/support/users/khaled70/)
 * (@khaled70)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/)
 * hi I like this
    but How to add and activate a short code in the post?
 *     ```
       Example ..
       [invoice_subject]
   
       Invoice ID: [invoice_id]
       Issue date: [invoice_issue_date]
       Client: [client_name]
       P.O. Number: [invoice_po_number]
       Amount: [invoice_total]
       Deposit Due: [invoice_deposit_amount]
       Due: [invoice_due_date]
       Payments: [invoice_total_payments]
   
       [line_item_plain_list]
       ```
   

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

 *  [brandonco](https://wordpress.org/support/users/brandonco/)
 * (@brandonco)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/#post-16115343)
 * Hello!
 * Thanks for your inquiry. You should be able to add Sprout Invoices shortcode 
   directly to your WordPress pages or posts. Are you trying to display this shortcode
   as a part of your client dashboard?
 * Thank you,
 * Looking forward to hearing back from you!
 *  [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/#post-16115364)
 * Hello [@khaled70](https://wordpress.org/support/users/khaled70/),
 * ​Thank you for reaching out to support! We do have our dynamic text that can 
   be used in the line items if the add-on is enabled. Below is a list of those.
   However, I wanted to confirm if you meant to send this data in the notification
   of an invoice creation in Ninja forms?
 *     ```
       Invoice ID: [si type="id"], 
           Current due date is [si type="due"], 
           Due date Plus one month: [si type="month" offset="+1"]. 
           Current month minus three: [si type="month" offset="-3"].
           Invoice due year plus one: [si type="year" offset="+1"].
           Invoice Quarter plus three: [si type="quarter" offset="+3"].
           Current discount applied is: [si type="discount"].
           Invoice ID:  [si type="invoice_id"].
       ```
   
 * Thanks
    Elana D.
 *  Thread Starter [khaled70](https://wordpress.org/support/users/khaled70/)
 * (@khaled70)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/#post-16115523)
 * Thank you for the reply..
    I’m using Ninja forms and the Ninja Forms + Sprout
   Invoices – Easy Invoice & Estimate Submissions plugin. use Create Post + Create
   Estimate or Invoice I have no problem with shortcodes in Create Estimate or Invoice
   But these short codes are not enabled in the post published from the front end
   of the user. I hope I have explained the problem and I apologize for my poor 
   English. note: I’m temporarily using the free Sprout Invoices plugin. If I purchase
   the plugin will the short codes be shown? Thank you
 *  [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/#post-16165521)
 * Hello [@khaled70](https://wordpress.org/support/users/khaled70/),
 * ​Thank you for reaching out to support! Those code will work inside of an invoice
   with the Pro version but it wouldn’t work on a post without getting the data 
   first. However, you would probably still need to get the data anyway. You would
   have to get the instance like below on a Ninja form submission and update your
   WordPress post with the data you wanted.
 *     ```
       function maybe_modify_ninja_forms( SI_Invoice $invoice,  $invoice_args = array(), $submission = array(), $entry = array()) {
       	// Only a specific form do this process
        	$form_id_to_process = 1; // change
       	if ( $entry['form_id'] != $form_id_to_process ) {
       		return;
       	} 
   
       	$invoice = SI_Invoice::get_instance( $invoice_id );
   
       }
       add_action( 'si_invoice_submitted_from_adv_form',  'maybe_modify_ninja_forms', 10, 10 );
       ```
   
 * Thanks
    Elana D.
 *  [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * (@elanasparkle)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/#post-16189596)
 * Hello [@khaled70](https://wordpress.org/support/users/khaled70/),
 * Per our support guidelines, I’m going to mark this as resolved. Please don’t 
   hesitate to reach out if you are still having any issues.
 * Thanks
    Elana D.

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

The topic ‘shortcode’ is closed to new replies.

 * ![](https://ps.w.org/sprout-invoices-ninja-forms/assets/icon-256x256.png?rev=
   2008760)
 * [Ninja Forms + Sprout Invoices - Easy Invoice & Estimate Submissions](https://wordpress.org/plugins/sprout-invoices-ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sprout-invoices-ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sprout-invoices-ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/sprout-invoices-ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sprout-invoices-ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sprout-invoices-ninja-forms/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Elana Davis](https://wordpress.org/support/users/elanasparkle/)
 * Last activity: [3 years, 7 months ago](https://wordpress.org/support/topic/shortcode-916/#post-16189596)
 * Status: resolved