I have 3 WordPress sites. I want to be able to add posts to one of the sites, and show some of the posts on the other two based on their categories.
E.g. site one has all posts,
site two shows posts from site one with category 'site2'
Easiest thing to do is use RSS. See FeedWordPress | simple and flexible Atom/RSS syndication for WordPress and Developer's Guide - Google AJAX Feed API - Google Code and Magpie RSS - PHP RSS Parser for different ways to implement RSS feeds as links or import posts themselves.
Related
I want to display recent 3 posts from WordPress blog to Non-Wodpress site using feed ?
I just want to make a block on my HTML in another site.
the block shows last 3 posts from my blog.
how I can do it with feed?
my site feed is :
https://asool.org/blog/feed
A good way to get data like that is to query the WP Rest API and get the desired data via JSON. For your website the rest endpoint with the latest 3 posts would be https://asool.org/blog/wp-json/wp/v2/posts?per_page=3
We have a client with two static HTML websites, each residing on separate domains. We have added a Wordpress blog to a sub directory of one of these sites and created a recent posts section to display on the main site using the code described here: Adding recent Wordpress post, with featured image and excerpts to HTML site
We are trying to create a similar recent posts section on the site that resides on a separate domain. We would like to be able to style this section in a similar fashion.
There are many RSS feed services that allow us to import latest posts to a separate domain, but they are very limited in their styling options. We are looking for a custom solution that will allow us to produce a similar look.
Thanks in advance for any help you can provide.
How can I pull the posts of one blogger(written on his wordpress blog) to my site without installing the wordpress on my site? What are requirements and limitations of doing that?
There are a couple ways to use wordpress as a CMS only, without actually using it as your site or to expose content for use on another site.
RSS feeds as noted in another answer is good for read-only access to posts. To interact with content you'll need another solution.
You can enable XML-RPC in wordpress and use a library like php xmlrpc to connect and pull post data. However, XML-RPC is limited out of the box and mostly geared towards publishing to wordpress, not pulling out stuff.
The most flexible solutions is a REST plugin for wordpress that expose your posts via restful API. Check out:
http://wordpress.org/extend/plugins/json-api/
One limitation is you'll obvioiusly not have some of the wordpress-as-a-website-building-tool plugin functionality available on the non-wordpress site.
If it's WordPress you could just use the RSS Feed to syndicate content to your site?
To grab the content you want - http://codex.wordpress.org/WordPress_Feeds
I believe that the plugin Wp RSS Multi importer should do the trick. It pulls out RSS feeds from the blog you want to syndicate into your own blog. You can get the plugin here http://wordpress.org/plugins/wp-rss-multi-importer/. The problem could be if what you want is not a feed. I for example want content that looks like this http://bake.co.ke/pg/recent+blog+posts. I don't want to syndicate feeds but the real content from another website.
I have a wordpress multisite network and it has 6 blogs who's posts I want to extract and put into 6 different pages on a separate website (this separate website is not wordpress based but it is php based). Its kind of like integrating wordpress blog into my own website but it does'nt seem to work for wordpress MU blogs. I spent all morning searching the web on how to do this but have come up with nothing. Anyone have any idea on how I can achieve this?
Thanks
Easiest way to do it is with the free FishPig extension for Magento.
http://www.magentocommerce.com/magento-connect/wordpress-integration.html
I use it on all of my sites and it's pretty easy.
You can get then get WordPress MU Integration from this extension:
http://fishpig.co.uk/wordpress-mu-integration.html
If you are extracting posts from each site, then using feed would be an obvious option to go. just post fix the /feed to each blog main url to get posts. In your own site, you will get posts in XML format, you then can parse it with php simpleXML.
Is there any way to add RSS feeds to Wordpress itself, and have Wordpress merge your posts with the ones from the RSS feed and display them as if they were posts on the blog itself?
More importantly, the external feeds must be present in the final RSS feed provided by Wordpress.
Ideally, I would like to setup a category in Wordpress, define a URL, and have that category driven by the external RSS feed.
http://feedwordpress.radgeek.com/ ? Or http://devthought.com/projects/wordpress/wp-o-matic-the-wordpress-rss-agreggator/ ?
Lots of options: FeedWordPress | simple and flexible Atom/RSS syndication for WordPress and WordPress › SimplePie Plugin for WordPress « WordPress Plugins and Developer's Guide - Google AJAX Feed API - Google Code and Magpie RSS - PHP RSS Parser
Here is a tutorial i wrote for this exact thing on one of my project : http://www.script-tutorials.com/importing-multiple-rss-feeds-using-newswidget-jquery/
Mainly its a multiple site's rss mixer/combiner. and it can be used as your idea by adding your site's rss in it as well. you can display post excerpts order by date of publishing etc.