Skip Navigation

[Resolved] Edit link only for for published posts?

This thread is resolved. Here is a description of the problem and solution.

Problem:
1. So for the Edit link to appear, post type must have the "publish" status only? Not even a custom status?
2. BTW, can I create a custom post status for a CPT with Toolset?

Solution:
1. This is possible using our latest View's beta version 2.5-b1 or later, in this version CRED edit post links works for drafts, private, future or pending posts as well. So please backup your site and you can install & try the beta version:
https://toolset.com/download/toolset-views/#changelog

2. This is not possible with Toolset Types, as I think this might be possible using custom code / WordPress function "register post status" OR by using a plugin.

Tutorial and WP codex links are:
http://www.wpsuperstars.net/add-custom-post-statuses-in-wordpress/
https://codex.wordpress.org/Function_Reference/register_post_status

Plugins that have Custom Status feature:
https://codecanyon.net/item/wordpress-post-planner/2496996
https://wordpress.org/plugins/custom-post-status/

This support ticket is created 7 years, 1 month ago. 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.

Sun Mon Tue Wed Thu Fri Sat
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 3 replies, has 2 voices.

Last updated by Kostas 7 years, 1 month ago.

Assisted by: Noman.

Author
Posts
#571510

Hi,

I plan to use a view to list CPTs, together with Edit / Delete links for each list item.
According to:
https://toolset.com/documentation/user-guides/cred-training-course/part-9-listing-items-belong-logged-user/
Edit links appear for published posts only.

Two questions please:
1. So for the Edit link to appear, post type must have the "publish" status only? Not even a custom status?
2. BTW, can I create a custom post status for a CPT with Toolset?

Thank you,
Kostas

#571514

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Kostas,

Thank you for getting in touch with us. I will try my best to answer your questions below:

1. So for the Edit link to appear, post type must have the "publish" status only? Not even a custom status?
==> This is possible using our latest View's beta version 2.5-b1, in this version CRED edit post links works for drafts, private, future or pending posts as well. So please backup your site and you can install & try the beta version:
https://toolset.com/download/toolset-views/#changelog

2. BTW, can I create a custom post status for a CPT with Toolset?
==> This is not possible with Toolset Types, but if you would like we can take it as a feature request. I am also searching for something that allows to do this via WP method, will get back to you shortly.

Thank you

#571516

Noman
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Ok as I thought this might be possible using custom code / WordPress function "register post status" OR by using a plugin.

Tutorial and WP codex links are:
hidden link
https://codex.wordpress.org/Function_Reference/register_post_status

Plugins that have Custom Status feature:
hidden link
https://wordpress.org/plugins/custom-post-status/

Thank you

#571524

Hi Noman,

Thank you for the info, nice job 🙂

Toolset Types to support custom post status, is not essential for us right now, but it would a nice feature.
I will try View's beta version 2.5-b1 for the time being.

Thanks again,
Kostas