WordPress.org

Ready to get started?Download WordPress

Forums

Genesis Post Teasers
Enable on Home Page, Blog Template, *and* Archives? (3 posts)

  1. epicdiyom
    Member
    Posted 2 years ago #

    I just installed this, and it works great on whichever type of page it's enabled to handle. The problem is, I want it to be enabled not only on the Home Page, but on the Blog Template and Archives pages as well.

    The plugin's dropdown menu lets me choose only one of those options -- not all three. Is there any way to enable the plugin on all relevant pages short of hacking into the plugin's PHP myself?

    http://wordpress.org/extend/plugins/genesis-post-teasers/

  2. epicdiyom
    Member
    Posted 2 years ago #

    I ended up modifying the PHP file to get the results I want. I changed this line:

    if ( genesis_get_option('teasers_enable') == 'Home Page' )
       $enableteaserson = is_home();

    To this:

    if ( genesis_get_option('teasers_enable') == 'Home Page' )
        $enableteaserson = is_home() || is_archive() || is_page_template( 'page_blog.php' );

    It would be useful to have this functionality as a built-in feature of the plugin, though, so I don't have to be afraid of downloading future updates.

  3. epicdiyom
    Member
    Posted 2 years ago #

    Never mind -- this plugin appears to be a failure for archive pages. It just queries the most recent posts, no matter which archive month I've selected to view.

    Both the original code and my "fix" have this problem: Archive pages display the most recent teasers, not the archived teasers. Any idea why this might be the case?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic