Closed miguelangelss4 closed 7 years ago
I'm seeing the same thing. I'm trying to set the template for a page by setting the _wp_page_template meta field, but it's not making it into the database.
I want to add a CustomField to de customfields list, only to test that the problem is not a value with wrong serialization. I tried this: NuevoPopup.CustomFields.ToList().Add(New WordPressSharp.Models.CustomField With {.Key = "msolla_prueba", .Value = "test"})
But it don't add anything. Can I add a customfield? how?
Is there any updates here?
I will take a look this week. Planning some time to address a couple issues
Thanks you so much Andy, I wait for news.
@dmarklein Wordpress does not allow changes to database-columns preceding with _ by default. You have to add them to functions.php to allow the update:
function register_meta() { register_meta( 'post', '_description', '_meta_sanitize_cb', '_meta_yes_you_can'); } add_action( 'init', 'register_meta' );
@DUAB-Johan hi I'm seeing in documentation that this function (register_meta) only allow 3 parameters, and you had posted 4.
What are the values that you pass to register_meta?
Anyway, my meta_key is popupcondition, it does not preceded by ... your answer is valid to me? Thanks!
@abrudtkuhl, can you saw this issue? thanks!
I believe this was fixed with #64
I'm having trouble with custom fields.
I have a new post with several values in customfields list, and I call NewPost function. The post is stored at database, but custom fields are not stored at postmeta table...