Created
May 18, 2020 05:13
-
-
Save ibndawood/b3052cc5dabf6bcdba79b7e779350157 to your computer and use it in GitHub Desktop.
Jobhunt - SQL to insert '_featured' meta_key for all Job Listings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO wp_postmeta( post_id, meta_key, meta_value ) SELECT DISTINCT ID, '_featured', '0' FROM wp_posts WHERE post_type='job_listing' AND post_status='publish'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment