Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
80 views

How using the Meta Box plugin, to filter posts by the value of a post type field?

I'm using the Meta Box plugin to create custom post types and fields. There is a record type teachers, and I'm trying to display the lessons associated with him on the page of a certain teacher. The ...
Alexey's user avatar
  • 1
0 votes
1 answer
48 views

How to improve my non-unique metadata MySQL entries?

I'm working on a plugin for WooCommerce which uses a cpt called Restock. In a Restock post you can enter products ( id ) plus restock. The user can add as many product restock pairs as they want per ...
photogenic's user avatar
-1 votes
1 answer
489 views

How we insert values into database using metabox Wordpress?

function Review_Form(){ ?> <form action="" method="post"> <div class="container"> <h1>Add Review</h1> <hr> <label for=&...
Fakhar alam's user avatar
1 vote
1 answer
472 views

Meta Query Filtering not working on Custom Meta Box using Radio Buttons

I have a custom post type called "bids". I'm trying to get the loop to filter posts according to a meta_query. The query should allow for only posts that have the radio button with the value "open" ...
Emily Childers's user avatar
0 votes
1 answer
27 views

How many meta-query fields support WordPress search at a time?

I am new developer. I want know How many meta-query fields support WordPress search at a time? I saw that its getting (500 time out) errors after nine fields.
fiyan's user avatar
  • 21
0 votes
0 answers
283 views

Query by meta value (add a dropdown of all values)

I'm facing a problem I can't resolve alone. I have a custom meta field named 'processeur' for a custom post type names 'ordinateur'. What I need to to is get a list of all meta values, arrange them in ...
Samuel Haddad's user avatar
0 votes
1 answer
2k views

Save meta data with post, Without using any plugin [closed]

I have a post type in which I need to save price with each item. Please, suggest how can I create meta-field in my post type, without using any plugin?
Saeid Dadkhah's user avatar
-2 votes
1 answer
1k views

Dynamic background image used in css after selector

.about-img:after { background-image: url(../img/tola.jpeg); } How to dynamic above code in WordPress? It's not only background image but used in css after selector.
Shakir Ahmad's user avatar
0 votes
1 answer
585 views

Saving custom fields for WP_Query to retrieve

Thanks in advance for any help offered. I am writing a plugin for wordpress that has multiple custom post types sharing some custom meta boxes and fields. I have everything working and saving ...
marwyk87's user avatar
0 votes
1 answer
337 views

How to show all the associated posts with specific date of data metabox?

I need someone to answer this question. I have metabox which shows date: $date = rwmb_meta( 'pb_match_date', '', $post->ID ); I want to get all the associated posts with specific date of that ...
bdtheme's user avatar
  • 145
0 votes
1 answer
389 views

How to check specific value in two metabox?

Using two arrays in a meta query is not working for me, especially when using the value of second array. If I remove the value of second array or first or both, then it is working, but I need to ...
bdtheme's user avatar
  • 145
0 votes
1 answer
175 views

How to shows CPT which has specific meta key?

I am trying to show post from CPT, but it shows no records.I want to show posts which has meta_key:match_details_competition_name and match_details_session_name.Hollowing are my codes. function ...
bdtheme's user avatar
  • 145
1 vote
1 answer
952 views

advanced search forms with 3 input text and that the main problem 3 input text

N.B. : all my work is on wordpress. I was working for an advanced form with 3 input text in purpose to show a list of hotels. The problem is i tried an infinity tricks and functions but without any ...
Carl Willis's user avatar
0 votes
3 answers
3k views

get_post_meta as a list for drop down search filter

I was wondering if someone could help me out. I would like to create a dropdown search filter for my wordpress site. I would like the drop downs to be populated by meta_boxes values which i have for a ...
steamfunk's user avatar
  • 645
0 votes
1 answer
7k views

How do I add an item to the WP admin menu?

I want to add an item to my WordPress admin menu - "News" - it's to contain a list of articles written about my company. Each article will consist of the following metadata: Headline Date Link to ...
andrw22's user avatar
  • 61
0 votes
1 answer
571 views

WP_Meta_Query object with conditionals

I have a custom post type (Books) that is connected with a second custom post type (People). The Books CPT has an additional author meta box that if checked, it should appear on the additional People ...
timmyg's user avatar
  • 125
2 votes
2 answers
7k views

Displaying Metabox value (custom post type taxonomy)

I have been stuck on this for days, reading articles and articles and nothing works. I am trying to display the value of my metabox on a template page. I successfully added the metabox, and I see ...
Misty's user avatar
  • 121
0 votes
1 answer
428 views

WP_Query arguments: Loop through custom post type - get all entries except excluded meta_key?

Can't seem to find out what I'm doing wrong. $args = array( 'post_type' => 'wr_event', // my custom post type 'posts_per_page' => -1, // show all posts 'meta_query' => array( ...
mathiregister's user avatar
0 votes
1 answer
794 views

loop through custom post-type with two meta_keys

I have a custom-post-type named my_project. This post-type has two meta-boxes: is_featured is_featured_position So essentially in my backend of the post-type I can set a checkbox for is_featured ...
mathiregister's user avatar
3 votes
2 answers
13k views

How to grab metabox value in wp_query meta_query key

How would I modify my WP_Query in order to get a custom meta box value instead of a custom field one like I currently do? This is how my query looks like: <?php $today = date("Y-m-d",mktime(0,0,0,...
Christopher's user avatar
0 votes
2 answers
954 views

Custom Post Type + Custom Meta Query Not Showing 2012 Posts

I created a custom "events" post type for a client that basically "hides" the post once it has expired (ie. the event already happened). The events are displayed in the order of the start date rather ...
David Odin Kether's user avatar
1 vote
1 answer
945 views

Pull a post based on a meta value in a custom post type

I'm trying to display a post, from a custom post type based on a meta value in that post type, in this case a checkbox that says "if this is checked show it on the front page. Usually I write a ...
Nadine's user avatar
  • 377
5 votes
1 answer
11k views

WP_Query with checkbox meta_query

I have posted this on StackOverflow too, not sure if that's allowed - if not let me know and I'll remove one (I don't want to look like I'm spamming). Anyway.... I have a custom post type and have ...
Adam Moss's user avatar
  • 1,062
51 votes
14 answers
81k views

meta_query with meta values as serialize arrays

I'm working on a project in which I'm creating a custom post type and custom data entered via meta boxes associated with my custom post type. For whatever reason I decided to code the meta boxes in ...
tollmanz's user avatar
  • 5,560