Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created March 17, 2021 10:56
Show Gist options
  • Save remcotolsma/984ef3d6d9b80316c067c75dc2f9f2e2 to your computer and use it in GitHub Desktop.
Save remcotolsma/984ef3d6d9b80316c067c75dc2f9f2e2 to your computer and use it in GitHub Desktop.
Pronamic WordPress EasyCruit plugin display vacancy appetizer
<?php
$vacancy_appetizer = '';
$xml_string = \simplexml_load_string( \get_post_meta( \get_the_ID(), '_easycruit_vacancy_xml', true ) );
if ( ! empty( $xml_string ) ) {
$vacancy_appetizer = \strval( $xml_string->Versions->Version->Appetizer );
}
if ( ! empty( $vacancy_appetizer ) ) {
echo \esc_html( $vacancy_appetizer );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment