Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 17624

Post meta is a data set containing additional core as well as custom post information.

0 votes

Check if meta key value already exists

Found it: $args = array( 'meta_query' => array( array( 'key' => 'videoid', 'value' => $_POST['videoid'] ) ) ); $videoQuery = new WP_Query( $args ); …
SomeoneS's user avatar
  • 125
2 votes
4 answers
18k views

Check if meta key value already exists

Let's say that I have few posts with meta key "videoid". Value of that meta key is different for every post (and has to be different). When adding new post, how can I check if videoid with that exact …
SomeoneS's user avatar
  • 125