Results 1 to 1 of 1

Thread: Indeed query in theme_indeed.php

  1. #1
    Thread Starter
    Rookie ncarrev's Avatar
    Join Date
    Apr 2011
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Indeed query in theme_indeed.php

    I'm looking to edit the indeed query and just put my query directly into the theme-indeed.php file. I'm a sys admin, but I'm def no programmer. Any help would be appreciated!

    Here's the standard file variables:

    Code:
    $keyword = urlencode(strtolower(trim($query[0])));
    	        $limit = $query[1];
    		$country = $query[2];
    		$job_type = $query[3];
    		$job_cat = $query[4];
    Here's what I believe would be the correct spot to edit the actual indeed query:


    Code:
    $indeed_result = wp_remote_get('http://api.indeed.com/ads/apisearch?v='.INDEED_VERSION.'&publisher='.trim($jr_indeed_publisher_id).'&sort='.INDEED_SORT.'&limit='.$limit.'&co='.$country.'&jt='.$job_type.'&q='.$keyword);

    I was thinking that I could edit the keyword variable definition as it's the "q=" in the indeed API...to include the indeed items I want, but it doesn't work. I found did an advanced search on indeed's site, and extracted the "q=" string, and put it for keyword, but it doesn't work"

    For example:

    Code:
     $keyword = ('clinical%2C+-therapy%2C');

    But no worky. Any idea what I'm doing wrong?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Another membership package query
    By f1ngers in forum Report ClassiPress Bugs
    Replies: 7
    Last Post: August 22nd, 2011, 06:48 PM
  2. need SQL query for pruning old ads
    By muhabat in forum Report ClassiPress Bugs
    Replies: 5
    Last Post: August 8th, 2011, 07:23 AM
  3. Search query
    By mario174 in forum JobRoller General Discussion
    Replies: 7
    Last Post: June 23rd, 2011, 11:44 PM
  4. [SOLVED] Featured ads query
    By lausha in forum ClassiPress General Discussion
    Replies: 2
    Last Post: February 28th, 2011, 05:10 AM