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!
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
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.
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
My issue is resolved now. Thank you!
But, why would it work on other post types and not this one?
Thanks!