How to implement wordpress blog and magento blog parallely - wordpress

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.

Related

What is the best practice to manage subdirectories in WordPress?

I have a website that is written use static html pages. It contains many URLs containing subdirectories like this:
https://www.example.com/product1/order.htm
https://www.example.com/product1/error/error1.htm
Now I want to create a new website via WordPress and transfer all contents from the old website to the new one.
So I wonder what is the best practice to process all these URLs with subfolders.
Should I:
Keep the subfolders by using parent/child pages, like this:
https://www.example.com/product1/order.htm -> https://www.example.com/product1/order/
https://www.example.com/product1/error/error1.htm -> https://www.example.com/product1/error/error1/
Or
Remove all subfolders, and chaning all URLs like this:
https://www.example.com/product1/order.htm -> https://www.example.com/product1-order/
https://www.example.com/product1/error/error1.htm -> https://www.example.com/product1-error-error1/
Or using other methods?
Thanks
Update:
With the hint of others, I get to know there are categories in WordPress. I search online and find the following URLs:
https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/
https://www.wpbeginner.com/beginners-guide/categories-vs-tags-seo-best-practices-which-one-is-better/
So it seems using categories is a good practice to keep a hierarchy structure in WordPress. Is that correct?
Update 2
I have a question. In traiditional websites, for a product, normally the home page is https://www.example.com/product1/ , while the additonal pages such as https://www.example.com/product1/order.htm are put under the "product1" subfolder. Now in WordPress, their URLs should be:
URL1: https://www.example.com/product1/ ->(Unchanged) https://www.example.com/product1/
URL2: https://www.example.com/product1/order.htm -> https://www.example.com/product1/order/
In such a case, whether should I set product1 as a postname(for URL1) or a category(for URL2)?
Good...
The WordPress directory manager is something that until now I only saw in the media gallery ...
But if you want something, you can have control over the installation of Total WordPress ...
In addition to database errors and PHP for free ...
It offers a range of services like PHPMyAdmin, installing WordPress via a script, file manager, whatever you are looking for ... Logging errors and even how you set up email, spam, you can see what space on the disk hard drive and RAM what kind of CPU you are using.
Configure your localhost on your domain from your server ...
He's very complex, I mean, he's very complete.
It's Webmin if you are a basic user, now if you are a more advanced user ... I recommend Virtualmim these two implements that can be easily installed and also configured very quickly.
It offers a variety of attributes for you to have control of your WordPress.
But it also depends on your hosting ...
As they are installed via the command line / SSH, so if you don't have this option in your hosting, it gets a little more complex if you have VirtualMin or Webmin...
I would suggest looking into registering custom post types. You can program those, or use a plugin like CPT UI. You then get a custom link structure that is e.g. example.com/products/awesome-product. This would then be the 'detail' view.
I'm not sure if you have separate order and error pages, but that could be part of the permalink structure in Wordpress as well. You might even setup rewrites for the example.com/products/awesome-product/order and example.com/products/awesome-product/error parts to have a specific page loaded, or the detail view and then have a custom layout based on these url parts.
If you used the product ID's in the old site, you could also create a custom permalink structure have it like this: example.com/products/1. That way you could easily rewrite url's in .htaccess from the old site to the new using just one rewrite rule and regex for the id's
i think you more or less answered your own question. But to be clear based on experience.
Keep the subfolders by using parent/child pages, like this:
https://www.example.com/product1/order.htm -> https://www.example.com/product1/order/
install this plugin: 'WP 404 Auto Redirect to Similar Post' Automatically Redirect any 404 page to a Similar Post based on the Title, Post Type & Taxonomy using 301 Redirects!
It will find the updated pages / posts in a heartbeat.
Benefits are it will also deal with all 404s, and redirect them to simular pages which helps with SEO.
Its a lazy mans approach, as its one more plugin, but it works..

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

Magento - Integrating Wordpress into Magento for the homepage

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

Is there a way to use a different URL structure for static pages in WordPress 2.9?

I have WP 2.9 installed on an IIS 7 server. Permalinks works with the URL Rewrite add-on for IIS, but I'm wondering if it's possible to use different permalink structures for pages and posts. For instance:
Pages would be: www.url.com/$pagetitle/
Blog posts would be: www.url.com/blog/$entrytitle/
Is this possible?
Standard wordpress permalinks have page titles without dates, and you can also get rid of the date in posts: Customize Your Dated WordPress Permalinks - Perishable Press.
And get rid of the category base, too: Wordpress Supplies » Wordpress Plugins » WP No Category Base
What you're describing is actually the default behavior if you use a custom permalink (at least on Apache... it might be different in IIS).

Resources