How to display only specific categories on shop page on WooCommerce

I have been looking for this for a while with no luck. Finally I found some code that with small alterations worked. There can be other more effective solutions for this out there, but I am not aware of them.

So here it is.

Continue reading How to display only specific categories on shop page on WooCommerce

Alter webpage title on Joomla and K2 for SEO purposes

Recently, I  had to alter the <title> tags of a website built with Joomla CMS (version 1.5.x) and the powerful K2 content component, for SEO purposes. The problem was that the sitename that you define on the Joomla site settings was prepended to all title tags in all pages. For example if we suppose that the site name is “Sample site name”, the titles on my webpages where as following:

  • Homepage: Sample site name
  • Article pages: Sample site name – Article Tile

This is unwanted behaviour for SEO (and not only SEO) reasons. I don’t know if this is an issue only for websites using the K2 content component or a genaral Joomla issue. Anyway, the desired behavior is something like the following:

Continue reading Alter webpage title on Joomla and K2 for SEO purposes

Transfering content from Joomla to WordPress

Recently I had to help with a site switch from the Joomla! CMS to WordPress. There is an tool published in the Worpdress website which can be found here:

http://codex.wordpress.org/Importing_Content#Joomla

http://www.onestopjoomla.com/extensions/migrate/joomla-to-wordpress-import-wizard/

but it doesn’t work for the new versions of these CMSes. There is an error that has to do with WordPress post_category field, which being obsolete for many versions,now has been removed.

Continue reading Transfering content from Joomla to WordPress

How to custom print actionErrors / fieldErrors with Velocity on Struts2

struts2-merger2

Just a quick code snippet, that couldn’t find anywhere on the net as an example and my colleague Aggelos offered to me 🙂

Continue reading How to custom print actionErrors / fieldErrors with Velocity on Struts2