Questions tagged [meta-key]

109 questions
1
vote
2 answers

MySQL: return posts if meta_key does NOT exist

I have a query that returns a pet post if the meta_key exists and is not '': -- Pets that are assigned tags SELECT p.ID FROM FxFfekP0_posts p LEFT JOIN FxFfekP0_postmeta pm ON p.ID = pm.post_id WHERE p.post_type = 'pets' AND pm.meta_key = 'tag' AND…
dcolumbus
  • 9,596
  • 26
  • 100
  • 165
1
vote
1 answer

Wordpress custom search results

I have a Wordpress custom search form which is used to search for floors into various buildings. For example, when a user searches for a floor between 1000 and 1500 sq ft, he will get a list of all the buildings with free floor spaces between those…
Jeff
  • 543
  • 2
  • 9
  • 27
1
vote
2 answers

Saving Meta in OS X Terminal

Since Terminal appeared I've saved as ~/mySrvr.term a modified stock .term file which opens to execute an ssh to a remote server and to modify the appearance. I have NOT been able to save "use option key as meta" for emacs-ery; there's no slot for…
Jack Siler
1
vote
2 answers

Binding meta in inputrc has no effect, macosx

I'm trying to extend readline, by adding a binding for the meta key in my inputrc. I'm using Terminal (OSX) Ideally I'd like to add "\M-h": "\C-w" However, I cannot seem to bind any meta key. I have the option in Terminal, which treats my option key…
cdosborn
  • 3,111
  • 29
  • 30
1
vote
3 answers

jQuery not detecting modifiers on keyup

When I run the following code and press the command key on my Mac (using Chrome), metaKey is set for keydown but not for keyup. Am I doing something wrong? I'm just trying to track the meta key being pressed so I can use it inside my JavaScript - if…
Hamy
  • 20,662
  • 15
  • 74
  • 102
1
vote
1 answer

Wordpress multiple input custom fields query

I have managed to save a custom meta field with multiple inputs to a post. The inputs are going like this:
Silenced
  • 11
  • 2
1
vote
1 answer

Order Wordpress Loop by Custom Metabox Field REF: IP METABOX PLUGIN

Using IP Metabox Plugin on Wordpress i have a Metabox called 'ipmb_metabox_4' and the field 'price' is used within it. IP Metabox (https://wordpress.org/plugins/ip-metaboxes/) uses the following code to call a Metabox/Custom Field Value.
Richard
  • 748
  • 3
  • 8
  • 23
1
vote
1 answer

Compare 3 custom fields and sort by oldest

I am building a movie archive. For each movie I am filling out the release dates for 3 countries, they're stored as custom fields (added via Pods) Now, when listing the movies I would like to build an array and loop through each post to check if the…
Mia
  • 11
  • 1
1
vote
1 answer

How does one give meta_key a name in Wordpress?

I am quite new to Wordpress and I have a question about meta_key. I saw a query to dispay custom fields of meta box that saved start and end dates. One of the parameters used in the query is the meta_key, but where does one find the name of the…
1
vote
1 answer

Wordpress - get the userID from custom user meta

I try to get the wordpress USER ID from a userMeta key I created during the registration. The user meta key is 'lh_scuritycode' with meta value $_GET["key"]. $_GET["key"] = f16dea7e995b14e420ddb96fb7dbd67f This is my code:
DenisCGN
  • 397
  • 1
  • 4
  • 17
1
vote
1 answer

Wordpress orderby second word of meta_value

I have a page template "By Author" (ID 1814) I am using to query my posts (Title: book titles & Content: descriptions) by meta_key: author_name, which equals both the book author's first & last name_ However, I would like to order these posts by…
1
vote
3 answers

WP_Query - filter by multiple meta values and order by other meta values

I'm trying to query posts using WP_Query and meta_query parameters: $args = array( 'post_type' => 'produkty', 'meta_query' => array( 'relation' => 'AND', array( 'key' => 'produkt_aktywny', …
forkie
  • 592
  • 2
  • 6
  • 14
0
votes
0 answers

Woocommerce: Modify 'Popularity" sort option so it can include custom field number together with total_sales

I need to modify 'Popularity' sort option on the product category. By default it is sorting by 'total_sales', but I need to add numeric custom field together with 'total_sales'. Started first sorting only by custom field under the Popularity…
0
votes
1 answer

Get order meta items by meta key each seperately

We are preparing a template for factory QC. The template is automatically filled with all the order information and it will then be printed for their use. This is a part of the template where the order meta items are listed, whenever we try to get…
devwpf1
  • 3
  • 4
0
votes
0 answers

Woocommerce meta_key and meta_value syntax

For a woocommerce plugin to filter global attribute terms and custom fields, I need to set up the meta_key and the meta_value. I tried to find out which these exactly are: I tried: meta_key=’pa_attribute’, meta_value=’1…
KoLa
  • 23
  • 1
  • 4