Title: Get post ID from trigger
Last modified: September 16, 2021

---

# Get post ID from trigger

 *  Resolved [pixelshrink](https://wordpress.org/support/users/pixelshrink/)
 * (@pixelshrink)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/get-post-id-from-trigger/)
 * Hi, I want the trigger to be ‘User publishes a post in a taxonomy’, and for the
   action to be setting a meta value in a meta key in that same post. I can get 
   it to work apart from getting the post ID from the trigger into the action. I’ve
   seen the documentation about tags but can’t work out how to get it to work in
   this example – is it possible?

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

 *  Plugin Contributor [Paco González Pérez](https://wordpress.org/support/users/pacogon/)
 * (@pacogon)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/get-post-id-from-trigger/#post-14877961)
 * Hi [@pixelshrink](https://wordpress.org/support/users/pixelshrink/) !!
 * You just have to open the tag drop-down, select the trigger and the first tag
   is the post ID.
    By selecting it AutomatorWP will put it in the field directly.
 * Hope it helps!
 *  Thread Starter [pixelshrink](https://wordpress.org/support/users/pixelshrink/)
 * (@pixelshrink)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/get-post-id-from-trigger/#post-14878127)
 * Thanks very much, I’m not seeing a tag dropdown though – when I click on (Post
   ID), there’s just a Post ID input box with no tag button as seen on [https://automatorwp.com/docs/getting-started/tags/](https://automatorwp.com/docs/getting-started/tags/).
 *  Plugin Contributor [Paco González Pérez](https://wordpress.org/support/users/pacogon/)
 * (@pacogon)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/get-post-id-from-trigger/#post-14878873)
 * Hi [@pixelshrink](https://wordpress.org/support/users/pixelshrink/) !
 * It should appear without any problem, if it does not appear, it may be due to
   an incompatibility with another plugin that is causing problems in AutomatorWP,
   in this case I recommend that you do a conflict test.
 * The conflict test is really simple, the unique you need is to switch to a default
   WordPress theme (to check that conflict doesn’t come from your theme):
    [https://codex.wordpress.org/WordPress_Default_Themes](https://codex.wordpress.org/WordPress_Default_Themes)
 * And deactivate plugins one-by-one to find who is causing this issue
 * Please, let us know which theme or plugin is causing this issue to contact their
   authors to request a fix.
 * Hope it helps!

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

The topic ‘Get post ID from trigger’ is closed to new replies.

 * ![](https://ps.w.org/automatorwp/assets/icon-256x256.png?rev=2271366)
 * [AutomatorWP - Automator plugin for no-code automations, webhooks & custom integrations in WordPress](https://wordpress.org/plugins/automatorwp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/automatorwp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/automatorwp/)
 * [Active Topics](https://wordpress.org/support/plugin/automatorwp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/automatorwp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/automatorwp/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Paco González Pérez](https://wordpress.org/support/users/pacogon/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/get-post-id-from-trigger/#post-14878873)
 * Status: resolved