Questions tagged [meta-key]

109 questions
0
votes
1 answer

subtract array values from each other creating new array

On my site I have the following code, which grabs values from a form and creates a text file with a list of my image paths and duration times. -- /* This is for looping through the uploaded pictures and sorting them and creating a text…
730wavy
  • 944
  • 1
  • 19
  • 57
0
votes
1 answer

How to remove hyperlink from meta_key wordpress

I have 11458 post in blog and i want to remove all link from value on meta_key. example: I have this on meta_key movies.
alam7o
  • 61
  • 8
0
votes
2 answers

Wordpress meta_query

I'm struggling with a wp_query and i need your help. I have 3 custom fields called "Agenda_day", "Agenda_month", "Agenda_year", representing the day, month and year of an event. I want to order the results of my query by day, then month, and finally…
0
votes
1 answer

Wordpress meta_values in array don't work

I would like someone to help me. My first problem: The meta_value in array don't work in my function: 'value' => array('English','Spain','German','French'), It works with one single value, but more value in an array is not working. It simply…
Alex
  • 33
  • 1
  • 3
0
votes
2 answers

Wordpress query custom meta key

I've added a postmeta (popular_posts) see image below. But when I query posts with meta key "popular_posts" like in below I've had no result: new WP_Query(array( 'meta_key'=>'popular_posts' )) Some one can explain me how to properly retrieve that…
Zozo Zozo
  • 141
  • 4
  • 4
  • 12
0
votes
1 answer

Get all wp_users sort by metakey

I am trying to get users list sort by metakey. I mean i have set meta key user_last_login. some users doesnot have this meta key. some users have it. I want to get both users in single query but if metakey exists those will come first and remaining…
krishna
  • 923
  • 3
  • 15
  • 42
0
votes
1 answer

Display results of one meta key and order by a different meta key

On a used car dealership website, I have a PHP Query that displays all results for the relevant vehicle model. So if you visit the "Honda Civic" page it will display all the vehicles listed as a Civic. Currently, I'm using the following…
Willem
  • 417
  • 1
  • 6
  • 16
0
votes
1 answer

Order custom post types in WordPress by the meta_value of another plugin

I've got a List of custom post types which I am displaying on my site. Additionally to those post types, I added a plugin to my WordPress which allows me to add a thumbs up rating system to each post type, so that it looks like this: The code for…
NakedPython
  • 920
  • 2
  • 7
  • 27
0
votes
1 answer

Add custom field/checkbox to wordpress comments

I want to display selected comments using get_comments and I see that there is meta_query arguments for that .. But I don't understand what will be the meta key. Is there a way I could add a featured checked box(meta key) in comments in wordpress…
user3852040
  • 87
  • 1
  • 12
0
votes
1 answer

WordPress custom loop filter by meta_key and value with serialize data

I am trying to run custom loop for Custom Post Type with filtering by some meta_key and value Now simple meta value works fine but here I have a challenge with the below kind of serialized data (nested). I am using wpalchemy for meta box. meta_key…
Code Lover
  • 8,099
  • 20
  • 84
  • 154
0
votes
1 answer

Order post by meta value with semicolon

I had a post type music. For which i created custom field Music length. Which store music duration in this format like 01:50 I want to display post on order by Music length. I had use both order by meta_value and meta_value_num. But it does not…
maddy
  • 121
  • 1
  • 1
  • 10
0
votes
1 answer

Wordpress SQL query determining geolocation and returning relevant results

I am trying to put together a wordpress SQL query that will return results relevant to the user's location. A geolocation latitude and longitude cookie gets set when the user first visits the site. The 2 cookies are then read back into php variables…
Zoe
  • 21
  • 3
0
votes
0 answers

I need to create a meta_key = full_name in mysql

I am using WordPress, and in MySQL database i have meta_values for meta_key=first_name and meta_key=last_name. Now i want to create in MySQL database a meta_key=full_name I have tried different ways but i haven't been successfull doing it. Any…
Legjion
  • 1
  • 1
0
votes
1 answer

Filter orders by meta with woocommerce rest api

I am trying to filter the order by the meta key (i have created a meta key called order_secret_code), but i still receive all of the orders. Can any one help me with…
keloniton
  • 181
  • 1
  • 3
  • 13
0
votes
1 answer

Show products by high int meta_key valve

I'm trying to show products by high int val(meta_key) but the code adds the posts side by side with the same int value. $args = array( 'posts_per_page' => $limit, 'orderby' => 'meta_value', 'meta_key' => 'wpb_post_views_count', 'order' =>…
Zoric
  • 61
  • 12