Skip Navigation

[Résolu] Get new post id and display

This support ticket is created Il y a 1 an. There's a good chance that you are reading advice that it now obsolete.

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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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 réponse, has 2 voix.

Last updated by Luo Yang Il y a 1 an.

Assisted by: Luo Yang.

Auteur
Publications
#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

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.