Skip Navigation

[Resolved] wpv-post-title inside toolset-edit-post-link shows page name and not item within loop

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

Problem: When I place the wpv-post-title shortcode inside a toolset-edit-post-link shortcode, the title of the current post in the loop is not displayed. Instead, the title of the current page is shown.

Solution: Use the alternate syntax %%POST_TITLE%% to display the title of the current post in an edit post link.

Relevant Documentation:
https://toolset.com/documentation/user-guides/cred-shortcodes/#toolset-edit-post-link

This support ticket is created 5 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Christian Cox 5 years ago.

Assisted by: Christian Cox.

Author
Posts
#1402301

I think this may be a bug.

I am trying to refer to a post title within a loop inside an edit post link. The following is within the template for the loop item

[toolset-edit-post-link layout_slug="edit-show"] Edit [wpv-post-title] [/toolset-edit-post-link]

I was expecting the title of the post within the loop to appear as part of the edit link but what actually happens is that the name of the page on which the view appears is shown. if I place [wpv-post-title] outside the edit post link, the behaviour is as expected and the post title shows.

#1402375

Hi, please try this placeholder syntax instead:

[toolset-edit-post-link layout_slug="edit-show"] Edit %%POST_TITLE%% [/toolset-edit-post-link]

Is the title displayed correctly now?

#1402521

Thanks yes that works. Is this the expected behaviour and using the shortcode inside the edit link is not possible?

#1403259

It does feel inconsistent, but this is the documented behavior: https://toolset.com/documentation/user-guides/cred-shortcodes/#toolset-edit-post-link