Magento - Integrating Wordpress into Magento for the homepage - wordpress

I currently have a Magento store where I'm using a CMS page as the homepage. I want to integrate my wordpress blog (hosted on the same server) into this CMS page. It would show the latest blog post and preferably have the comment function available on the front page. The first thing I considered was using the Wordpress Loop on the Magento CMS page, but it doesn't seem like it allows PHP.
One other thought I had was to create the homepage using modules or blocks. To be honest, I've never created a module or block so I'm not all that familiar with what is involved. The CMS page that I had created is simply an image slider/carousel (nivo-slider) and some photos with links. None of the content actually needs to be done with CMS, it just needs to be presented within my Magento theme/framework. All homepage updates will be handled by myself, so I can bypass the CMS system all together and just update modules if it turns out that the modules solution will allow me to have both the Wordpress blog and nivo-slider on the same page.
Any thoughts?

One thing you can try is setting wordpress as the main site and style it to match your magento styling. Then the visitor will have a streamlined experience from a UI standpoint. One gotcha would be if you want comments open on Wordpress then you'd have 2 accounts you'd have to reconcile for wordpress and magento.

I found the solution at Part 2 of the following link:
http://addoa.com/blog/easy-wordpress-and-magento-integration
Here's a quick summary of the steps (for a full explanation, click the link above):
1) Create a bare-bones WordPress theme file that skips all of the styles, header, and footer and just displays content.
2) Create a page in WordPress that uses your new bare-bones template.
3) Create a template file in Magento to embed your newly created WordPress page into a Magento page.
4) Place the block based on your new template on the Magento CMS page you want the blog content to display on

The FishPig extension now supports this functionality so you achieve this by following these steps:
Upgrade to the latest version of FishPig's WordPress Integration
Login to your Magento Admin and go to WordPress > Settings Blog / Plugins
Find the Layout option and set 'Blog as Magento Homepage' to Yes
Save the page and voila, you have it: WordPress as your Magento homepage using your Magento theme in under 2 minutes

You will be wanting the Fishpig integration:
http://www.magentocommerce.com/magento-connect/fishpig/extension/3958/fishpig_wordpress_integration
Not only is it free, it is also actively maintained.
You can also do an Apache redirect for the root/home page to a wordpress page of your choosing. In that way you don't have to have the problem of adding something to the Magento homepage and maybe have something fancy in Wordpress.

hopefully i've understood your question!
the following article may be of help to you (it outlines how to use the fishpig extension and to pull out the latest posts as part of a magento block on your homepage):
adding recent posts to magento homepage

You can also use blog extension of magento.
You can get it free form magento site http://www.magentocommerce.com/magento-connect/aheadWorks/extension/1516/blog-extension-by-aheadworks
Thanks

Related

Wordpress - Migrate Theme In New Wordpress

I wondering how to migrate custom theme from another wordpress to another without copying the whole wordpress...
I already tried copy the folder theme to new wordpress, but it has a lot of problem, because in the new wordpress, there is no Page as in origin wordpress.
Create some pages and see if it works.
Some themes uses plugins also, you must copy them too.
By the way, there's a dedicated stackexchange site for wordpress : https://wordpress.stackexchange.com/
You can never expect the 100% same experience on another install since there may not be the same plugins, pages, images, server settings and so on and so on. You can not even be sure your theme work on the new wordpress if the WP version is diffrent from the one you made the theme on.

How to implement wordpress blog and magento blog parallely

I have a single instance of Magento running. I am using wordpress blog in magento and want to use magento "Blog" parallely. When i use both blogs magento blog overrides wordpress blog section. Can anyone tell me how we can solve this problem.
You can see the link http://dev.dynatrac.org/ where i want to use this section.
Thanks
Instead of using URL http://dev.dynatrac.org/index.php/blog.html, you can use http://dev.dynatrac.org/blog/ and put the wordpress installation in the blog directory of your magento root.
Now using .htaccess or nginx conf (depending upon whether you use apache or nginx) you can redirect the URLs in the form of http://dev.dynatrac.org/blog/something_something.html to blog/ directory.
Unfortunately, the AW_Blog extension uses 'blog' as it's router frontName. This overrides the Magento WordPress Integration extension, making the 2 incompatible. In an ideal world, AheadWorks would modify their extension to use a different router frontName (eg. aw_blog) and then would display the blog using a dynamic route (in the same way that Magento WordPress Integration does), thus allowing both extensions to function at the same time.
My advice would be to remove AW_Blog and instead, make use of the Custom Post Types add-on and Root.
The Custom Post Types add-on allows you to create custom post types in WordPress and display them on your Magento integrated blog. As an example, lets say you display your standard blog posts at /blog/ but wanted to create a different type of posts (eg. News articles). You could setup a custom post type called 'news'. By default, this would display all of your news posts at /blog/news/. To improve this, you could install Root, which would remove the /blog/ from the URL, meaning your news articles would be available at /news/.
This method allows you to create what appears to be multiple different blogs but is actually a single WordPress blog that makes use of different custom post types. This method will allow you to have as many different post types as you require.
EG.
http://www.yourmagento.com/blog/
http://www.yourmagento.com/news/
http://www.yourmagento.com/recipes/
http://www.yourmagento.com/tutorials/
All of these would be powered from 1 WordPress installation and integrated into Magento.

FishPig WordPress Magento Integration get Category posts on page

I am using the FishPig extension to integrate WordPress to Magento website. All is working fine, except that I cannot make the WordPress plugins to work.
Is this possible to run WordPress plugins in Magento through the above mentioned extension?
If not how can I show the posts of specific category on the page with all the options of WordPress like excerpt etc?
When integrated into Magento, the WordPress code is not loaded. Instead, data is retrieved directly from the WordPress database and displayed via Magento models, blocks, controllers etc. This means that any plugin installed in WordPress that usually runs on the front end of your blog will be not loaded when displaying the blog on the frontend, which means that any shortcodes or widgets offered by this plugin will not work.
To get these plugins to work, an extra Magento extension is required to add support for it. As there are thousands of WordPress plugins, it is not possible for me to add support for all of them. I have therefore tried to add support to the more popular plugins as part of the free extension and the more difficult plugins, via add-on Magento WordPress extensions.
That being said, the Category Posts plugin for WordPress is supported by the extension and should work without any add-on extensions.
I recommend upgrading Magento WordPress Integration to the latest version, ensuring that you have the Twenty Twelve theme installed and you are using the correct Category Posts plugin for WordPress.

how do i move a wordpress blog to a wordpress site with a blog

Client had a flat file php site and wanted a blog, so I installed wordpress stand along blog. Now they want to convert then entire site to Wordpress. The current blog is in a subdirectory called "blog". I would like to create a blog page called "blog" on the new site and import the posts that are in the WP standalone blog installation.
Can I just take the SQL statements and insert them as autoincrements in the new database. How do I import the tags and categories. What about the author number? It will be painstaking, but I don't want to cut and paste a hundred blog posts.
Install WordPress in root http://codex.wordpress.org/Installing_WordPress .
Create a page called Blog with the slug of /blog/. Set that as your posts page in Dashboard>>Settings>>Reading.
Export your posts,categories, authors and images from the current blog via http://codex.wordpress.org/Tools_Export_Screen and then import them http://codex.wordpress.org/Importing_Content into the new WP site. You should be able to keep the same structure to your permalinks.
Then, if needed, create static pages to match the current php pages and cut/paste the content into them.
Why wouldn't you just make the primary site URL point to the blog site? Or take a full backup of the blog site and restore it on the main server in doc root? Then add your pages content right in the current blogging site? You can point both www.whateversite.com/blog/ to the posts (blog page) or even blog.whateversite.com to the same.
Seems like a LOT of extra work to setup a new WordPress install then go to a current WordPress install and export the blog posts then re-import just the blog posts.
If you absolutely have a great reason for not just using the current WordPress install and building on that then I suggest you spend the $15 and get VaultPress from the Automattic group and backup the blog site. Then use the restore to alternate URL feature to clone it to a brand new WordPress installation you've started at the new main site. It will restore the content and replace inline URLs for you which is a HUGE time saver.
I've moved / cloned multiple sites this way. It is by far the easiest method, especially if your in-blog URLs need to change from blog.blah.com to www.blah.com.

using wordpress plugins in magento possible?

I just had a little doubt..
can i use wordpress inside Magento CMS..... I mean can I able to install wordpress plugins in magento... The reason iam asking about Magento because, Iam gonna use magento templates and besides I also need to use wordpress plugins in it.. I need BOTH..
So, is this possible..?
While my research, I found some links, BUT still iam not clear on this..
here are some links I found:
http://wordpress.org/extend/plugins/magento-wordpress-integration/
https://www.x.com/devzone/articles/magento-part-4-integrating-magento-and-wordpress-using-fishpig-extension
So, can anyone pls clarify on this..?
Answer:no. You can't use WordPress plugins, which are specifically made for WordPress (and based on its framework) directly in Magento.
No, you can't use WordPress plugins with Magento. They have wildly different architectures.
The integration articles you linked to are talking about using WordPress and Magento together on the same website.
You could theoretically write a plug-in for one that also manipulates the database used by the other, but that is likely a custom job, not something you can just go download somewhere.
If you want to use various Wordpress plugins inside Magento, short answer, as mentioned, is no.
With those link that you provide, you can achieve the following:
With wordpress plugin (link that you provided) you can have yourwordpress.com and then install Magento inside a folder, so Magento store would be available. for example, in yourwordpress.com/magentostore/ and you can easily display any Magento block(top links, categories, layered navigation block etc.) from your store in you Wordpress site.
With Magento plugin (I'd go with FishPig http://www.magentocommerce.com/magento-connect/wordpress-integration.html) you can have opposite: yourmagentostore.com and than Wordpress blog/site inside blog folder of your Magento installation yourmagentostore.com/wordpressblog/ And there you'd be able to display footer and header of Magento in your wordpress site and display, for example, the latest blog post in Magento
agentoHope this help!
i think its impossible...because they have different backend architecture

Resources