Created
March 17, 2021 10:56
-
-
Save remcotolsma/984ef3d6d9b80316c067c75dc2f9f2e2 to your computer and use it in GitHub Desktop.
Pronamic WordPress EasyCruit plugin display vacancy appetizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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