I had a request from a client to show the latest post in their blog on the homepage of their site. What is the simplest way to show a snippet or full post from their blog in their main site?
Please refer,
http://www.corvidworks.com/articles/wordpress-content-on-other-pages
Use the wordpress blogs rss feed
http://domain/feed/
And parse it to get the latest entry
Related
I want to create and update a wordpress post from one site which would automatically post to another wordpress site. I've tried playing around with the REST API in wordpres 4.7+ but I keep getting the following message
{"code":"rest_cannot_create","message":"Sorry, you are not allowed to create posts as this user.","data":{"status":401}}
Any thoughts on how I can tackle this?
Thanks
I can create a post from localhost into live wordpress blog with basic authentication. So I think you can post remotely a wordpress blog from another wordpress website. I use php file_get_contents and cURL , both are working.
You may try this method bellow
http://www.wpsaga.info/wp-rest-api-create-post-with-php-curl/
I want to display a list of post from a non wordpress website to my wordpress website using RSS. I want to show a thumbnail, short desc, link, title and style them.
I tried with "feedwordpress" plugins, but still cant find the exact solution. Please do help me.
You should be able to do this in your template via the fetch_feed function (powered by SimplePie):
http://codex.wordpress.org/Function_Reference/fetch_feed
I want to access and display posts/categories/tags of my one wordpress site to another wordpress site. So how can I do this? Can some one tell me this?
You have to use RSS feed
http://codex.wordpress.org/WordPress_Feeds
You can parse RSS as an XML file using PHP
A RSS reader http://apptools.com/phptools/xml/rss.php
If you have set up wordpress multisite
then you can do it by using switch_to_blog() function.
Another option is to use data scraper plugin, through this you can display data of one page/post on another wordpress site all based on div id
http://wordpress.org/plugins/wp-web-scraper/
how to display all latest posts from multiblogs in wordpress home page .It have only one config file, i have sone multiblog using network
You could use get_last_updated and inside of each blog, use get_blog_post.
Codex:
http://codex.wordpress.org/WPMU_Functions/get_last_updated
http://codex.wordpress.org/WPMU_Functions/get_blog_post
http://codex.wordpress.org/Category:WPMU
I thik this is what you are looking for
http://wordpress.org/extend/plugins/wordpress-mu-sitewide-tags/
I'm looking for a tutorial on how to embed Wordpress into a webpage e.g a php page. I found one such tutorial about a year ago. I remember it split the pages into parts making the main require the rest, one of the requires was the blog posts on the wordpress. I'm looking for this tutorial or something similar. Basically I just want all of my blog updates appearing on a php file.
Thanks.
See http://codex.wordpress.org/Integrating_WordPress_with_Your_Website
Just grab the rss feed from your blog and parse it. That should be simple enough.
I found a way to display my latest blog posts on my website's home page using SimplePie. My blog is built on WordPress but my home page is coded by hand, so it took me some time to figure out a way to do it. I wrote a blog post about it if you care to check it out. Displaying WordPress posts on a separate web page. Hope it helps, let me know if you have any questions!