Forum Replies Created
-
AuthorPosts
-
Anh Tran
KeymasterHi Nick,
There's no keys for the extensions. They're not available for Composer yet.
Anh Tran
KeymasterHi Nick,
I haven't released the extensions on Packgist yet. Only the core plugin is available there. Here is the documentation for Composer.
March 31, 2017 at 5:32 PM in reply to: How to set post title on save/publish from meta values? #5452Anh Tran
KeymasterHi,
This can be done with filter
wp_insert_post_data. I answered a similar question on StackOverflow. You can access to meta fields via$_POST.PS: The reason you should not use
save_postor these actions because using them require to callwp_update_postfunction, which causes an infinite loop of saving data. Usingwp_insert_post_datamakes sure you update the data before the post is updated and thus, no infinite loop.Anh Tran
KeymasterOK, I found the bug and just updated the Meta Box Yoast SEO plugin. Please update it.
Anh Tran
KeymasterOK, I got it. It's actually beyond the scope of the plugin. Include/exclude here means for meta boxes and what you want seems to be for post elements. I will think about this and if it's not hard to implement, I will do it.
Anh Tran
KeymasterThere are 2 things in you code:
1.
get_the_post_thumbnailneeds the 1st param as the post ID. You can pass$post_idto the function, or simplynull.
2. Thetaxonomyfield doesn't save value into post meta. Instead, it set post terms. So you need functionget_the_termsto get them.Here is the working code: https://pastebin.com/txqnp0A3
Anh Tran
KeymasterHmm, I will check the Yoast SEO JavaScript. It caused some issues in the past. Can you post your full code here so I can check closer?
Anh Tran
KeymasterDoes this belong to the post type object itself? I think it's easy to do it with the
remove_post_type_supportfunction (https://developer.wordpress.org/reference/functions/remove_post_type_support/).Anh Tran
KeymasterHi Claudia,
Can you post a screenshot and the code you use to register meta boxes? I'm having WPML on my localhost and don't see that problem.
Anh Tran
KeymasterI mean the version of the Meta Box plugin, not the extension. Can you check it? Is it 4.10.4?
Anh Tran
KeymasterNo problem, it's easy to do that :). I will create one this week.
Anh Tran
KeymasterCan you please post your full code here? I tried with your code above and it still works for me. I guess there's a conflict somewhere that breaks the JavaScript (you might want to check the console, too).
Anh Tran
KeymasterThe Include/Exclude extension is the way to go :). Glad you figured it out.
Anh Tran
KeymasterGlad that it works for you :). How about the update? Does it work?
Anh Tran
KeymasterHi Nick,
Are you using the latest version of MB Settings Page? I've updated the extension a week ago with a fix for clone.
-
AuthorPosts