Skip Navigation

[Resolved] Edit post link opens same window

This support ticket is created 5 years, 3 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.

Our next available supporter will start replying to tickets in about 2.94 hours from now. 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 4 replies, has 2 voices.

Last updated by Armando 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1317521

I am trying to:
Use the edit post link to load the form for editing the post.

Link to a page where the issue can be seen:
hidden link

I expected to see:
Edit form

Instead, I got:
Reloads same page

I have a few edit post forms on this site without issues. For some reason, this post type is giving me issues. I have tried to re-do this multiple times and explicitly following the directions to no avail. Please advise.

Thank you!

#1317537

Hello,

Thanks for the details, I can log into your website and see the problem.

Here are what I found, in your theme file "single-hospital.php", you are using below PHP codes to render content template "hospital-single"

echo do_shortcode('[wpv-post-body view_template="hospital-single"]'); 

It seems your theme does not compatible with Views content template, but you can also setup PHP codes to render the content template "EDIT Hospital" depends on the URL parameter "content-template-id", I have changed above PHP codes to below:

				<?php
					if( isset($_GET['content-template-id']) && !empty($_GET['content-template-id']) ){
						$content_template = get_post($_GET['content-template-id']); 
						$content_template_slug = $content_template->post_name;
						echo do_shortcode('[wpv-post-body id="' . $content_template_slug . '"]');
					}else{
						echo do_shortcode('[wpv-post-body view_template="hospital-single"]'); 
					}
				?>

Please test again, check if it is fixed, thanks

#1317555

Thanks for looking Into this. Unfortunately, the search for is now broken.

hidden link

The theme is created by me using underscore S, so it’s as plain as you can get.

Thanks.

#1317615

Please elaborate the question with more details:
the search for is now broken.
Where and how can I see the search is broken?

I have tried it in your website, but did not see similar problem

#1319661

My issue is resolved now. Thank you!

But, why would it work on other post types and not this one?

Thanks!