Home Forums Backend Issues (wp-admin) Make field editable in posts column


Make field editable in posts column

  • Hi
    I have added one of my fields to the posts page column. Example in this post:

    The field type is true_false and it would be great if the user could be able to check/uncheck directly in the column or have the checkbox displayed when doing an bulk edit posts.

    Is this possible to do? If yes could you please share code or point me in the right direction?

  • Hi @torbjorn_s

    Yes, this would be an excelent feature and is possible.

    Instead of outputing the value into the column, you need to create a checkbox input and use the value to set it’s checked attribute.

    Then, when you check it, you need to run some jQuery code to send an AJAX request to a custom PHP function which would accept the post_id and then update the value!

    Good luck

  • Thanks for the reply. Now i know how to approach this. I think that this takes a bit of coding and the project in question dosent have that budget ;-(.
    Maybe i will look in to it some time in the future…

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘Make field editable in posts column’ is closed to new replies.