Wordpress API without installation - wordpress

I am trying to use the wordpress API to retrieve recent blog posts from a wordpress blog, and display them on a non-wordpress site.
I have read a bunch of tutorials and the documentation on implementing the API, all of which state that you must install wordpress on your server in order to use the API.
Is this definitely the only use case? Is there an implementation I can use which does not require us to install wordpress on the server?
All I want to do is retrieve recent posts and display them in a list which will link out to the actual wordpress blog.

The folks commenting are confused by your statement, because they all assume (as highly technical individuals do), you're referring to a self-hosted WordPress.
No. You do NOT have to have a WordPress install to use the WordPress**.COM** API.
Example:
https://public-api.wordpress.com/wp/v2
Documentation:
https://developer.wordpress.com/docs/api/
Good luck!

Related

Get recent wordpress posts in Laravel

I have a Wordpress site and a Laravel site and I want to display recent wordpress posts in the footer of Laravel site. How can I do this without having my wordpress database information in my config/database.php file and using it in the models? Can I get them using RSS?
Recent WordPress was released with a huge thing called REST API – earlier it was possible only with external plugins. So now we can query WordPress database from external projects. Including Laravel.
set up a local WordPress website, and after installation you got that usual dashboard.
we can already make API calls after installation. No need to configure anything, we just launch the URL in the browser:
we’ve received a JSON with a list of posts – by default, WordPress creates one dummy post.
Basically, URL structure for the API calls is simple:
/wp-json/wp/v2/[endpoint]?[parameters]
Yes, you’ve read it right, we can get posts, categories, tags and other things that are publicly available, so we don’t need any authentication here.
And we also can filter the data with GET parameters, like this:
/wp-json/wp/v2/posts?per_page=2&orderby=title
For more details open link:- Using WordPress REST API in Laravel
You can get the posts by calling an API endpoint:
yoursiteurl/wp-json/wp/v2/posts
It will return all the posts in a json format. You can also see the reference from here.

WordPress plugin/theme suggestion

I am looking for a WordPress plugin/theme that offers similar functionality to this website: https://secure.heathrow.com
The search would essentially be the same, leading through to a few options which you can then book/purchase via a payment merchant.
I have ploughed through wordpress.org plugins section, and had no joy.
If anyone can recommend or know of anything similar, as has any type of solution I would be most grateful! :)
Thanks
You will not find a specific WordPress plugin tailored to that type of search and purchase function. If you look at the source code for that site (in Chrome, View -> Developer -> View Source), you will see that the main script that is running the search is an .asp script (Microsoft product). This is likely a custom built site.
There are some plugins that will help you with e-commerce on the WordPress platform such as WooCommerce, Shopify, WP Ecommerce, etc, all of which do charge fees for the services provided in the plugin. Many people who run e-commerce sites often find developers to work with them to build something more custom than these platform plugins can provide.
Instead, look for a search function plugin in WordPress to go through your database, then evaluate the e-commerce platform plugins for a functional match. A good rule of thumb in WordPress is that if you can't find an exact plugin for what you want, try to break the pieces down into components and search for a plugin for each of the components.

How do I access the latest blog posts?

I've word-press blog installed on my Godaddy's Domain.
www.mysite.com/blog
I want to get the latest posts of my blog using C#/ASP.Net code, how can I do this?
WordPress provides an XML-RPC API that includes getPosts and similar function. You can find a couple of pre-built clients for it on NuGet; I haven't tried either to recommend them but from the GitHub readme the first one looks more complete:
POSSIBLE.WordPress.XmlRpcClient (NuGet)
WordPress XML-RPC Client for .NET (NuGet)
Also if you've got the Jetpack plugin installed on your site then that adds a JSON API. I can't recommend one sorry but again there'll be OAuth2 and REST API clients on NuGet.
Ok guys; basically i required my latest blogs post , so what i used
http://p3k.org/rss/
p3k.org/ takes the path of my blog feed and returns me latest post.
I simply embed in my project using the generated script . So i don't need to get info ASP.net code .
Cheers!
As per my view and research, you can access wordpress DB in asp.net c# by using MySqlConnection.
Please visit following link for more information about MySQL Connection.
http://www.codeproject.com/Tips/355977/Csharp-ASP-NET-MySQL-Connection-Tutorial-with-MySQ

What is the use of Wordpress APIs?

I saw in wordpress some APIs being published for developers. What could a developer gain by using those APIs?
I think you've taken API to mean something similar to what Flickr and Vimeo do, which they are not. They are simply ways for you to access and ammend core functionality of the Wordpress platform, so as to bend it to do what ever it is you need it to do.
There are ways to pull data from your blog to a mobile devise, but that is a very different question.
Wordpress API are for those that want to develop a theme, or writing custom plugins for Wordpress.
Either way, you can use to integrate Wordpress in your exisiting php site, using the powerful backend as an administration tool and the using the API to retrieve the content and present it in your (already) website.
http://codex.wordpress.org/Integrating_WordPress_with_Your_Website

Does Wp-Ecommerce works with LinkPoint gateway?

I have an online store working with osCommerce, actually works fine. But there is no integration with the store blog which is in Wordpress fortunatelly.
Now I've seen a new payment plugin for wordpress called Wp-Ecommerce , so i decided to migrate the whole store to wordpress since this can be treated like a CMS.
This plugin has really handy features like Meta Tag properties for each product in order to do SEO position for the store.
I've been reading about wp-ecommerce and searching through the web to find a chance to integrate it with LinkPoint, which is my client's store gateway. I must say this is an imperative requirement I have to do in order to migrate the whole site to Wordpress
Has anybody make this possible ? get wordpress working with LinkPoint ?
Looks like it currently only supports Authorize.Net. You may want to check out Shopp. The Linkpoint plug-in is not free but it is available.

Resources