-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featured Image Not working for Subsite #84
Comments
Can confirm. I have this problem with blog posts and any custom post types so far. |
So apparently, saving a post should add an entry to the table wp_{subsitenumber}_postmeta which states that my post should have a _thumbnail_id of the image I chose, but this doesn't happen. |
I've solved this with the following code:
|
I've write this code to my plugin file. but featured image still won't show up.. |
Make sure the fill in the correct post-type in |
i placed that code at plugin editor network-media-library.php |
Try placing this code in your functions.php inside your theme folder. |
Featured image still won't show up. i have searching the problem with error_log, and result is featured image can't load because link image didn't load central gallery but localhost gallery. i try to fix this but its really hard for me |
Can you show the code that you currently have and for which post-type do you want to add this? |
this is my functions.php file and i have writed your code. |
Alright, can you first check if setting a featured image for a page is working correctly? |
Guten Tag,
vielen Dank für Ihre Nachricht. Dies ist eine automatisch generierte Antwort.
Ich bin bis inkl. 22.08.2021 im Urlaub und ab 23.08.2021 wieder in München zu erreichen.
Mit freundlichen Grüßen
Michael Krefft
…--
BASEMOD Consulting
Michael Krefft
Infanteriestr. 19 Haus 6 80797 München
+49 89 32211207 https://www.basemod.de
|
This worked for me as well. Thanks @mvdhoek1! |
The add_action() trick seems to be work for post and page. Avada template has custom post type called Portfolio (avada_portfolio). It's not working using rest_insert_avada_portfolio. Another twist to the same problem: |
This works for me:
|
Thanks @piotr-bajer and @mvdhoek1. Your code helped me fix the network media library when updating featured images within subsites with the Gutenberg editor 💯 |
Running WordPress 5.7
On a subsite, clicking on featured, and uploading an image, then save the post, the featured image goes back to empty.
I also can't select a previously uploaded image.
Not sure what else to say, other than I emulated this on my live and my dev servers.
If someone wants more information, ask away.
The text was updated successfully, but these errors were encountered: