[Plugin: Front-end Editor]How to add something after the custom field changed? (2 posts)

  1. manboo
    Posted 5 years ago #


    I use this great to plugin to let others can change a certain custom field.

    For example, a post contains field1, field2, field3

    editable_post_meta( get_the_ID(), field1, 'input' );

    When the field1 is changed, I want to calculate the average of these 3 fields and add this field automatically to a new field named aver_field.

    Can you tell where to add this process script?

    Thanks a lot!

  2. snails07
    Posted 4 years ago #

    I'd also be interested in doing something similar to this.

    Or instead of adding a new custom field after a field is changed, would it be possible to change a custom field on the rest of the posts within the same loop.

    For example there are 5 posts being displayed, each of the posts has a custom field called 'selected' that the admin (or whoever) can change on any one of the posts. So they would select this field on the post that they chose and change this selected field to 'Yes', which would then change this field on the rest of the posts to 'No'.
    Would something like this be possible?

Topic Closed

This topic has been closed to new replies.

About this Topic