-
AuthorPosts
-
October 21, 2024 at 9:48 pm #15191Alliance of Professionals & Consultants, IncParticipant
Hi,
I’m trying to display the location of my RSS feed.
Here is the URL that has Super RSS Reader widget on it: https://www.apcinc.com/hiring-engineering-professionals/
As you can see it does not display the location. Is there a way I can have the location displayed. I’m using your free version of the reader. I would dbuy the PRO version if it would show location.
October 22, 2024 at 12:29 am #15192Aakash ChakravarthyKeymasterHi,
Thanks for using Super RSS Reader plugin.
I see that the RSS feed has custom fields and the location is present in those fields like below.
<title> <![CDATA[ Civil Project Engineer / Project Manager (Mid Level) ]]> </title> <link> <![CDATA[ https://jobs.apcinc.com/jb/Civil-Project-Engineer-Project-Manager-Mid-Level-Jobs-in-St-Charles-MO/11797484 ]]> </link> <description> <![CDATA[ <span><span><strong><span>Job Title: </span></strong><span>Civil Project Engineer / Project Manager (Mid... ]]> </description> <guid isPermaLink="false"> <![CDATA[ https://jobs.apcinc.com/jb/Civil-Project-Engineer-Project-Manager-Mid-Level-Jobs-in-St-Charles-MO/11797484 ]]> </guid> <pubDate>Thu, 15 Aug 2024 00:00:00 EDT</pubDate> <job:referencenumber> <![CDATA[ 11797484 ]]> </job:referencenumber> <job:city> <![CDATA[ St. Charles ]]> </job:city> <job:state> <![CDATA[ MO ]]> </job:state> <job:country> <![CDATA[ US ]]> </job:country> <job:postalcode> <![CDATA[ 63301 ]]> </job:postalcode> <job:jobtype> <![CDATA[ Perm Placement ]]> </job:jobtype> <job:category> <![CDATA[ Engineering ]]> </job:category> <job:payrate> <![CDATA[ 130,000 ]]> </job:payrate> <job:requirements> <![CDATA[ ]]> </job:requirements> <job:additionalinfo> <![CDATA[ ]]> </job:additionalinfo> <job:customfilter1> <![CDATA[ ]]> </job:customfilter1> <job:customfilter2> <![CDATA[ 0 ]]> </job:customfilter2> <job:customfilter3> <![CDATA[ Hybrid ]]> </job:customfilter3> <job:repfirstname> <![CDATA[ Kori ]]> </job:repfirstname> <job:replastname> <![CDATA[ Losack ]]> </job:replastname>
Can you please let me know which information you need to pick and display?
Thanks,
AakashOctober 22, 2024 at 1:38 am #15193Alliance of Professionals & Consultants, IncParticipantHi,
Thank you so much for the quick response.
The info I need from that feed to pull through is the City and State.
<job:city>
<![CDATA[ St. Charles ]]>
</job:city>
<job:state>
<![CDATA[ MO ]]>
</job:state>Thank you!
October 22, 2024 at 7:37 pm #15200Aakash ChakravarthyKeymasterHi,
Please insert the below custom PHP snippet on your website and it should fetch the city and state.
add_filter( 'srr_mod_item_html', 'srr_job_location', 10, 3 ); function srr_job_location( $html, $feed_url, $feed_item ){ $city_tags = $feed_item->get_item_tags('http://haleymarketing.com/rss/2.0/modules/job/', 'city'); $city = !empty($city_tags) ? $city_tags[0]['data'] : ''; // Get the job state (in the job:state namespace), check if the tag exists $state_tags = $feed_item->get_item_tags('http://haleymarketing.com/rss/2.0/modules/job/', 'state'); $state = !empty($state_tags) ? $state_tags[0]['data'] : ''; $html[ 'after' ] = $html[ 'after' ] . '<p>' . $city . ', ' . $state . '</p>'; return $html; }
Thanks,
AakashOctober 22, 2024 at 7:46 pm #15201Alliance of Professionals & Consultants, IncParticipantYou are a genius, that worked perfectly! Thank you so much for the quick response and for your awesome plugins. Will be recommending them to all my colleagues.
October 22, 2024 at 11:31 pm #15202Aakash ChakravarthyKeymasterHi,
Glad it helped. Please do rate, review and share the plugin. It helps the plugin a lot!
https://wordpress.org/support/plugin/super-rss-reader/reviews/?filter=5
Thanks,
Aakash -
AuthorPosts
- The topic ‘Display Location’ is closed to new replies.