Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Josh Pollock

    (@shelob9)

    You should never add custom code to the plugin itself, as it will be lost on update. Instead create your own plugin for your custom code, since it is not presentational and doesn’t belong in a theme. You could add it to functions.php, but then when you change themes, you loose the custom code.

    Thread Starter loiclejour

    (@ataxel)

    I still don’t get it to work ;(

    Plugin Author Josh Pollock

    (@shelob9)

    Is “atelier” the name of the field?

    Thread Starter loiclejour

    (@ataxel)

    Hi and thank you, nope,
    the Post Type is atelier (workshop)
    and the field is cout (cost)

    Plugin Author Josh Pollock

    (@shelob9)

    Well then you’re conditional is not correct. You would want if( 'cout' == $field[ 'slug' ] ) {

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘autopopulate field’ is closed to new replies.