Getting a JSON api feed into Wordpress - how?
Getting a JSON api feed into Wordpress - how?
Author
Discussion

8-P

Original Poster:

3,047 posts

277 months

Wednesday 14th April 2021
quotequote all
Hi All

Im just finishing off a Wordpress site and the customer has decided they want a JSON feed displayed on the site.

It's this https://virtualyard.com/api/

I have spent hours trying to figure it out, Im not a coder, but a friend who is was also a little bit lost although given some hours I suspect he would crack it.

Can anyone assist please? There is a demo api key - https://virtualyard.com/api/

I just have no idea how to get this url to spit out a nice selection of cars.

There is no working WP plugin although can find one, VY tell me its redundant frown

https://dealers.virtualyard.com.au/api/v2/get.php?...


khushy

3,967 posts

236 months

Wednesday 14th April 2021
quotequote all
Better off in the computery section - this is business :-)

wheelerc

228 posts

159 months

Wednesday 14th April 2021
quotequote all
You'll need a reasonably competent PHP developer to create a WP plugin for you or update the existing one to work (depending on licensing etc etc). About 10-20 hours work at a guess.

vaguelyfamiliar

64 posts

162 months

Wednesday 14th April 2021
quotequote all
should be possible if you are handy with some basic JQuery. If you are not code-minded, One option I have used in the past to keep product listings up to date between a shopify store and a WooCommerce version was to use a (paid) plug-in called WP-AllImport. It can pick up the feed - either as a one-off or as a scheduled task. One thing to note though, as the name suggests, it is an import tool so creates either posts or products

jammy-git

29,778 posts

229 months

Thursday 15th April 2021
quotequote all
I wouldn't do this using jQuery or JavaScript. As a client side language it would mean needing to have some authentication details in code visible to anyone with the knowledge of how to look.

But as already said, there are quite a few plugins already available that can take a feed and use it to import records.

ecs

1,373 posts

187 months

Thursday 15th April 2021
quotequote all
This is the sort of work I do on a day-to-day basis - if you're struggling and want someone to set it up then drop me a message smile

Akiraprise

271 posts

205 months

Friday 16th April 2021
quotequote all
I've built a few Wordpress plugins that can import details from an API and add it to a custom post type, these can then be used by Wordpress to display the details etc.

These are usually custom built depending on requirements but would be happy to have a chat to see if I can adapt one to fit your needs or build one that would be suitable.

8-P

Original Poster:

3,047 posts

277 months

Thursday 29th April 2021
quotequote all
Thanks for eveyones input.

One of the guys I work with has written a plugin for Elementor, this makes it super easy for muppets like me to make it work. I suspect he will probably try and sell it back to Virtual Yard. Thanks again everyone.