Skip Navigation

[Resolved] Edit post link not working

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

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

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 8 replies, has 2 voices.

Last updated by geoffD 4 years, 4 months ago.

Assisted by: Shane.

Author
Posts
#1397951

Hello

I'm having difficulty making a [toolset-edit-post-link ] work.

I have a Layout called 'my-children' and in this layout is a view (id:16500) which lists CPT 'People' that belong to the current logged in user. In the loop that is returned I have a edit post link to a layout called 'reinstate-my-old-child'(id:16508) and in this layout ids an edit form for the CPT 'Person'that was in the view loop(id:16500).

The problem is that the link isn't working and anything inside of the link doesn't render.

Here is the view code in my Layout 'my-children'

[wpv-layout-start]
	[wpv-items-found]
	<!-- wpv-loop-start -->
<div class="row">
		<wpv-loop>
			<div class="col-sm-2 outer-div">
           
              [toolset-edit-post-link layout_slug='reinstate-my-old-child' target='self']
<div class="inner-div-person">
<div class="inner-icon"><i class="vc_icon_element-icon fa fa-user fa-1x"></i></div>
<div class="inner-title-person">%%POST_TITLE%%</div>
</div>
[/toolset-edit-post-link]
  </div>
		</wpv-loop></div>

	<!-- wpv-loop-end -->
	[/wpv-items-found]
	[wpv-no-items-found]
		<strong>[wpml-string context="wpv-views"][/wpml-string]</strong>
	[/wpv-no-items-found]
[wpv-layout-end]

Please can you tell me if I'm doing something wrong

Best regards

Geoff

#1398065

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Geoff,

Thank you for getting in touch.

Does the link work by itself when done like this ?

[toolset-edit-post-link layout_slug='reinstate-my-old-child' target='self'] edit %%POST_TITLE%% [/toolset-edit-post-link]

OR

[toolset-edit-post-link layout_slug='reinstate-my-old-child' target='self'] edit post [/toolset-edit-post-link]

Could you try this only and let me know the result .

Thanks,
Shane

#1398069

Hi Shane

Thanks for helping me with this..

Neither of those links output anything in the loop sadly..

Best wishes

Geoff

#1398073

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Geoff,

Would you mind providing me with access to the website to check on this one for you ?

Thanks,
Shane

#1398781

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Geoff,

Thank you for the credentials.

I tested this on your site and it was working fine.

[toolset-edit-post-link layout_slug='reinstate-my-old-child' target='self']           
<div class="inner-div-person">
<div class="inner-icon"><i class="vc_icon_element-icon fa fa-user fa-1x"></i></div>
<div class="inner-title-person">%%POST_TITLE%%</div>
</div>[/toolset-edit-post-link]

The link generates and i'm able to click to the edit page. Could you record what happens on your end?

Thanks,
Shane

#1398825
Screen Shot 2019-12-03 at 14.59.06.png
Screen Shot 2019-12-03 at 14.58.31.png

Hi Shane

This is strange...when I log in with the details I set up for Toolset I can see the content and the link works fine as you suggest, however when I log in as a different user the content or link isn't there..could this be a permissions problem with user roles?

I have attached a screenshot of both logins...

Best regards
Geoff

#1399193

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Geoff,

It could be.

Could you let me know what user role you are using to log in where you are not able to edit the post ?

Thanks,
Shane

#1399199

Hi Shane

The user role that is unable to edit switches between 'member' and 'subscribed member'

Many thanks

Geoff

#1401131

My issue is resolved now. Thank you!

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