Skip Navigation

[Closed] Hiding Post Content when cred form is displayed

This support ticket is created 8 years, 11 months 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
- 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)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 8 years, 11 months ago.

Assigned support staff: Luo Yang.

Author
Posts
#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: English (English ) Chinese (Simplified) (简体中文 )

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

The topic ‘[Closed] Hiding Post Content when cred form is displayed’ is closed to new replies.