Skip Navigation

[Resolved] CRED Edit link not appearing

This support ticket is created 7 years, 3 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)

This topic contains 15 replies, has 2 voices.

Last updated by Shane 7 years, 2 months ago.

Assisted by: Shane.

Author
Posts
#559518

I have a page here:

hidden link

This page has a CRED link to a content template:

[toolset-edit-post-link content_template_slug="consultant-edit-content-template"]EDIT YOUR DETAILS[/toolset-edit-post-link]

The content template has the following code on it :

[cred_form form='consultant-edit-details' form_name='Consultant Edit Details']

Which is for a consultant edit form.

when logged in as a consultant (Or as any user role) Nothing appears on the above page.

Regards,

David

#559594

Shane
Supporter

Languages: English (English )

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

Hi David,

Thanks for getting in touch.

I'm currently taking a look at this ticket.

Thanks,
Shane

#559598

Shane
Supporter

Languages: English (English )

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

Hi David,

This page seems to be password protected, could you let me know what's the password?

Thanks,
Shane

#559637

alec5566

#559720

Shane
Supporter

Languages: English (English )

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

Hi David,

I see the issue.

You need to add the edit shortcode to the consultant page itself, that is because the form it generates will be to edit that post.

Try placing the shortcode on the content template for the consultants and it should start working.

Thanks,
Shane

#559934

Hi Shane,

But on this page no link is appearing:

hidden link

The shortcode

[toolset-edit-post-link content_template_slug="consultant-edit-content-template"]EDIT YOUR DETAILS[/toolset-edit-post-link]

should create a dynamic link to the logged in users post but its not. Thats my issue. I dont know why the CRED system is so hard to use whilst the rest of your plugins are easy to use.

I have followed the instructions here:

https://toolset.com/documentation/user-guides/displaying-cred-editing-forms/

But they dont work

David

#559951

Okay so I figured out I needed to put the first shortcode into a view and add the view to my page.

However I have put the second shortcode into the consultant template but the consultant details also display beneath. I only want the edit form to appear.

Regards,

David

#560003

Shane
Supporter

Languages: English (English )

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

Hi David,

I understand what you are trying to do, its some kind of profile page correct? Are the logged in users the authors of their own profiles? meaning were they the ones that created it ?

Please let me know.

Thanks,
Shane

#560302

Hi Shane,

What I need is a page on which a user can edit their custom post (called consultant) The logged in users have previously created this post.

I have a link to the custom post content template which has the edit link on it but it also has the custom post display that other users can view. When being edited I dont want this to appear. Surely that must be the behaviour that everyone using CRED in this way would require.

Regards,

David

#560394

Shane
Supporter

Languages: English (English )

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

Hi David,

So that means when a user visits this page they should only see the edit think for the profile they created.

This means that you will need to add a query filter to the view for the Post Author so that it only displays the link for the currently logged in user.

Please let me know if this help as I could be still misinterpreting the issue.

Thanks,
Shane

#560766

Hi Shane,

No thats not my issue. Nothing to do with links. When the user clicks through to their profile page to edit it (The link works fine) they are seeing both the content template display for that post as well as the edit link. How do I show only the edit section and not the post itself when they are on their post but in editing mode (ie the URL is different because they have come through to edit)

Regards,

David

#560972

Shane
Supporter

Languages: English (English )

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

Screen Shot 2017-08-17 at 2.33.33 PM.png

Hi David,

If you're referring to this section here. See Screenshot.

That is because you have the information for the shortcode in the content template that this form is using.

Thanks,
Shane

#562014

Hi Shane,

The image you have screenshotted is the part I dont want to appear when the page is in edit mode.

"That is because you have the information for the shortcode in the content template that this form is using." I dont understand what that means.

Regards,

David

#562025

Shane
Supporter

Languages: English (English )

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

Hi David,

This is the code in the content template that is generating this section.

<div class="consultant-single-main">
  <div class="consultant-single-top clearfix">
  <div class="consultant-single-top-left"><a href="<em><u>hidden link</u></em>">MY SAVED CONSULTANTS</a></div>
    <div class="consultant-single-top-right"><a href="<em><u>hidden link</u></em>">BACK TO SEARCH RESULTS</a></div>
    </div>
  <div class="consultant-single-left">
    [types field='consultant-image' size='full' align='none'][/types]
    [favorite_button]
    </div>
  <div class="consultant-single-middle">
    <p class="consultant-single-heading">CONSULTANT NAME</p>
    <p class="consultant-single-value">[wpv-post-title] [toolset_access role="Administrator,Consultant" operator="allow"] [types field='consultant-last-name'][/types][/toolset_access]</p>
        <p class="consultant-single-heading">CONSULTANT RATES</p>
     <p class="consultant-single-value">[types field='consultant-day-rate'][/types]</p>
        <p class="consultant-single-heading">SPECIALIST SECTORS</p>
     <p class="consultant-single-value">[wpv-post-taxonomy type='consultant-business-sector' format='name']</p>
    <p class="button black">[itroclickpopup id="3"]DOWNLOAD CV[/itroclickpopup]</p>
    <a class="button black" href="#">DOWNLOAD TERMS</a>
  </div>
  <div class="consultant-single-right">
        <p class="consultant-single-heading">CONSULTANT DETAILS</p>
     <p>[types field='consultant-description'][/types]</p>
    <p class="button black">[itroclickpopup id="2"]CONNECT WITH CONSULTANT[/itroclickpopup]</p>
  </div>
</div>

Thanks,
Shane

#562243

This I know. How do I hide this when a user is in edit mode?

David