Webxopt

Turn a Website into a Business

T 07 3103 3259
M +61 409 825 759
E info@webxopt.com

  • Home
  • Why Us?
  • What We Do
  • B2B Websites
  • REST API
  • Case Study
  • Consulting
  • Articles
  • Contact
    • Privacy
    • Help Page

Retrieve REST Posts for Specific Pages

October 9, 2017 by Webxopt4Webxopt

After a lot of research I have finally found a way to retrieve specific pages from a WordPress REST site using it’s JSON feed. I should note that this is not complicated at all, just frustratingly badly documented!

http://www.mysite.com/wp-json/wp/v2/pages?include=8,528

In this case the link would go to mysite.com and retrieve the pages with ID’s of 8 and 528 only. Very useful for doing something like related pages.

As I said it’s not rocket science, but it’s taken me a really long time to find this!

Filed Under: Articles Tagged With: JSON, REST, Web Development

Recent Posts

  • Replacing reCAPTCHA in Gravity Forms
  • Coronavirus Update – Work From Home Tools
  • Adding Time Dependent Content in WordPress Theme Templates
  • Tablepress CSS Column Selector
  • Analytics Content Grouping Using WordPress Categories and Not using Googles Tag Manager

Advanced Help

Enter your code in here. You will need to contact me first for a code!

Simon Griffiths in San Francisco

Webxopt was formed in 2009 by Simon Griffiths, who was at the time working as the Marketing Manager of a medium sized company in the electrical industry. Simons background includes study of both … Read More

  • Email
  • Twitter

Testimonials

"Usability optimisation increased our web enquiries 640%. Webxopt also helped us handle the processes to convert the enquiries into sales."

"Site redesign has more than doubled our enquiry rate, and we know from testing that we still have a long way to go."

"Thank you very much! Really appreciate the fast service."

"Our CEO often walks into meetings with your report under his arm."

Robina Town Centre - Webxopt

Webxopt Pty Ltd
PO Box 16
Robina Town Centre
QLD 4230, Australia

T 07 3103 3259
E info@webxopt.com
ABN: 24 624 264 951

© 2021 · Webxopt · Built on the Genesis Framework