Skip Navigation

[Geschlossen] Hiding Post Content when cred form is displayed

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

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 8 Jahre, 9 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

Luo Yang
Supporter

Languages: Englisch (English ) Vereinfachtes Chinesisch (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

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.