I was able to get rid of the 404 for the portfolio items by clearing the permalinks. For future people who have this problem:
This error is displayed because you have changed the permalinks recently or the portfolio slug.
Go to permalinks and set to ‘Default’, save. Then set again to ‘postname’ or the permalink you want and save again. This will do the fix.
This will force WP to rewrite the .htaccess file and to save the new rewrite rules in the database.
=======
cowidgets will still not work without the code commented out. Please let me know of a fix.
Why can’t we see the solution for this?