Skip Navigation

[Resolved] Add front end edit link for other post types

This support ticket is created 5 years 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 4 replies, has 2 voices.

Last updated by duongN-3 5 years ago.

Assisted by: Nigel.

Author
Posts
#1388519

Tell us what you are trying to do?
Replicate the same edit experience as drama post type for other post types (movies and specials)

Is there any documentation that you are following?
Copied from Drama Post type set-up

Is there a similar example that we can see?
hidden link

What is the link to your site?
hidden link
hidden link

#1388553

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

I'm not sure I understand the problem.

Your site is set-up with an edit form to edit the drama post type.

You want to edit movies and specials post types in a similar way.

What isn't working?

#1390431
Screen Shot 2019-11-23 at 9.42.21 PM.png
Screen Shot 2019-11-23 at 9.42.07 PM.png

Currently I have a series of views, content templates, and relationship forms that is allowing me to edit existing relationships (cast) that are connected with drama post types. Attached is an image of how the "Edit" link looks.

When you click "edit" for a specific person, you can edit this person's "role" for this specific "drama" post type. See 2nd image attached.

I have this code in my loop item for the view "Edit Link for Cast-Dramas".

[wpv-conditional if="( '[wpv-post-id]' eq '[wpv-attribute name="people"]' )"]
 
[cred-relationship-form-link form='edit-drama-cast' role_items='$fromViews' content_template_slug='editing-cast-drama']Edit[/cred-relationship-form-link]
 
[/wpv-conditional]

I have this all set-up the same way for post types "movies" and "specials", but the Edit link is not showing on those pages.

#1390449

If I remove the conditional, it shows of course, but the code is something that Waqar recommended that I add for "drama" post types.

#1390451

My issue is resolved now. Thank you!