Last active
November 17, 2017 14:01
Revisions
-
lisawedge revised this gist
Nov 17, 2017 . 1 changed file with 0 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,20 +0,0 @@ -
lisawedge revised this gist
Nov 17, 2017 . 1 changed file with 20 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ <?php $posts = Mage::getResourceModel('wordpress/post_collection') ->addPostTypeFilter('post') ->setOrderByPostDate() ->addIsViewableFilter() ->setPageSize(5) ->load(); ?> <?php if (count($posts) > 0): ?> <ul> <?php foreach($posts as $post): ?> <li> <a href="<?php echo $post->getPermalink() ?>"><?php echo $this->escapeHtml($post->getPostTitle()) ?></a> <?php if ($image = $post->getFeaturedImage()): ?> <a href="<?php echo $post->getPermalink() ?>"> <img src="<?php echo $image->getAvailableImage() ?>" src="<?php echo $this->escapeHtml($post->getPostTitle()) ?>" /> </a> <?php endif; ?> <p><?php echo $post->getPostExcerpt(40) ?></p></li> <?php endforeach; ?> </ul> <?php endif; ?> -
lisawedge revised this gist
Nov 17, 2017 . No changes.There are no files selected for viewing
-
lisawedge revised this gist
Nov 17, 2017 . No changes.There are no files selected for viewing
-
lisawedge revised this gist
Nov 17, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,7 @@ <a href="<?php echo $post->getPermalink() ?>"><?php echo $this->escapeHtml($post->getPostTitle()) ?></a> <?php if ($image = $post->getFeaturedImage()): ?> <a href="<?php echo $post->getPermalink() ?>"> <img src="<?php echo $image->getAvailableImage() ?>" src="<?php echo $this->escapeHtml($post->getPostTitle()) ?>" /> </a> <?php endif; ?> <p><?php echo $post->getPostExcerpt(40) ?></p></li> -
lisawedge renamed this gist
Mar 21, 2017 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
lisawedge revised this gist
Feb 24, 2017 . No changes.There are no files selected for viewing
-
lisawedge created this gist
Feb 24, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ <?php $posts = Mage::getResourceModel('wordpress/post_collection') ->addPostTypeFilter('post') ->setOrderByPostDate() ->addIsViewableFilter() ->setPageSize(5) ->load(); ?> <?php if (count($posts) > 0): ?> <ul> <?php foreach($posts as $post): ?> <li> <a href="<?php echo $post->getPermalink() ?>"><?php echo $this->escapeHtml($post->getPostTitle()) ?></a> <?php if ($image = $post->getFeaturedImage()): ?> <a href="<?php echo $post->getPermalink() ?>"> <img src="<?php echo $post->getAvailableImage() ?>" src="<?php echo $this->escapeHtml($post->getPostTitle()) ?>" /> </a> <?php endif; ?> <p><?php echo $post->getPostExcerpt(40) ?></p></li> <?php endforeach; ?> </ul> <?php endif; ?>