WordPress.org

Ready to get started?Download WordPress

Forums

Set featured image randomly from WordPress Database on post submission (2 posts)

  1. sabas
    Member
    Posted 1 year ago #

    Basically every time that I publish a post I want that a random image from my wordpress database be set as the feature image for that post. Can someone help me with this please!

  2. Rajesh Soni
    Member
    Posted 1 year ago #

    You could hook onto the save_post action hook.

    http://codex.wordpress.org/Plugin_API/Action_Reference/save_post

Topic Closed

This topic has been closed to new replies.

About this Topic