Skip Navigation

[Resolved] Adding an Edit link on a Post List

This thread is resolved. Here is a description of the problem and solution.

Problem:
Add the "Edit Link" where the posts are listed
Solution:
Add a new post (project). It is displaying Update project link before Delete button.
Relevant Documentation:

0% of people find this useful.

This support ticket is created 7 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
- 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 12:00 – 17:00 -
- 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 18:00 – 21:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

This topic contains 8 replies, has 2 voices.

Last updated by theW 7 years ago.

Assisted by: Noman.

Author
Posts
#582591
2.png
1.png
L.png

Hello I've successfully followed a few Creed tutorials and currently I'm on #9:
https://toolset.com/documentation/user-guides/cred-training-course/part-9-listing-items-belong-logged-user/

I am trying to:
Add the "Edit Link" where the posts are listed

The tutorial provides this shortcode:
`[toolset-edit-post-link layout_slug=”edit-ad”]Edit[/toolset-edit-post-link]`
In my case it supposed to be:
`[toolset-edit-post-link layout_slug="update-project"]Update Project[/toolset-edit-post-link]`

Which should be render inside the loop of the Custom Post Type that I named "Projects"
On a page that renders current users post by author (my projects).

Link to a page where the issue can be seen:
hidden link
Restricted to members

I expected to see:
Update Project - Delete
As links under the comments counter
Instead, I got:
Blank. (The link simple does not display.) - Delete

Bellow is the full code I have on the Loop Wizard
`
[wpv-layout-start]
[wpv-items-found]
<!-- wpv-loop-start -->
<ul class="wpv-loop js-wpv-loop">
<wpv-loop>

  • [wpv-post-featured-image]
    <H4>[wpv-post-link]</H4>
    Created on: [wpv-post-date]<br>
    Current Status: [wpv-post-status]<br>
    [wpv-post-comments-number]<br>
    [toolset-edit-post-link layout_slug="update-project"]Update Project[/toolset-edit-post-link] 
    [cred_delete_post_link class='cred-refresh-after-delete' text='Delete' message='Are you sure you want to delete this project?' message_after='Project deleted' message_show='1' action='trash']
    [themify_hr color="#73af00" width="100%" border_width="10px"]

  • </wpv-loop>

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

    Bellow is the full code I have on the Templates for this View
    `
    [wpv-post-featured-image]
    [wpv-post-link]
    [wpv-post-date]
    [wpv-post-type]
    [wpv-post-status]
    [wpv-post-comments-number]
    [toolset-edit-post-link layout_slug="update-project"]Update Project[/toolset-edit-post-link]
    `
    Could you please help figure out what am I missing?

    #582703

    Noman
    Supporter

    Languages: English (English )

    Timezone: Asia/Karachi (GMT+05:00)

    Update project.png

    Hi,

    Thank you for contacting Toolset support. I have logged in to your site and add a new project. It is displaying Update project link before Delete button. See attached screenshot and advice further.

    Thank you

    #582779
    R.png

    Oh, why didn't I think on that! Lol
    My mistake was, I was only previewing the Posts and not the Custom Posts Projects.

    Thank you so much Noman, I appreciate your time.

    By the way, I just noticed another booboo.
    Please see my screenshot attached.

    Also... Perhaps you already have pre-made CREED templates built that I could copy and paste to style this Custom Post List?
    I think those would sell quite well.

    #582800

    Noman
    Supporter

    Languages: English (English )

    Timezone: Asia/Karachi (GMT+05:00)

    To insert Edit/Update Post (WordPress regular post), you need to follow the same steps as you did to insert Update Project link for Projects CPT.

    Thank you

    #582807
    VIEW LINK.png

    Thanks again for your response Noman.

    Perhaps I wasn't clear enough, apologies...

    My question is NOT how to "insert Edit/Update Post (WordPress regular post)"

    My question is:

    How to insert a VIEW Link on the CUSTOM POST Loop.
    Or
    How to make the CUSTOM POST Title redirect to the VIEW Template when clicked

    Please see my updated screenshot attached.

    #582815

    Noman
    Supporter

    Languages: English (English )

    Timezone: Asia/Karachi (GMT+05:00)

    Please kindly open a new ticket for this 2nd issue with more details and we would be happy to help, please assign that ticket directly to me. This will help other users with similar problems to find solutions when searching the forum, We do not handle multiple issues in the same ticket as per support policy. https://toolset.com/toolset-support-policy/

    Please kindly mark this issue resolved as the original issue Adding an Edit link on a Post List is resolved.

    Thank you

    #582819

    Ok, I could not figure out how to assign you for support, so I selected "anyone can help me".

    Please see the new open ticket here:
    https://toolset.com/forums/topic/how-to-insert-a-view-link-on-the-custom-post-loop/

    I will mark this as resolved after you confirm reading this message since you won't see it if I mark it as resolved.

    Thanks!

    #583200

    Noman
    Supporter

    Languages: English (English )

    Timezone: Asia/Karachi (GMT+05:00)

    Thank you for creating a separate ticket. Beda is handling that second ticket.

    #583412

    Thank you