Forum Replies Created
-
AuthorPosts
-
December 16, 2015 at 12:02 PM in reply to: Meta Box Updater Problem + Core Bundle Update Issues #1926
Anh Tran
KeymasterYes, moving the code into the constructor makes it runs on all pages. That's why I need to put it in
admin_init. Can you check by clicking Check update button (maybe some times)? WP doesn't trigger checking updates more than twice a day, that's probably why you don't see new version.I'm working on the update system and that will cover the issue.
Anh Tran
KeymasterHi, can you check the download again? It's 1.0.4: https://metabox.io/plugins/meta-box-group/
Anh Tran
KeymasterThanks for your idea. Added it into the feature request queue ๐
December 15, 2015 at 10:36 AM in reply to: Meta Box Updater Problem + Core Bundle Update Issues #1911Anh Tran
KeymasterHi keenadv,
Thanks for your comments! I really appreciate that you suggest ideas for the code.
The reason I added the filter in
admin_inithook is for checking user permission. And it still works. Why do you think it's triggered too late? Doesn't that work for you?Regarding the core extensions bundle, you're right about that. I'm trying to improve the update system (mostly on the server) to be able to handle bundles well. This issue was requested for a while, but I haven't completed it yet.
Anh Tran
KeymasterHmm, the latest version is 1.0.3, so you should be able to see updates. Can you please click Check updates in Dashboard | Updates to force check for updates again?
In case you still haven't seen updates, please go to your profile and re-download the extension. I will check the problem with updater again.
Anh Tran
KeymasterYes, doesn't it show new updates available for group extension? Have you entered your API key in the Updater's settings page? Can you please check the current version of the group extension that you're using?
December 5, 2015 at 3:42 PM in reply to: Can't use wp_query "meta_key" parameter to filter posts #1868Anh Tran
KeymasterI mean getting the ID of the post you want to get value for. Inside the loop, you setup global post object and the helper function auto takes its ID. But outside the loop, the helper function doesn't know which post object to take ID, and thus it might output the wrong value.
I'm not sure if that's the case, cause the situation is not 100% clear. That are just my thoughts.
Anh Tran
KeymasterIt seems the version of group extension is old. Please update the Group extension to the latest version 1.0.3 which has a fix for this.
Anh Tran
KeymasterHi Johann, I think yes :), the code is correct.
Anh Tran
KeymasterHmm, I see. So you set a fixed template for the front page and don't use Page template at all.
My suggestion is making the front page a normal page template (so it won't be hardcoded) -
template-front-page.phpfor example and use the extension to show meta box for this page template only:'show' => array( 'template' => array( 'template-front-page.php' ), )Anh Tran
KeymasterLet me check it again and get back to you. The 4.7 has a new feature with custom attributes, including the meta value. Maybe it *thinks* the value is empty and doesn't show it.
Anh Tran
KeymasterHi Johann,
For group, the value of a group is always an array. If it's cloneable, then the value is always array of arrays (2 level depth array), even when it's empty. So, for group, you should check the subvalue as well, not just
emptyon the group value.For other fields, I can't replicate the bug. There is also 1 open pull request for similar bug on Github (for oembed field), but I can't make the same bug:
https://github.com/rilwis/meta-box/pull/703
Do you see the same problem? Can you post your code?
Anh Tran
KeymasterHi Saul,
I think it's fixed in the development version on Github:
https://github.com/rilwis/meta-box/blob/master/inc/fields/post.php#L142
I will update the plugin soon so it's available on WordPress.org as well.
Anh Tran
KeymasterIn your shortcode, you use a custom query but you don't reset the query after outputting HTML. That makes the global
$postobject isn't reseted and contains wrong value of the current post. Thus, therwmb_metashortcode can't get the correct value.Best way to resolve this is adding
wp_reset_postdata()after your query and try again.Anh Tran
KeymasterHi Johann,
1. You mean if the page is set as the static front page in Settings | Reading? Or just front page template?
If front page template, we already have that with the option 'template'.
2. We have options to reorder clonable fields. Just add
'sort_clone' => trueto the field and you will see :). It works for both normal fields and group. -
AuthorPosts