Problem: I have created a custom PHP template file for a CPT. When I try to include a Toolset Edit Post Link shortcode, the shortcode is written out to the page instead of displaying the link.
Solution: If you're not using Layouts on your site, disable the plugin. Then the shortcode should work in a PHP template like this:
echo do_shortcode('[toolset-edit-post-link content_template_slug="user-edit-artist-band"]Edit[/toolset-edit-post-link]');
Relevant Documentation:
https://toolset.com/documentation/user-guides/views-shortcodes/#toolset-edit-post-link
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 6 replies, has 2 voices.
Last updated by frankN-3 5 years, 11 months ago.
Assisted by: Christian Cox.