Title: Alter the HTML
Last modified: September 1, 2016

---

# Alter the HTML

 *  Resolved [Nimsrules](https://wordpress.org/support/users/nimsrules/)
 * (@nimsrules)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/alter-the-html/)
 * According to my site’s design, I need to fetch all the three items separately:
 * 1. Tracking ID
    2. Tracking Service 3. Track button
 * so that I can use them in my HTML markup. How do I achieve this?
 * [https://wordpress.org/plugins/aftership-woocommerce-tracking/](https://wordpress.org/plugins/aftership-woocommerce-tracking/)

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

 *  Plugin Author [AfterShip & Automizely](https://wordpress.org/support/users/aftership/)
 * (@aftership)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/alter-the-html/#post-7692306)
 * Hi,
 * AfterShip will import tracking number upon successful connection.
    Could you 
   please provide more information about this requirement and where you are trying
   to alter the HTML?
 * Best,
    AfterShip
 *  Thread Starter [Nimsrules](https://wordpress.org/support/users/nimsrules/)
 * (@nimsrules)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/alter-the-html/#post-7692307)
 * Hello, I got what I wanted after giving a fleeting look in aftership.php
    For
   anyone else who wants the above information in isolation, you can achieve so 
   like below:
 *     ```
       1. Tracking Number: get_post_meta($order_id, '_aftership_tracking_number', true);
   
       2. Tracking Service Name: get_post_meta($order_id, '_aftership_tracking_provider_name', true);
   
       3. Tracking Service Slug:  get_post_meta($order_id, '_aftership_tracking_provider', true);
       ```
   
 * Just echo all the three and voilla!
 * P.S. – One can also follow [http://support.aftership.com/article/52-how-to-use-aftership-tracking-link](http://support.aftership.com/article/52-how-to-use-aftership-tracking-link)
   to generate a tracking link and easily style it using CSS
 *  Plugin Author [AfterShip & Automizely](https://wordpress.org/support/users/aftership/)
 * (@aftership)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/alter-the-html/#post-7692371)
 * Hi,
 * That’s great. Thanks for sharing!
 * Best,
    AfterShip

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

The topic ‘Alter the HTML’ is closed to new replies.

 * ![](https://ps.w.org/aftership-woocommerce-tracking/assets/icon-256x256.png?rev
   =2856422)
 * [AfterShip Tracking - All-In-One WooCommerce Order Tracking (Free plan available)](https://wordpress.org/plugins/aftership-woocommerce-tracking/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/aftership-woocommerce-tracking/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/)
 * [Active Topics](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/aftership-woocommerce-tracking/reviews/)

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)

 * 3 replies
 * 2 participants
 * Last reply from: [AfterShip & Automizely](https://wordpress.org/support/users/aftership/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/alter-the-html/#post-7692371)
 * Status: resolved