fishpig

Fishpig: Autologin not working authentication exception because of index.php

送分小仙女□ 提交于 2019-12-24 00:48:38
问题 I have Fishpig Wordpress Integration installed along with Magento CE 1.702. Wordpress is set up like this : Database Charset utf8 Table Prefix wp_ integration Integrate Theme Yes Home URL blog Path wp Single Store no I removed index.php from the frontend using this rewrite rule : `<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>` The problem is

Fishpig Wordpress Magento Post issue

北城以北 提交于 2019-12-23 04:56:10
问题 How to retrieve recent posts on the basis of its corresponding category in fishpig wordpress magento integration? 回答1: $numPostsToShow = 2; $categoryId = 1; //Replace with your category id $recentPostCollection = Mage::getModel('wordpress/post')->getCollection() ->addIsPublishedFilter() ->addCategoryIdFilter($categoryId) ->setOrder('post_date', 'desc') ->setPageSize($numPostsToShow) ; EDIT The Fishpig Wordpress module registers the current wordpress category as 'wordpress_category' So to

Wordpress posts on magento

穿精又带淫゛_ 提交于 2019-12-13 01:33:28
问题 I have a magento store. I want to add a blog site(www.example.com/blog) on it using wordpress. For this, i am using Fishpig's Wordpress Integration 2.2.7. I wanted to have a different template for my blog site. So, i have created a separate template for wordpress blog page. On the top of the page, i want to add recent posts slider i.e, i want to display a featured image of the post with few lines of the content with read more option. Additional information like author, published date will

Return wordpress post featured images using Fishpig in Magento

限于喜欢 提交于 2019-12-12 04:11:09
问题 Im trying to get two of the latest posts from Wordpress that include featured images. Need to get the post title, content (character limited) and the featured image. I have this so far, all that is missing is the featured image. <div class="block block-blog block-recent-posts"> <?php $resource = Mage::getSingleton('core/resource'); $readConnection = $resource->getConnection('core_read'); $query = "SELECT `id`, `post_title`,`post_name` ,`post_content`, `comment_count` FROM `wp_posts` WHERE