Genesis Tutorials

Tips, Tricks, and How-tos for the Genesis Theme Framework

  • The Genesis Developer’s HandbookVisual Hook Guide
  • code, settings & options oh my!Resources
    • Collection Of CodeSnippets
    • Under ConstructionGenesis Functions
    • Coming Soon…Utilizing Genesis SEO Options
  • Extend GenesisPlug-ins
    • Genesis Post Teasers
    • Genesis Favicon Uploader
  • Genesis Child ThemesThemes
  • What is genesistutorials.com?About
    • Genesis Tutorials Roadmap
You are here: Home / Plug-ins / Genesis Post Teasers

Genesis Post Teasers

This plugin auto generates post teasers for Genesis blog style homepages. Visit the homepage of this site to see it in action.

== Description ==

This plugin auto generates post teasers for Genesis blog style homepages. Easily display X amount of full posts before the teasers with following posts being excepts. The Genesis Theme Framework is Required.

== Installation ==

1. Upload the entire `genesis-post-teasers` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the ‘Plugins’ menu in WordPress
3. Navigate to the `Genesis > Theme Settings` menu
4. Configure Options for ‘Homepage Teasers’

== Frequently Asked Questions ==

= What happens when I select Use Custom CSS? =

This plug in adds additional markup to style the post teasers. Selecting ‘Use Custom CSS’ will not load any the CSS provided and require you to add your own to your child theme’s style.css. By default The post teasers will be displayed in pairs side by side.

= The plug in seems to have done nothing for my site =

Make sure you have enabled posts teasers by checking ‘Enable teasers on home page?’ and ‘Default CSS’ selected.

*NOTE – This plug in will not work for widgetized homepages.

== Changelog ==

= 0.9 =
* Initial Beta Release

= 0.9.0.1 =
* Bug fix: Fixes an issue in which plug-in will break site using a mobile theme like WPtouch.

Download: Genesis Post Teasers

Comments

  1. Patrick says

    November 9, 2010 at 10:39 pm

    The widget seems to work great, however my wptouch is crashing on mobile devices. would upgrading to wptouch 2.0 fix issues?

    – Pat

    Reply
    • Christopher says

      November 10, 2010 at 3:32 am

      Patrick,
      Glad it is working great. I am going to look into the crashing with WPtouch. This is only when the plugin is active correct?
      Thank you for the feedback!

      -Chris.

      Reply
  2. Stefano says

    November 26, 2010 at 5:10 pm

    I’m writing a Gnesis Child Theme to be be sold. Obviously it will be GPL.
    I would like to incorporate your plugin so that the theme users will find the teaser option already built in.

    If you have nothing against it I would add a link directly in the Teaser’s option box in the Genesis Options to your (very helpful) Genesis Tutoria.
    Someting like: Courtesy of Genesis Tutorial (all linked to this site).

    Do you agree?

    Stefano

    Reply
    • Christopher says

      November 26, 2010 at 5:24 pm

      Totally agree. This code is actually was part of a child theme I was coding and because I been busy with other things to finish I turned this specific code into a plug-in. So I would love to see it built into a child theme released.

      Also thanks! When I started this site was hoping it to be. Haven’t written much to it lately but I am working on a refresh of the site and hook guide (and adding it to a bigger project of mine.) – so look forward to that as well.

      Reply
  3. Stefano says

    November 26, 2010 at 5:31 pm

    Many Thanks!
    I’ll let you know when I’ll be ready to release it

    Stefano

    Reply
  4. Wendy says

    December 2, 2010 at 4:50 pm

    I love the plug-in and how it displays on the home page, but am having some trouble with how it filters over to “page 2″… I have it set to display 1 full post and 2 teasers on the home page. Right now, I have 4 total posts, so the third one is getting pushed to “page 2”. That would be fine except is it still displaying in teaser format (i.e., smaller box that takes up half the available width). How can I adjust the settings of this page 2?

    Reply
    • Christopher says

      December 2, 2010 at 5:42 pm

      Currently there are no options in the plug-in to control the settings on secondary pages, but is definitely something I will look into including in the next release. For now the CSS below should do the trick – Just place it into your child theme’s “style.css” file.

      .paged #content .post-teasers-pair .post {
          width: auto;
      }
      
      Reply
  5. Dave says

    December 11, 2010 at 3:16 pm

    Plugin is great. A quick question about referencing the full post(s) on the homepage… I want to refer to the first full post only in PHP so I can attach some code only to that individual item. How would I do that – php wise? Not sure of the code. Thanks again for the plugin.

    Reply
    • Christopher says

      December 14, 2010 at 4:55 am

      Currently you would need to modify the plug in.

      On line 101 in genesis-post-teasers/genesis-post-teasers.php you will find

       the_content(__( $readmore_link, 'genesis')); 

      This is the code that displays the full posts. To display extra info to the first only full post you will need to add something like:

      
      if ( $loop_counter == 0 ) {
           echo " WHAT YOU WANT HERE";
      }
      the_content(__( $readmore_link, 'genesis'));
      
      

      I am working on an update to the plug-in that takes advantage of hooks and filters to make it more flexible for developers and easier for me to maintain. But for now you would need to use the steps above.

      Reply
  6. Ken says

    December 16, 2010 at 10:53 pm

    Chris- Was I surprised to find this. And happy. I am using the News child theme here: http://stevebrodner.com/ But I can’t get it to work. I see it does if I use straight Genesis.
    Oh, now I see your “*NOTE – This plug in will not work for widgetized homepages.”
    Any suggestions? Or plans to remedy that?

    Reply
    • Christopher says

      December 16, 2010 at 11:08 pm

      Yes, won’t work with wigetized home pages. The plugin works off modifying the loop. Widgetized homepage have no loop to work with most the time. I am however thinking of making an update that includes a widget to can be used.

      Anyways, depending what you exactly want on your homepage you could just rename/remove home.php in the News child theme folder. This will revert the homepage to fall back to the index.php home page style which this plugin then can interact with.

      Reply
      • Jacques says

        December 17, 2010 at 11:14 am

        I’d love to see it implemented as a widget, similar to the Genesis Featured Posts widget, but with teaser options.

        Reply
      • Anup kayastha says

        January 15, 2011 at 4:56 pm

        Hi Christopher,

        I’m using news child theme of StudioPress. But there were some problem regarding homepage. The posts were not visible in default. I searched in Google for solution for it and found your blog. And just read your above comment and it is really helpful. I got full hints from your comment. I modified home.php with some tweaks and it works now!

        Thanks for your help and this helpful plugin.

        Reply
  7. Ken says

    December 17, 2010 at 10:41 pm

    Thanks for the tip, Chris. I changed the home.php file and it works fine. Of course I loose showing the teasers by category and the client wants to keep that.

    Reply
  8. beniamino says

    February 17, 2011 at 7:53 am

    Ciao
    beautiful solution. It was what I wanted. But I am preparing my blog with Prose, I can use the same plugin?
    thanks

    Benji

    Reply
  9. beniamino says

    February 18, 2011 at 5:43 pm

    (scusa l’inglese se non è buono)

    Ciao, bellissimo plugin. Lo sto utilizzando con Prose e mi sembra molto funzionale. Però ho una difficolta:
    ho impostato
    “default css”
    How many full posts before teaser = 1
    width e height = 300 x 450
    Include thumbnails on teasers = si

    ma il primo articolo me lo mostra solo con il titolo metre io vorrei che mostrasse almeno 300 caratteri e dopo avere il “leggi tutto”.
    Come posso fare, mi puoi aiutare?

    grazie

    beniamino

    Reply
    • Christopher says

      March 11, 2011 at 9:58 pm

      I’m sorry, my italian isn’t the greatest so I apologize if I didn’t understand you correctly.

      If I understand right, you want the first full post to not show entirely and only an excerpt. Currently It isn’t supported and you would need to hack the plugin.

      Tto change the first post to show only a certain number of characters open up the genesis-post-teasers.php file in the plugin folder and change line 101 from

       the_content(__( $readmore_link, 'genesis')); 

      to

       the_content_limit( 300, 'Read more' ) ); 

      I like this idea and will incorporate in the next release.

      Reply
  10. Vince says

    February 20, 2011 at 11:54 pm

    I am totally a novice here. But how I wish that this plugin also comes with a slider options or something like jquery options for images. Sounds crazy a little bit I know, just come to to think of it, this is exactly what I am looking, something that will make a two column excerpt posts, with one at the top (which I also wish to have an excerpt options as well) and the top most will be an image slider, which is like the featured gallery content which is very difficult to use and implement.

    This will make the plugin, one of the most valuable plugin out there that will really make homepages great. And also give a head start for novices like me.

    Just giving you the idea guys. I strongly believe you can do it. I am not a coder which I really wish I am, to make this great plugin the best for homepages.

    Reply
  11. Vince says

    February 20, 2011 at 11:58 pm

    Another idea is, why not put an option to post a “STATIC Content” at the top most part, which can be a good introduction for the website. In this way, the only moving and keeps on changing part are parts below it.

    Reply
    • Christopher says

      March 11, 2011 at 10:09 pm

      I do like your ideas, and will think about it. It definitely would make the ability to have a nice homepages super easy.

      Reply
  12. Katie says

    March 30, 2011 at 5:38 am

    I like this plugin, but I’m having an issue with the images. I checked the thumbnail option and choose an image size, but the images are still really large.
    I was also curious if it was possible to only show an image and not a post excerpt?
    Thanks,
    Katie

    Reply
    • Christopher says

      March 31, 2011 at 1:43 am

      Hm, depending on when you added the images, and when you added the custom image size WordPress may not have actually created an image at that size to use. I would Try http://wordpress.org/extend/plugins/regenerate-thumbnails/ and see if that works for you. Let me know if that fixes the issues, I will be looking into any possible bugs with it though.

      Also, I like your idea about showing only the image. I have got a lot great suggestions and I am hoping if this weekend isn’t as crazy as the others I will work on an update to the plugin and include this.

      Reply
  13. Loren Nason says

    April 6, 2011 at 6:03 am

    Does the plugin not work with 1.6 beta1?

    Reply
    • Christopher says

      April 9, 2011 at 9:49 pm

      Honestly, haven’t had the chance to test. Once I do I will let you know, but if still broken when 1.6 drops I’ll surely make an update to keep it working while I continue to work on other updates to the plugin.

      Reply
    • Christopher says

      April 12, 2011 at 1:06 am

      Loren, it was a bug that cause the settings box to not appear, Latest version now works with 1.6b. I also threw in some extra features and took advantage of the grid loop. Check it out and let me know what you think :).

      Reply
  14. Jamey says

    April 12, 2011 at 6:53 pm

    Hi Christopher-

    Not sure what I did but I upgraded wordpress and after that my teasers stopped working properly. I want one full post and then teasers. I just upgraded the plug in but something is still “off”. Any help is greatly appreciated.

    Reply
    • Christopher says

      April 12, 2011 at 8:00 pm

      I’ve added a few new options to the plugin to give much more control. I’d take a look and make sure you have it set to have one featured post. Also if you are building off the sample child v1.5 try using Child theme CSS, since the latest child theme now supports the teaser styles right out the box. If not try using the plugin css and tweaking it. If you could send me a link I’d gladly check it out.

      Reply
  15. azra says

    April 25, 2011 at 9:59 am

    I just update the plugins and now it doesnt work properly. I wanted to have pairs but I couldnt do it anymore. Please help me..

    Reply
    • Christopher says

      April 27, 2011 at 4:37 am

      What version of Genesis are you running? I made the latest update compatible with 1.5+ to take advantage of the new grid loop feature and help minimize the amount of code and make maintenance easier. If you need to be on an early version of Genesis for whatever reason I do still have the previous version available.

      If you are running the latest version of genesis make sure “use Plug-in CSS” is checked. This will use some default CSS I had set up in the plugin to display your posts in two columns.

      Reply
  16. Rafael says

    June 8, 2011 at 9:56 pm

    I want to ask you for one thing. I use your post teaser, and in teasers my text isn’t formated. There don’t work meta-tags. How make post text formatted? And something else… I see space (20px) between teasers, I mean:

    [1 2]
    (20px)
    [3 4]

    Can you help me? What div should it will be? Thanks!

    Reply
  17. David says

    June 10, 2011 at 1:27 pm

    Hi Christopher,

    Thanks for the great plugin.

    I would like to remove the continue reading / read more off the screen but no matter what I do I can’t get rid of the 3 dots … and the link.

    What do I need to edit to remove the 3 dots …?

    David

    Reply
  18. Gavin Kromhout says

    June 27, 2011 at 7:52 am

    Hi Christopher,

    I had to add exclusions for the case of exactly 1 post and 0 teasers in a category.
    This is for version 1.0.2, if you would like to include this in a new release or have a better fix please let me know, as I can’t find any other way to get in contact, thanks Gavin.

    Reply
    • Christopher says

      July 26, 2011 at 5:20 pm

      Gavin, just wanted to thank you for this! I’ve updated the code, and gave props to you in the changelog as well as the source.

      Reply
  19. Blog Tools says

    July 11, 2011 at 12:36 pm

    Genesis Teaser plugin doesn’t work well in Nomad Free Child theme of Genesis. Once installed, the sidebar goes down.

    I hope that Studiopress will be able to fix this.

    Reply
    • Christopher says

      July 26, 2011 at 5:18 pm

      I haven’t taken a look at this, but I have fixed an issue similar to this that I was seeing. v1.0.3.1 should have the fix. for the next release I will be going through all the new major Child Theme releases and making sure they are compatible.

      Reply
  20. Polly says

    July 18, 2011 at 10:50 pm

    Great plugin! I am using it on my “blog” page http://childpsychmom.com/category/blog/ but for some reason only some of the thumbnail pictures are showing up. Any ideas?

    Reply
    • Polly says

      July 18, 2011 at 11:06 pm

      I think I figured out that thumbnails that I use more than once only show up with the original post on this plugin, not repeatedly. Sometimes I reuse my images, that seems to be the problem. Thanks for a great plugin.

      Reply
      • Christopher says

        July 26, 2011 at 5:23 pm

        Ah, yes, if you use the same link from another post the image won’t show up since it’s not attached to the posts gallery. The best way to ensure to have an image and what image appears is to set a featured image to each post. Glad you like it!

        Reply
  21. Patrick says

    July 27, 2011 at 4:30 am

    I think there is something wrong with this plugin. I updated it tonight and it completely reset my entire Genesis theme and the changes I make to the plugin won’ take. I had to uninstall and tried to install older version but no luck. I can’t get anything to work now…..

    Reply
    • Christopher says

      July 27, 2011 at 12:40 pm

      Yes, sorry about that, I accidentally pushed up some bad code that if you weren’t using a custom height or width it just wouldn’t load any the custom css. The latest update Version 1.0.3.1 fixes this. Let me know if you are still having issues with that version, but all should be fine.

      Reply
    • Christopher says

      July 27, 2011 at 12:55 pm

      My apologies, This was another bug. I am moving the settings back to the main genesis theme settings page for the time being. Thanks for the tip. 1.0.3.2 will fix this now. Tried putting a bug fix in while working on v1.1 and ended up creating a few more bugs.

      Reply
  22. Dave says

    July 28, 2011 at 3:45 pm

    It appears the latest update has broken pagination. Check the page at http://neofpa.org/extinguish/category/announcements/ — click Next Page, you’ll get a 404. If you have any suggested fixes, or if you want an admin login, let me know.

    Reply
    • Christopher says

      July 29, 2011 at 1:09 pm

      This looks to be a bug on category pages. genesis_grid_loop() may be loosing the query on paged. I’ll take a look into it and push up and send you a fix to test ASAP.

      Reply
  23. Bonn says

    September 21, 2011 at 12:46 pm

    I want to make the teasers look like the one in copyblogger.com, where there are spaces and paragraphs. How will I do that? My blog that I am currently want to change is http://getslightlyfamous.com/wp/blog/, the teasers are all stuck up in 1 paragraph. Please

    Reply
  24. Ben says

    November 26, 2011 at 9:41 am

    Hi Christopher,
    first of all – thank you for your wonderful plugin. I searched 5 hours for a solution, i wish i had seen the plugin earlier 😉

    how can i edit the code to show a Heading before the teasers?
    Like:
    “Recent Entries:”
    -Teaser1
    Teaser2

    Also I noticed that there is literally no space between Widget “Home Bottom” and you plugin.
    Can i modify that too?

    Thank you so much for your support!
    Regards,
    Ben

    Reply
    • Christopher says

      December 2, 2011 at 10:00 pm

      Ben,
      I am glad my plugin was helpful!

      The title before the teasers is a good idea, in the next update I will add a hook before them as well as in a few other areas. I think quite a few people could benefit from this. For now you should be able to use the genesis_loop hook with a priority of less than 10 to add a title before.

      With the spacing before the teasers, they are wrapped in a div with the id of “post-teasers”. You can use this to target it in your child theme’s style.css and add a margin-bottom.

      Reply
      • Ben says

        December 3, 2011 at 12:33 pm

        Christopher,

        thank you for your reply!
        I managed to customize the plugin to my needs, it’s so great. I really appreciate your work! Not only with the plugin, but with this whole website. Studiopress is so hard for PHP-Newbies.

        Since I customized my Post Info and Post Meta (translation into german language), the functionalities “Disable Post Info” and “Disable Post Meto” were not working. I had to add a function to Genesis Simple Hooks Plugin to remove them again in the teasers.

        This was a lot of testing but finally it works and I’m happy 😀

        All the best!
        Ben

        Reply
  25. atulkumar says

    December 16, 2011 at 9:34 pm

    hey thanks….i was looking for that

    Reply
  26. Kirsten says

    July 4, 2012 at 12:03 am

    Hey Christopher,
    I’m working on a demo site using the Genesis Associates theme. I have a separate blog page but when I active the Genesis Post Teasers plug in it pushes my sidebar down. On the studiopress forum they say there is an unclosed div. Can you help with this please?

    I’ve used your plugin on several sites and it’s always worked perfectly. This site is different in that the blog page is not the home page and it’s a different theme.

    Looking forward to your reply. Hopefully soon 🙂

    Kirsten

    Reply
    • Christopher says

      July 5, 2012 at 2:50 pm

      Hi Kristen,
      Still having this issue? Have a link I could check out and see what’s going on?

      Reply
      • Kirsten says

        July 6, 2012 at 6:29 pm

        Yes – it’s a demo site right now. http://www.mywordpresscoach.com/blog

        Reply
  27. Jkrug says

    September 3, 2013 at 4:26 pm

    I recently upgraded to the new Genesis version and updated this plugin as well. Unfortunately, the plugin no longer respects the: “Do not show teasers in pairs” setting.

    Can you advise?

    Reply
    • Christopher says

      September 3, 2013 at 5:20 pm

      2.0.1 Should fix this. Seemed to have been an issue with theme styles overriding the display. Let me know if 2.0.1 works for you and takes care of the issue.

      Reply
      • Jkrug says

        September 3, 2013 at 7:54 pm

        worked like a champ, but now the image is now showing up on the teaser when I have the “included featured image on teasers” un-checked. Interesting, do you have any thoughts?

        thanks

        Reply
  28. Play Buffett says

    September 6, 2013 at 8:54 pm

    Hi Christopher!

    I’m a newbie blogger who just installed Genesis 2.0 and admit I’m rather bumbling along trying to figure out how things work and how to get things to look the way I want. Was THRILLED, though, to find your Post Teasers plugin. Merci! … A few questions for you–two”on topic”; the other slightly “off” 🙂

    ON TOPIC
    1. Is there anyway to adjust the settings so that the excerpts also show the formatting (with e.g. h2 subheads, bulleted lists, etc.) that appear in the full posts themselves? [What I’m ultimately hoping for is to have my excerpts appear with proper formatting as they do on Copyblogger.]

    2. Is there also a way to adjust the settings so that I can choose where the text cuts out on each post? [Again, I’d love to have my excerpts appear as on Copyblogger with the excerpts ending at the end of a full sentence and not necessarily cutting off mid-sentence and/or arbitrarily at the end of a certain number of characters.]

    OFF TOPIC
    3. For some reason my Comment box just says “Speak Your Mind” and has an empty box for readers to fill in. But it won’t allow readers to put in their name, email, and website. And it won’t all for a little checkbox with “Notify me of followup comments” functionality–as you have appearing here. Any idea how to adjust the settings to fix this? [I’ve tried using the Jetpack Comment plugin, but that doesn’t seem to fix the issue either.]

    Sorry to have gone on at such ridiculous length! But I’ll be terribly grateful for any help you can provide. And eager to publicize your AWESOMENESS! 🙂

    Cheers,
    Play

    Reply
    • Christopher says

      September 7, 2013 at 2:02 pm

      Hi Play!

      1 & 2 ) The way Copyblogger gets the formatting with the excerpts is using a WordPress feature, ‘the more tag‘. My plugin will only support this in the full feature posts. This also will allow you to break the content exactly where you wish. Another way to have specific text before the break is to use the manual excerpt field. With this, the teasers will respect the excerpt and use that instead of the automatic trimming, allowing your to craft custom excerpts for each teaser. Excerpts however do not allow html formatting by default.

      3 ) When logged into WordPress these fields will actually be hidden since WordPress already has the information. Also using the jetpack comment plugin these fields will be hidden until the reader clicks on the comment box, and if not logged into the WordPress.com network, or your site, will have the fields to fill out. For the “Notify me of followup comments” functionality I have on my site I use a plugin by Mark Jaquith called ‘Subscribe To Comments‘.

      I hope this helps!

      Reply
  29. Play Buffett says

    September 24, 2013 at 3:59 pm

    Hi again, Christopher! Sorry for delayed response. But thanks a million for your detailed reply! All the info has been incredibly helpful. Also, just an fyi that there’s a new plugin called Subscribe To Comments Reloaded 2.0.3. (updated a month ago) that looks like it may offer some improvements on Mark’s. Thought you might like to have a look. Cheers! Play

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Genesis Framework for WordPress

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Genesis Guide for Absolute Beginners

Click to download the Genesis Guide for Absolute Beginners

Follow me on Twitter

Follow @tweetsfromchris

Recent tutorials

Genesis 3.0.0 Removed Deprecated Functions

How to Add a Logo to the Header

Say Hello to the Genesis Visual Hook Guide v2.5

Genesis Tutorials • Built on the Genesis Theme Framework

Genesis Tutorials is not affiliated with StudioPress, and is maintained and operated by Christopher Cochran.

 

Loading Comments...