• Resolved afern79wp

    (@afern79wp)


    Hello, on our website, the vacancies are displayed in the detailed view. Via child theme and the script single-personioposition.php. I now need the option of displaying the content of the “office” field. Could you please tell me how I can read this value via PHP? Also the value “additionalOffices” -> “office”. Thank you very much!

Viewing 1 replies (of 1 total)
  • Plugin Author threadi

    (@threadi)

    I would recommend, as already written in your last topic, to use the objects provided by the plugin. So for the office:

    // get position as object.
    $position_obj = \PersonioIntegrationLight\PersonioIntegration\Positions::get_instance()->get_position( get_queried_object_id() );

    // get the office as array with term.
    var_dump( $position_obj->get_terms_by_field( WP_PERSONIO_INTEGRATION_TAXONOMY_OFFICE ));

    The import of additionalOffices from Personio into WordPress is only supported in the Pro plugin. These then extend the list that is output as described above.

    For other readers here: such codes as written here are only necessary if you develop an individual theme yourself by hand.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.