Title: post category name shortcode ?
Last modified: February 8, 2021

---

# post category name shortcode ?

 *  Resolved [baedyllion](https://wordpress.org/support/users/baedyllion/)
 * (@baedyllion)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-category-name-shortcode/)
 * Hey, I love the plugin but I need help with something. when the email is sent,
   there is no information about in which category the post was published. There
   are like 200 categories in my web site and Its confusing for users to follow.
   the plugin would be even better If it had this option. Its not clear from the
   post title that under which category the post is published. as a way round, I
   searched the web and learned how to add post category names into the post title
   with add filter :
    if ( in_category( ‘example_category’)) return ‘example_default_name:‘.
   $title;
 * I was able to add default names to post titles to indicate the category name.
   This perfectly added the default text into the post title (eg. Sports: Soccer
   is fun)(soccer is the default name to be added before original post title), but
   still when the email is sent, the plugin does not use my custom code, It keeps
   sending the original post title without adding my pre-set title. I searched the
   plugins source code a lot but since I’m not a developer myself (just a guy who
   created a website), I couldn’t find anything. I’d really appreciate If you could
   help me with this problem. I want to add category names into post titles as the
   mail subject. eg. Sports: Soccer is fun. Thank you in advance. Cheers.

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

 *  Plugin Author [vandestouwe](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-category-name-shortcode/#post-14021605)
 * Read section 5 of the [user manual](https://wordpress.org/www.vandestouwe.com/stcmanual?output_format=md)
   this will help you with the email template.
 * {{search_reason}} contains the reason why the email notification was triggerred.
   It contains the category of the post.
 *  Thread Starter [baedyllion](https://wordpress.org/support/users/baedyllion/)
 * (@baedyllion)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-category-name-shortcode/#post-14021737)
 * Hello, thank you for the quick answer. but I came across another problem. with
   the demo templates, the emails are sent just fine but the problem is when I make
   a change in the template, or when I create a new template to use, the email is
   not sent. how can I solve this ? thank you in advance.
 *  Plugin Author [vandestouwe](https://wordpress.org/support/users/vandestouwe/)
 * (@vandestouwe)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/post-category-name-shortcode/#post-14022156)
 * You must be careful when changing the email template. I would strongly recommend
   using the code editor. Again, look in the STC Manual section 5.3 and do not forget
   to check the associated setting. If you have that working than start changing
   the email template step by step.
 *  Thread Starter [baedyllion](https://wordpress.org/support/users/baedyllion/)
 * (@baedyllion)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/post-category-name-shortcode/#post-14031267)
 * hello, I took your advice, and changed the template step by step and got it work
   the way I want. thank you for your help. I appreciate it.

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

The topic ‘post category name shortcode ?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/subscribe-to-category_b0acac.svg)
 * [Subscribe to Category](https://wordpress.org/plugins/subscribe-to-category/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/subscribe-to-category/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/subscribe-to-category/)
 * [Active Topics](https://wordpress.org/support/plugin/subscribe-to-category/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/subscribe-to-category/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/subscribe-to-category/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [baedyllion](https://wordpress.org/support/users/baedyllion/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/post-category-name-shortcode/#post-14031267)
 * Status: resolved