WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: FPW Category Thumbnails] Any way to execute 'Apply Mapping' with a cron job?

[Resolved] [Plugin: FPW Category Thumbnails] Any way to execute 'Apply Mapping' with a cron job?

  • chakos151
    Member

    @chakos151

    The plugin works great, exactly what I need for my new site (which has quite a few different categories) when I ‘push the button,’ but it does not insert thumbnails when another plugin creates posts from RSS feeds.

    Is there any way to use a cron job (or anything else) to force the plugin to apply mapping at a set interval? Seems to fail when there are multiple posts being generated at the same time.

    http://wordpress.org/extend/plugins/fpw-category-thumbnails/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Frank P. Walentynowicz
    Member

    @frankpw

    Try to modify the plugin which inserts posts. After successful insertion add:

    if ( class_exists( ‘fpwCategoryThumbnails’ ) ) {
        $post = get_post( $id );
        fpwCategoryThumbnails::updateID( $id, $post );
    }

    Plugin Author Frank P. Walentynowicz
    Member

    @frankpw

    Starting with version 1.4.9 the code mentioned in previous post should read:

    if ( class_exists( 'fpwCategoryThumbnails' ) ) {
        $post = get_post( $id );
        fpwCategoryThumbnails::addThumbnailToPost( $id, $post );
    }
    chakos151
    Member

    @chakos151

    Its working, thanks!

    Plugin Author Frank P. Walentynowicz
    Member

    @frankpw

    Try version 1.5.4 with addition mentioned above removed from your plugin.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] [Plugin: FPW Category Thumbnails] Any way to execute 'Apply Mapping' with a cron job?’ is closed to new replies.