Embed wordpress content into external site

I would like to embed wordpress posts list (filtered of course) into an external site using javascript (not iframes)
Is this possible - either a plug in or custom code?
roblickleyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Brandon DubeDirector of ITCommented:
I have used https://feed43.com/ for this in the past. you can use any repeating region and create an RSS feed to your own site from it.
0
roblickleyAuthor Commented:
Thanks but not quite what I am looking for I dont think.

In the past I have managed to incorporate wordpress posts in an asp site using some custom code I wrote - but this does rely on the wordpress being on the same domain and server as the destination. So main site in the root and wordpress in a /news/ directory.

In this instance I have my wordpress hosted on the blog. domain and the shopify site on the www. version. on separate servers thus.

Ideally I want some kind of javascript to pull article clips into product pages depending on metafields I assign to products.

anyone have an idea if this is even possible?
0
leakim971PluritechnicianCommented:
anyone have an idea if this is even possible?

I did this many years ago using web service, you just need to call your web service from the shopify site using an URL like BUT using PHP backend cause Javascript don't allow cross domain ajax call until you allow it (https://developer.mozilla.org/fr/docs/HTTP/Headers/Access-Control-Allow-Origin)

the web services endpoint should look like :
http://blog.mydomain.com/wp-json/wp/v2/posts?filter[meta_key]=MY-KEY&filter[meta_value]=MY-VALUE
http://blog.mydomain.com/wp-json/wp/v2/posts/?filter[category_name]=uncategorized

more info here : http://v2.wp-api.org/
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
roblickleyAuthor Commented:
Thanks - that looks more like it - will investigate.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
JavaScript

From novice to tech pro — start learning today.