Hi,
I know this plugin isn’t really being updated anymore but just reporting that the date picker widget no longer renders properly, likely due to some update in Gutenberg. Let me know if you are available to fix this or if I should try. Thanks.
Chris
Hi,
I need to reopen this issue. It was fixed but now the meta values are being cached again.
I had previously excluded this route from the caching mechanism '#^/wp-json/post-meta-controls/v1/?#'
. Did this route change? That might explain why it’s being cached again. Here is a recent video showing the issue. Any thoughts?
Thanks,
Chris
Hey Alvaro. Another great plugin! I’ve removed the page title from the top of the GB editor and would like to add a field for it in the sidebar. However the title isn’t a meta field. Is there a way I can do this?
Also regarding the UI, would it be possible to auto-navigate to a block’s settings when a block is clicked in the main editor? Currently the post meta sidebar remians. This could be an optional setting.
Thanks!
]]>I’m trying to store https://www.linkedin.com/in/gergely-csat%C3%A1ri-76591020/ in a text field, however, on save, the foreign chars are getting stripped out. I notice this is the case with regular WordPress meta fields as well, so perhaps it’s not your plugin that is the problem here. Any thoughts?
Thanks,
Chris
I just upgraded to WP 5.6 and I’m getting a 403 error from Post Meta Controls in the post edit screen resulting in the sidebars not loading. Any ideas?
Thanks,
Chris
After upgrading to WP 5.5, I’m finding sometimes the sidebar shows blank.
If you edit a post, open the sidebar, then immediately go and edit another post, the sidebar will be displayed by default, which is fine, except it will be blank. To fix, you have to toggle it on and off again to see the sidebar contents. Video is here. Any ideas?
]]>Hi,
I’m trying to store some html in a textarea so that I can output it in an alert bar. Whenever I save the post the html gets stripped from the field. Is there a way to stop that from happening or any other way to store HTML in a field?
Thanks,
Chris
After entering a meta value, saving, and immediately re-loading the CPT edit page, the meta values don’t show. Steps to reproduce:
1. Edit a CPT and enter some meta values in the sidebar
2. Save or Publish
3. Go back to the CPT listing and click on the new CPT. You won’t see any of the meta values that you just entered.
4. Do a hard-refresh of the edit screen and you will see them.
It seems that the meta values are being saved, it’s just that the user’s browser has cached the REST API calls so that it doesn’t get the saved values immediately.
One possible solution is to add the current timestamp to each REST API call as a querystring var so as to make sure you’re getting a fresh copy.
Tested in Chrome v80.0.3987.87 on macos.
]]>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?
]]>When I try and set the end date to be the same day as the start date, the date range field doesn’t save the information. Is it possible to allow this? I am storing event dates. Some events span many days while others are just one day.
]]>I just upgraded the Gutenberg Plugin to v. 6.4.0 and now when I try to enter values into text boxes I created with this plugin, the value disappears as soon as I enter a value in a different text box.
To reproduce:
1. install the Gutenberg Plugin v. 6.4.0
2. create a CPT that uses Post Meta Controls that has more than one text box
3. create a new instance of the CPT and enter text in one of the boxes
4. now enter text in another text box and you’ll see the text in the first box immediately disappear
Hi,
I am using the date_single type but I’m finding I’m only able to set a date in the future, even if I key in the date by hand rather than use the date picker control. Is it possible to set to a date in the past?
Thanks,
Chris
Hi,
When I use the standard example code for a sidebar and link it to both ‘post’ and ‘custom-post-type’, it appears as it should on both edit screens. When I make a change to the sidebar meta info and save the post I get “Post updated” as expected, however when I save the custom post type I get “Updating failed”. Any idea why this would work for a ‘post’ but not a ‘custom-post-type’?
Thanks,
Chris
Hi,
I notice there are not many downloads and installations of this plugin. I’m surprised because I don’t know of an alternative way to do what it does without a lot of custom coding. Is it being maintained and does it have a future? Is there a competing plugin that I should be using instead?
Thanks,
Chris