“Image with id was not found”?
-
I am using the following image control:
array( 'type' => 'image', // Required. // Optionally, an id may be specified. It will be used by the plugin to // identify the setting and will be applied to the control html. // The prefix set in the sidebar option 'id_prefix' will be applied. 'id' => 'favicon', 'data_type' => 'meta', // Available: 'meta', 'localstorage', 'none'. 'data_key' => 'favicon', // Required if 'data_type' is 'meta' or 'localstorage'. // Use 'data_key_prefix' to set a custom prefix for this setting 'data_key'. // If 'data_key_prefix' is not assigned, the 'data_key_prefix' from the sidebar // where this setting is nested will be used. 'label' => __( 'Favicon', 'my_plugin' ), 'help' => __( 'Should be a 32x32 png file. Use realfavicongenerator.net.' ), 'register_meta' => true, // This option is applicable only if 'data_type' is 'meta'. 'ui_border_top' => true, // Display CSS border-top in the editor control. ),
When I set an image it shows the image correctly, however, after I reload the edit screen and view the setting it shows this. The meta value is definitely there in the db and I can use it on the front-end, but why doesn’t it show the image correctly in the admin. This works fine for other images I upload to similar meta settings, it’s just this one that seems to do this. Does it have something to do with the size of the favicon image that I upload? Any ideas?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘“Image with id was not found”?’ is closed to new replies.