Because SP uses the default WP blog page for its home page it's not actually possible to have a blog as such on the site. However many people want a blog as well as the ecommerce functionality and of course it's beneficial for SEO.
So here's a 'mod' to create a pseudo Blog page while still keeping the Article page option. Just be aware that this involves editing the single.php file so any changes could be overwritten in the event of an upgrade (unless Mark can be convinced to add this as a feature in SP, hint hint).
1. Download the tpl-blogPage.zip template file from http://benz1.com/temp/tpl-blogPage.zip, unzip and upload to your Shopperpress root folder (same location as tpl-articlessPage.tpl which is the template it's based on.
2. In single.php change the line
<?php if($item['type'] !="article"){ ?>
to
<?php if($item['type'] !="article" AND $item['type'] !="blog"){ ?>
Also change the 2 lines
// UPDATE HIT COUNTER FOR ARTICLE VIEWS
if($item['type'] =="article" || ){
to
// UPDATE HIT COUNTER FOR ARTICLE AND BLOG VIEWS
if($item['type'] =="article" || $item['type'] =="blog" ){
(Note to Mark - does this actually do anything? Couldn't see the hits values that it supposedly adds in postdata)
3. In your language file (/functions/langs/) add a new variable:
"_websiteblog" => "My Blog Title",
4. Add a new page for your Blog and select the template '6. ShopperPress Blog Page'. (No content or custom fields required)
5. Create you blog post(s) as you would create a normal WP post. Add a custom field of 'type' with value 'blog' (in the same way as you create an article type)
That's it, you're done!
Mark, could you please check the code changes and confirm that it isn't going to screw anything up? If you agree that it's a worthwhile mod could you please consider adding it to the core program?
Thanks,
Ben

