[Resolved] CRED edit-post link (V1.9) Doesn’t Show on Frontend
This thread is resolved. Here is a description of the problem and solution.
Problem:
CRED edit post link doesn't Show on Frontend for Guest users.
Solution:
In CRED Frontend Access, you have to enable/check Edit Others Custom Post with CRED Form "Form_Name" because system does not know who is the Guest user, system treats every logged out user as Guest.
Something went completely awry with my installation whilst Noman and I were trying to sort out the issue I reported on the other ticket so I nuked that site (it's my test/development site so it doesn't matter) and have just finished reinstalling wordpress and toolset plugins. This is multi site installation using sub-directories.
I've created one post type, 1 post group, 5 post fields, 1 post form (create & edit versions), a Content Template to display the edit version of the form and a View to display all posts with just the post title and the CRED edit form link which looks like this:-
When I add the CRED edit-post link manually, the link doesn't display on the frontend. If I use the Loop Wizard, I get this shortcode instead (I'm not given the option to select the CT containing the edit version of the form). This shortcode links to the backend not the frontend:-
Minesh asked me to take over this ticket, I hope that is ok. The steps you have taken appears to be correct.
For the Loop Wizard method, when you add CRED Edit link, there is an Edit button in loop wizard popup window from which you can select the Content Template carrying the edit form. However, the other method we talked about is more recommended one (Create CT > Insert edit form into it > then using Fields and Views button > we insert CRED edit-post link).
To speedup things, I need to request temporary access (WP-Admin and FTP Login info) to your site, so that I can go in and repeat the same steps to figure out what’s happening, as it's a new site then it should be easily working or reproducible bug. Your next answer will be private which means only you and I have access to it.
=== Please backup your database and website ===
✙ I would additionally need your permission to de-activate and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important.
Can I make a request at this point please that the documentation for this feature is re-visited and updated; currently it encourages the use of the Loop Wizard and makes only a cursory reference to the manual method. The Loop Wizard though creates the wpv-post-edit-link which links to the backend and this point is not clear in the documentation nor is it clear that if you want a frontend post edit link you need to add it manually.
Thank you for providing login info and for the doc suggestion. I have informed our doc team leader and I find out that the doc renew request is already in processing and I have added your suggestion into that. I am going to debug the rest issue further on the site and will update you soon.
I have re-added Post edit link in the View and it is working as expected. When I click on Amend it will go to front-end post edit link page, please check here: [LINK REMOVED]
I have recorded the short video to confirm this:
[LINK REMOVED]
My heart sank when I first read your response - I thought I must be losing my marbles especially when I visited the page again and STILL couldn't see the links.
I then thought perhaps I'd not set Access up correctly but as I checked over things and ran a test again, I realised the problem is I can see the content as Admin but not as Guest.
I love the video tool by the way so I did my own for you!! In the recording, I'm using a Google session as Admin and a Mozilla session as Guest and shows the issue (and that I really am NOT dreaming or going mad!!). My internet connection isn't great, I'm afraid, so there's a bit of pause in the middle. Here's a link to download:-
[LINK REMOVED]
oh I can see that now, that problem is eventually with the Edit links for the Guest users. I am going to debug this further and see what needs to be changed in this case to make the Edit links work for the guest users. I will update you soon.
In CRED Frontend Access, you have to enable/check Edit Others Custom Post with CRED Form "Day Care_Amend Booking" because system does not know who is the Guest user, system treats every logged out user as Guest. I have enabled this option and now Edit link is displaying and working for Guest user.
That certainly makes sense. Thank goodness we got to the bottom of it. I've been done some further testing this morning; some of the conditional statements I was using that worked previously don't work now so something has changed but I can make some adjustments and achieve an acceptable outcome.
I wonder whether originally I was testing visibility of the link as a Guest whilst thinking I was logged in as a User. Either that or there was something awry with my previous installation. I guess we'll never know. Thank you for your help - it's much appreciated.
Could you remove/disguise the URLs to my site please in your threads so I can mark this as closed?