Custom Fields are fields that can holds arbitrary extra information known as meta-data.
0
votes
1answer
327 views
How can I display all values of a custom field from posts with a certain value of another custom field or from certain post types?
I know the question is quite ambiguous. Let me explain:
I have a page that lists all posts with a certain value of a custom field.
(Eg.: The page Rentals lists all posts with the value rental of ...
0
votes
1answer
55 views
+50
Rewrite custom post type url's adding meta box values
I've got these custom post types (CPT) and meta boxes:
Movies (CPT)
Genre (Meta box)
Genres (CPT)
If one movie is called Die hard then I want the permalink to be:
/genres/action/die-hard
This ...
0
votes
2answers
17 views
Display custom field if it exists and has a specific value [closed]
I am trying to display the post title if the custom field exists and has a value of apple...
<?php if ( isset ( get_post_meta($post->ID, 'mycustomvalue', true ) ) ) && if ( ...
3
votes
2answers
604 views
SELECT max(meta_value) FROM wp_postmeta WHERE meta_key='price'… stops working when value is over 999
Overview: I am not trying to return a post. I simply want the single highest value for a particular meta_value across all posts... just the value itself.
Details: I have added a custom meta_key ...
0
votes
1answer
155 views
How to call custom category field data in theme?
I am trying to add two custom fields to my categories (which I have done thanks to this answer - Any examples of adding custom fields to the category editor?)
And now I need to call them within my ...
1
vote
1answer
47 views
using advanced custom field to control css hover color
this is a bit challenging for me:
I am using the great Advanced Custom Field plugin on my site to create different color scheme to each of my taxonomy.
I created a field called taxonomy_color and ...
0
votes
1answer
25 views
filtering custom post types via meta data drop down
I'm trying to add drop down filters (that are populated by terms that are in use) to a custom search page for "opportunities" or listings page. Currently I am doing this with taxonomies but doing this ...
0
votes
2answers
52 views
Up/Down voting system for Wordpress
Looking in all posts with keywords "voting system, upvote, downvote", I can't find a satisfying solution for this issue, except accepting one of the available plugins, spend a lot of time undersanding ...
0
votes
0answers
24 views
How can I change the publish date based on a custom field?
How can I change the publish date based on a custom field?
Author uses a date picker to choose the date for journal entry. The date is used to make a list of all the users journal entries. I can ...
0
votes
1answer
165 views
Get single image from custom fields made with WCK custom fields creator
I used WCK Custom Fields Creator to create a repeatable custom field for uploading pairs of images (one color, one black and white) to posts. So for example, one post may have three fields, with two ...
0
votes
2answers
28 views
How to Display Custom Meta Box only on Specific Page IDs
I am using Magic Fields 2 for custom meta boxes and custom fields, but this situation pertains to any meta box.
I have a custom meta box that I want to display on only 3 specific page IDs.
function ...
0
votes
0answers
16 views
Form fields based on custom fields
I need to create a contest forms where the fields are based on values in several custom fields. The form layout is to be somewhat static, except from the contest questions (labels) and the type of ...
0
votes
1answer
114 views
Displaying Meta Box Image
I have some problems displaying info from my custom meta box in my custom post type single. I'm using Reusable Custom Wordpress Meta Boxes by Tammy Hart.
I'm able to display the textfields using ...
1
vote
1answer
474 views
Get multiple custom field values in a $wpdb query [duplicate]
Possible Duplicate:
How to query posts based on lat-lng coordinate as post meta?
I want to create a $wpdb query that select the closest places (custom post type) near the current ...
0
votes
1answer
125 views
“Matching” or “Linking” Two WordPress Pages: Custom Fields?
I'm helping with a custom multi language site. We have one page in English, then an equivalent page in French. I've got a "SWITCH LANGUAGE" link in the main container (next to the breadcrumbs) that ...
0
votes
1answer
138 views
How to set a default meta value for custom field
I have setup a custom meta_key for attachments. Since it is a radio button with Yes/No options, and the default value is always Yes, I need that this default value is saved into the db when the ...
0
votes
0answers
23 views
Problem with custom fields for custom meta data
I'm trying to fix an problem in custom fields for meta data information. I already added the code to add some code:
add_action("admin_init", "admin_init");
function admin_init(){
...
0
votes
1answer
16 views
Search that will look in custom field, post title and post content
I am looking for a way to perform a search, and while performing the search, it checks a custom field named keywords, the post title and the post content. If any of those fields have results like what ...
0
votes
1answer
415 views
Use ACF to display a customizable WooCommerce product add to cart button
WooCommerce is notorious for not being all that customizable (except for templating that is a seriously convoluted process).
So, I am attempting to use Advanced Custom Fields (plugin) to create an ...
0
votes
2answers
120 views
Custom fields attached to a page template only show on edit screen when page is saved
When I create a custom field and associate it to a custom page template, it doesn't show in the post editor screen until I click save (draft / publish).
Ideally, the custom field should show when I ...
0
votes
1answer
17 views
Problem On Retrieving Post Meta Data on Custom Column [closed]
I am trying to add Custom post Metadata to a Custom Column. The meta-box has two text fields as Price and Company but When I publish a new post it just shows values from company in Price column and ...
0
votes
1answer
16 views
Import data from arbitrary CSV to WPAlchemy meta fields
I've created a custom post type with several custom fields with the help of WPAlchemy, and now I need to import a bunch of stuff from some CSV files.
I'm using WPALCHEMY_MODE_EXTRACT.
By toying with ...
0
votes
1answer
25 views
Modify custom field from front end
If I need to manage a custom field under wordpress, but not from the admin area. In other words, I need that users modify the content of post custom fields from front end. What is the way to do so?
...
0
votes
2answers
43 views
How to get all custom fields with some prefix in key?
I have near 100 custom fields for each post with prefix "wps_" (examle, wps_imagine, wps_video, etc) and near 20 custom fields without prefix.
Problem that I don't know names of custom fields with ...
0
votes
1answer
31 views
the_meta - no get_the_meta query?
I want to use the_meta as though it were get_the_meta. I want to do this because when i use the_meta in my functions.php file (I'm using a shortcode to enter data to pages), it posts the meta ...
1
vote
1answer
122 views
Better Method for Multiple Meta Boxes
I'm learning about meta boxes and have gotten them to appear on my local dev, but I can't figure out how to avoid creating new functions for saving multiple meta boxes.
I assume that I could call an ...
0
votes
1answer
37 views
Delete old post with new post
Hope you can point me in the right direction, with a plugin or function.
With "Contact Form 7" logged in users post their info with "Form to Post" plugin.
Everything is front end.
It is a big form ...
1
vote
2answers
228 views
How can I save repeatable fields with one value inside an array?
Introduce
I am currently working on a slider plugin to learn a lot of PHP and WordPress.
I have create some repeatable field with javascript.
Some functional details:
When the user is clicking on ...
0
votes
0answers
32 views
List number of posts with a specific meta_key for each meta_value
I would like to list my posts by a specific custom field. At the same time, for each custom field, I would like to count the number of posts with a specific custom field value.
I have a custom field ...
0
votes
1answer
46 views
Custom query with category exclusion and post-meta “whitelist”
I have two widgets, one shows News while the other shows everything except News (We'll call the second one Blog). The blog portion is currently working correctly.
The News posts are either ...
0
votes
0answers
10 views
set categories based on custom field
i have a xml feed coming into my wordpress site and what i need to do is create a function that automatically assigns categories based on the valus of 2 custom fields
so i have salaryband (name of ...
1
vote
1answer
1k views
How do I use wp_query for WordPress search?
I would like to create a custom search form to search posts based on the values of about 4 custom fields. I tried using wp_query to achieve this but so far my biggest problem is that the I don't get ...
1
vote
2answers
989 views
Woocommerce with metabox plugin
I'm using woocommerce as my e-commerce solution and the metabox plugin ( http://www.deluxeblogtips.com/meta-box/ ) to make my life a lot easier when implementing meta boxes. I've never had any issues ...
0
votes
0answers
20 views
Complex WP_Query Using Post Date And Post Meta
I am using Wordpress as a CMS on a website which has standard posts, a custom advert post type and a custom event post type. The event post type has some custom meta which stores the event start date.
...
0
votes
0answers
26 views
Search with meta_query and tax_query
I'm working on a little database for series based on wordpress. I've implemented a custom post type called "anime", some taxonomies (Genre, a_types..) and a lof of customfields. (based on acf). Now ...
1
vote
1answer
348 views
Sort posts based on multiple custom fields
I have a three custom fields
Meta Key → YOUR_PREFIX_newcar_body_type
Meta Key → YOUR_PREFIX_newcar_transmission_type
Meta Key → YOUR_PREFIX_newcar_variant
and I have to sort posts ...
1
vote
1answer
2k views
Get custom field values into the sidebar/widget?
I haven't seen this done, but I want to return the custom field values outside of the loop in the sidebar.
Is there a plugin, or another way to achieve this?
thanks!
0
votes
2answers
48 views
Interrogate a page within a loop to check template type or custom meta data (Pages vs Posts)
I've spent a few days researching working with WP static pages - as separate from posts.
Although I've found useful guidance, I can't seem to find any good tutorials or worked examples that show me ...
0
votes
2answers
242 views
How to get custom image field of specific post id
I have a page where I'm pulling in content from another post, outside of the loop.
I've been successfull at getting the content of the specified post, but I cannot get the image from a custom field ...
0
votes
1answer
1k views
Show values of custom field created with ACF on a page
Im using ACF to create custom fields. One of them is a list of checkboxes that display some options (option1, option2, option3....). and what i need is to show these options on a page in a list like ...
0
votes
0answers
23 views
Custom WP_Query for WordPress Search Results with meta_query
I am using a custom query to generate my search results. The code I am using works perfectly without the meta_query variables in my arguments array.
I am trying to compare multiple custom fields with ...
0
votes
2answers
358 views
Creating a custom menu/widget area
I'm looking to create a /menu/widget area like the following site:
http://www.microsoft.com/en-gb/default.aspx
please see sections under downloads, security, support, about
is this considered a ...
0
votes
1answer
37 views
Custom wysiwyg editor doesn't execute shortcodes?
I encounter this weird problem.. I'm trying to create a simple & easy website for a client. He wants to embed video's into the page.
I use different customfields assigned to specific elements in ...
0
votes
1answer
29 views
Display movies that apear this day next
This code retrive me the movies that are comming in cinema, i want to be able to list movies that apear this day, next day ... 7 day week
Ex: Today is 13.05.2013, i want to list the movies that ...
0
votes
2answers
123 views
can you set a default value to a custom field
I'm looking to set a default value to a specific custom field, in case the client doesn't add into the custom field it already has a specific number associated with it.
one step deeper, I'd like it ...
0
votes
3answers
438 views
Preserving line breaks when saving and displaying custom fields data
I'm collecting data via a form plugin and save that data in form of a post with several custom fields. I then display the content of the post and the custom fields on my post template via
<?php ...
0
votes
1answer
30 views
custom field in admin columns
Im trying to understand how to get the custom field incr_number into admin columns. However im failing to understand and im googling but not finding a direct answer.
It cant be that hard surly?
...
0
votes
0answers
38 views
How to allow user to add to, but not edit, a post?
I saw something very nifty on peerwise (basically a med students social network for making exam questions) that allows people to make additions to something but not edit the original post.
I ...
0
votes
1answer
113 views
Select custom posts by meta_value and sort by a different meta value
I have my query set up like this:
$article_query = new WP_Query(array(
'meta_key' => 'issue',
'meta_value' => $post->ID ,
'post_type' => ...
2
votes
1answer
112 views
$wp_query meta_key naming issue
What I am attempting to do is sort posts by custom fields.
I have a few custom fields that don't query properly and I get the 404 page. The fields that don't work I used hyphens in the naming ...

