I have a website in drupal 7. How to place wordpress blog feed inside a block in drupal 7. website is in drupal domain and blog is in wordpress domain.
Currently I have both a Drupal and a WordPress site. Is there a module that can display the latest posts from my WordPress site in drupal block?
Several way available :
1 - Create a flux (rss , xml) and aggregate it with Feeds module or custom module (recommanded)
2 - Create service on wordpress to provide information to drupal. Custom module needed (a lot of development but handled easy)
3 - Create a listing page on wordpress and use it on drupal with an iframe (but it's not a safe way)
For all these way , you have to create a block displayed on homepage (custom module or via administration)
You can transfer just raw data (i.e JSON array) and then build html out of it on Drupal side. Or you can create full HTML from WP site, save a file somewhere where Drupal can access it and move file to Drupal site. In both cases do the transfer periodically, time to time (within a cron call) - don't do it for every usage (page view on Drupal side).
Related
I need to know if there is some module or something like that in Hybris to create a blog or I need to create a wordpress in subdomain(Bad idea because the web actually is a subdomain xd)?
Unfortunately there is no OOTB Hybris Blog Engine. Utilizing only OOTB you can build a blog using Content Pages. So for example you can create a content page which will represent a particular blog article, also you can create a new component which can fetch all Blog Content Pages and display them in the chronological order.
Based on my experience building a custom blog platform on the top of Hybris is not the best idea. So usually clients are implementing Blog using a wordpress as a blog engine. The integration between hybris and wordpress is usually done through Wordpress REST API. Articles can be fetched from the wordpress instance and displayed on hybris site without having a separate subdomain.
We want to use the Wordpress Rest-API to build a page decoupled from the backend. A few things still bother us though:
Within the wordpress backend one can add links in the content editor of a page or a post and one gets normally a list of all existing pages and posts of the same page to link to them. By decoupling the backend it does not know the exact urls to other pages and we need to provide this. Is there a possibility to tell wordpress what links are available?
Thanks in advance.
Cheers
For those looking for the answer:
There are two URL settings under Settings > General.
WordPress Address (URL) should be the URL for your api site. Like api.whatever.com.
Site Address (URL) should be the URL for the frontend. Like www.whatever.com.
This allows the internal linking to work properly in the Editor while keeping the backend site on a separate URL from a headless frontend.
I'm not sure what you're trying to ask. The WordPress REST API just provides a way to access posts, etc. from somewhere else part from the web site side (e.g. themes, etc). Pages would still be accessible from the admin backend and the JSON/REST API: https://developer.wordpress.org/rest-api/reference/pages/
Specifically with WordPress you could ensure that you're not rewriting the permalinks. That way they are all still site.com/?p=post-id
That way it's easy to parse fetch the new pages. Then replace the hrefs with whatever your frontend needs.
You could use the ID to fetch the slug of the new post immediately.
Or you could even keep a mapping in your presentation layer of IDs to your own slugs.
Changing the site_url doesn't work for me.
Since I also have a wordpress theme with custom rest controllers
Plus the wp-json breaks if I change the site url
My backend is hosted at digital ocean app
My frontend is hosted at vercel
I fixed it by using a wordpress plugin called make-paths-relative
But since my backend doesnt know where my frontend is I added one change within the plugin at:
frontend/class-make-paths-relative.php line 123
I added a constant FRONTEND_URL which i define in the wp-config
$relative_link = FRONTEND_URL.$link;
This changes both the permalink within my backend of a post, page or cpt
And changes internal links as wel, links within the content editor
I made a request to the plugin author as well
I am a newbie to eCommerce, and in process of developing a website for my upcoming eCommerce store from scratch.
I have been working with WordPress "Albar " theme. After researching I found Magento to go ahead with my store.
I have installed Magento through Hostgator ( Hosting service), I am somewhat familiar with adding products , but not able to get a solution to display the products to my website , ie; on WordPress theme.
How to link the store to website ? I have come across WordPress Integration plugins , but still couldn't find a solution.
By default there are some pages appearing in the Magento > CMS > Pages and in preview it opens with the link after my domain name.
Kindly help me out with this problem.
Regards ,
JD
You have to write extension for Magento that adds new controller which return json with products. In Wordpress create ajax request that reads this json and displays products.
We currently have a web site/app and then also use wordpress for our blog.
Wordpress is great and its cms is great.
I have used wordpress in the past to create an RSS feed that we use on the web site.
My question is:
Is is possible to use wordpress as a CMS and create a feed from that content that is not publish on the blog/wordpress install?
I want to use wordpress's cms, so that i do not have to create my own cms.
However, the content we put in this RSS feed cannot show up on the blog/wordpress site.
Is this possible? I know we are using a plugin to create these RSS feeds. I am not an expert in wordpress, but i believe this is possible.
I also want to use wordpress's category/tags/taxonomy to create feeds based on these values
Once again i want to leverage wordpress's cms to create a hidden feed and publish using RSS. I then want to connect to this feed using different clients.
All data entered into the cms with a certain tag will be hidden/not shown on the blog, but will be available via this RSS feed
Thanks
We have a website on Drupal 7 and a separate blog running on Wordpress. Im curious if it's possible to create a block that will show headers from the blog and will link to blog entries. Moreover, it should automatically update itself once new blog entry is added.
Please advise if this functionality is achievable.
I am sure that your Wordpress blog can provide one or more RSS feeds of its content. In the Drupal site you can activate the Aggregator module (it's in core) and extract content from those feeds. There is also a bunch of other contrib modules that extend (or replace) that functionaliity.