Skip Navigation

[Resolved] CRED edit links do not display for posts pending review

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

Problem:
My CRED Edit links are not displaying on posts that are not yet published.
What's wrong?

Solution:
The rule is this:

if ( 'publish' != $post_status )

So, whenever a post is not published, this won't work.

This is by design.

As edit links do link to the frontend version of a given post, replacing their content with a Content Template or layout containing the form to edit them, and not published posts can not have a proper URL, we only show edit links for published posts.

You need to publish it first.

This support ticket is created 7 years, 4 months 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.

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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 2 replies, has 2 voices.

Last updated by Darryl 7 years, 4 months ago.

Assisted by: Beda.

Author
Posts
#548909

I have a custom post type that uses a CRED form to create posts and sets them to Pending Review.

I created a View to display all posts that are Pending Review and used the method described here (https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/) to insert a link to edit the post using another CRED form.

The edit link does not display for any post that is set to Pending Review.

#549016

The rule is this:

if ( 'publish' != $post_status )

So, whenever a post is not published, this won't work.
This is by design.
As edit links do link to the frontend version of a given post, replacing their content with a Content Template or layout containing the form to edit them, and not published posts can not have a proper URL, we only show edit links for published posts.

You need to publish it first.

#549115

I would like to request that this be changed/fixed.

If website visitors are submitting content that I don't want published and I don't want the people managing documents to have work with the WordPress back end, there's no proper way to accomplish this.

I can display a handy list of posts of any post status so not being able to edit them with CRED is a head scratcher.

What I've done is add a custom checkbox field "Visible" and edited all my Views and Templates to check for the checkbox, but that kinda seems janky.