• Resolved bienimac

    (@bienimac)


    I tried outputting wpjm listing type json response from my site but it says “no route found” but job-listing works. I use mysite/wp-json/wp/v2/job-types but it doesn’t work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @bienimac,

    Please note, the REST API is not enabled by default, and is in beta, so we recommend it not be used in production.

    To enable, you’ll need to make sure define( 'WPJM_REST_API_ENABLED', true ); is in your wp-config.php file.

    Cheers.

    Hello @jenhooks,

    What’s the status on REST API support? Is the beta somewhat stable?

    I need to get access to WPJM custom posts types inside wp-calypso.

    Regards,

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hi @linusf,

    It will likely be enabled by default soon, but we still don’t have a timeline.

    It should be pretty stable. However, it was created pre-Gutenberg, so there may be things we need to change in order to be compatible. But if so, changes are likely to be minor.

    As a general rule, we’d suggest assuming that things could change.

    Please let us know if you have any other questions.

    Thread Starter bienimac

    (@bienimac)

    Hello @jenhooks

    Thank you it works and outputs job-type in json but it doesn’t go beyond 9 job-type output. I have about 12 job-types but only 9 is output in json.

    • This reply was modified 6 years, 9 months ago by bienimac.
    Thread Starter bienimac

    (@bienimac)

    Thank you @jenhooks. I have been able to resolve the issue.

    Plugin Contributor Jen H. (a11n)

    (@jenhooks)

    Hey @bienimac,

    Happy to hear it!

    Let us know when you need us. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to output json from wpjm job types’ is closed to new replies.