• Would like to set a field item condition when displaying. Would this be possible? If so, please keep the explanation simple for me 😉

    THX

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    I understand you would like to add the “condition” field to the [adverts_add] form?

    If so then you can do that either using Custom Fields extension https://wpadverts.com/extensions/custom-fields/ or if you are familiar with PHP programming using the Forms API https://wpadverts.com/documentation/custom-fields/

    Thread Starter thomas110

    (@thomas110)

    Hi, how can i put the Code in the php without the checkbox?

    Thread Starter thomas110

    (@thomas110)

    And where i find this

    “choose categorie”

    In the php?

    Plugin Author Greg Winiarski

    (@gwin)

    Hi,
    i am not sure what do you mean by “put the Code in the php without the checkbox” nor by “And where i find this “choose categorie” In the php?”, can you elaborate?

    Thread Starter thomas110

    (@thomas110)

    When I insert the code in PHP there is a user-defined field, but also this checkbox.

    the custom fields would suffice for me.

    However, I had already tested the code and no matter what I selected it was not shown in the classified ad preview.

    Plugin Author Greg Winiarski

    (@gwin)

    Note that the first snippet here https://wpadverts.com/documentation/custom-fields/ only adds a field to the form and saves it in the database.

    To have the saved value displayed on the Ad details pages you will also need to go to the “Displaying on Ad Details Page” section and use the code there, as it is responsible for displaying the field on Ad details pages.

    If you have the Custom Fields extension then you can configure if you want the field displayed on Ad details page while adding the field to [adverts_add] form.

    One last note, if you have the Custom Fields extension installed i would recommend adding the custom fields using the extension and not using the API as you will have more control over the form.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘field item condition’ is closed to new replies.