Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • Hi,

    I’m trying to display the location of my RSS feed.

    Here is my RSS feed URL: https://jobs.apcinc.com/rss/rss.smpl?arg=list_posts&pp=20&pid=gwt&h=3dfda59e9291baa542c2ae7bd6b6ea60&t=1729525155&first=20&total=26&view=&featured=&order=&order_string=&sort=&proximity=&zip=&api=&contacts=&rawcats=&action=1&ids=&save=0&SAVED_SEARCH_ID=&foldstate=&order_select_mobile=26&keywords=%23civil&location-quicksearch=&location=&category=&category_combo=

    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.

    Hi,

    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,
    Aakash

    Hi,

    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!

    Hi,

    Please insert the below custom PHP snippet on your website and it should fetch the city and state.

    Best methods to Insert Custom PHP code in WordPress?

        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,
    Aakash

    You 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.

    Hi,

    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

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Display Location’ is closed to new replies.

Subscribe for updates

Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam. View newsletter