Support » Plugin: WP Job Manager » Accessing Job Listings info via API

  • Resolved tuzmusic

    (@tuzmusic)


    I’ve been hired to write a mobile app for a website that uses the WPJM plugin for its database. I’m trying to figure out how to get the info via API Request.

    I can get the listings from GET /my-site/wp/v2/job-listings/, but there isn’t much data about the listings available. Listings on the website include, among many other things, an address, a tagline, a website, etc. These are all

    Currently the API only gives the title, content, associated media, and a few other properties. Not even a reference to the author/owner of the listing.

    Is there a way to get this information via API request?

    • This topic was modified 7 months, 2 weeks ago by tuzmusic.
Viewing 5 replies - 1 through 5 (of 5 total)
  • hello dear tuzmusic

    great idea. I like this idea very much. And i am pretty sure that your idea will hit the user-interests and needs of many many Wp-job-manager users all over the planet.

    ‘Many thanks for your idea and the sharing here on this platform

    have a great day

    apolloman are you the developer of the WPJM plugin?

    I was able to expose some fields by adding define( 'WPJM_REST_API_ENABLED', true ); to my wp-config file (thanks @jenhooks!). But I’m still only getting a few of the fields. I’m getting these fields below:
    `
    fields: {
    _job_location: “1600 Pennsylvania Ave NW, Washington, DC”,
    _application: “*****@gmail.com”,
    _company_name: “”,
    _company_website: “http://www.whatever.com”,
    _company_tagline: “Awesome tagline”,
    _company_twitter: “twitter.com/123456”,
    _company_video: “”,
    _filled: false,
    _featured: false,
    _job_expires: “2019-05-11 00:00:00”,
    _job_author: “”
    },
    `

    But not some other things like price or opening hours. Also the application field shows the same email no matter which user created the post, and since the job_author field is also blank, there’s still no way to see which user a post belongs to.

    Is there a way to expose more data?

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi! The REST API for WPJM is still in beta and is not yet complete, sorry! We don’t recommend using it in a production site.

    Plugin Contributor Richard Archambault

    (@richardmtl)

    I’m marking this thread as Resolved as it’s been more than a month since the last reply. If you still need help, please do reply again and mark the thread as Unresolved!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Accessing Job Listings info via API’ is closed to new replies.