Title: Changing variable output
Last modified: July 10, 2017

---

# Changing variable output

 *  Resolved [37373](https://wordpress.org/support/users/37373-1/)
 * (@37373-1)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/changing-variable-output/)
 * Hi,
 * How can I change the output of %%ct_<custom-tax-name>%%? Right now, if a post
   has several taxonomy entries, the variable outputs the data in the following 
   format: Child taxonomy, Parent taxonomy
 * How can I change it to output the parent taxonomy first, followed by the child
   taxonomy and without the comma?

Viewing 1 replies (of 1 total)

 *  [monbauza](https://wordpress.org/support/users/monbauza/)
 * (@monbauza)
 * [8 years, 10 months ago](https://wordpress.org/support/topic/changing-variable-output/#post-9307686)
 * Currently it’s not possible to customize the output of the _%%ct\_<custom-tax-
   name>%%_ template variable. However, there is a feature request in our development
   repository to allow further level of customization by means of primary and secondary
   taxonomy items. If you have additional information or would like to follow the
   progress of this request, you can do that here:
    - [https://github.com/Yoast/wordpress-seo/issues/5312](https://github.com/Yoast/wordpress-seo/issues/5312)
    - [https://github.com/Yoast/wordpress-seo/issues/5311](https://github.com/Yoast/wordpress-seo/issues/5311)

Viewing 1 replies (of 1 total)

The topic ‘Changing variable output’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [monbauza](https://wordpress.org/support/users/monbauza/)
 * Last activity: [8 years, 10 months ago](https://wordpress.org/support/topic/changing-variable-output/#post-9307686)
 * Status: resolved