Skip Navigation

[Geschlossen] Hiding Post Content when cred form is displayed

This support ticket is created vor 9 Jahre, 5 Monate. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 Antwort, has 2 Stimmen.

Last updated by Luo Yang vor 9 Jahre, 5 Monate.

Assigned support staff: Luo Yang.

Author
Artikel
#211665

When I click the cred_link_form of a post in a loop, the form loads using the 'single-' template.

My custom post type template contains some standard stuff to do its job and display content.

the_title();
the_post_thumbnail('large');
get_field('my_custom_field');
the_content();

The cred form is loaded below title, thumbnail, and custom field, but want only the cred form loaded

My current solution is something like the following:

if(!isset($_GET['cred-edit-form'])){
the_title();
the_post_thumbnail('large');
get_field('my_custom_field');
the_content();
}

This does the job, but I'm wondering if you have a better way - like assigning cred forms a dedicated template?

#211749

Hi Matthew,

I think the codes you mentioned above is the easiest workaround, I can not find a better way, and hope other people can share their solutions

Das Thema „[Geschlossen] Hiding Post Content when cred form is displayed“ ist für neue Antworten geschlossen.