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
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
Hi Shane
Thanks for helping me with this..
Neither of those links output anything in the loop sadly..
Best wishes
Geoff
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
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
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
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
Hi Shane
The user role that is unable to edit switches between 'member' and 'subscribed member'
Many thanks
Geoff
My issue is resolved now. Thank you!