Skip Navigation

[Resolved] Get new post id and display

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 1 year, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#2594985
Screenshot 2023-04-17 at 9.18.27 AM.png

I want to display the new post id after create a custom post using a post form, how can I do it?

<center>
<h2>[ new post id here ]</h2>
  <h3>Successful</h3>
[fusion_button link="/create-coupon/" target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" color="default" linear_angle="180" stretch="default" icon_position="left" icon_divider="no" hover_transition="none" animation_direction="left" animation_speed="0.3" animation_delay="0"]Redo[/fusion_button] [fusion_button link="/coupon-redemption/" target="_self" hide_on_mobile="small-visibility,medium-visibility,large-visibility" sticky_display="normal,sticky" color="default" linear_angle="180" stretch="default" icon_position="left" icon_divider="no" hover_transition="none" animation_direction="left" animation_speed="0.3" animation_delay="0"]Redemption [/fusion_button]
</center>
#2595957

Hello,

In the your screenshot, you can display the new post ID with shortcode [wpv-post-id]

More help:
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#wpv-post-id