WordPress.org

Ready to get started?Download WordPress

Forums

FPW Category Thumbnails
[resolved] Any way to execute 'Apply Mapping' with a cron job? (5 posts)

  1. chakos151
    Member
    Posted 2 years ago #

    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/

  2. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

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

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

  3. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

    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 );
    }
  4. chakos151
    Member
    Posted 2 years ago #

    Its working, thanks!

  5. Frank P. Walentynowicz
    Member
    Plugin Author

    Posted 2 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic