Jon Imms
asked on
PHP strip characters.
Hello,
I need help modifying my WordPress XML feed. Currently, I am using the WP Job Manager plugin, and have a custom rss feed for a client.
For one of the fields, they require only the city, but it outputs as city, state, country. see below.
<cityHiring>
<![CDATA[ Wheatland, WY, United States ]]>
</cityHiring>
Changed to this:
<cityHiring>
<![CDATA[ Wheatland ]]>
</cityHiring>
So basically i need everything after and including the first, to be removed.
In the theme code, the field has this PHP
I need help modifying my WordPress XML feed. Currently, I am using the WP Job Manager plugin, and have a custom rss feed for a client.
For one of the fields, they require only the city, but it outputs as city, state, country. see below.
<cityHiring>
<![CDATA[ Wheatland, WY, United States ]]>
</cityHiring>
Changed to this:
<cityHiring>
<![CDATA[ Wheatland ]]>
</cityHiring>
So basically i need everything after and including the first, to be removed.
In the theme code, the field has this PHP
echo $the_job_location;
?>
</city>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.