Custom Fields are fields that can holds arbitrary extra information known as meta-data.
0
votes
1answer
119 views
Adding class to last list item? Not WP generated
this one has been getting me for a while. At the moment I have a repeater field with Advanced Custom Fields:
<ul id="servicelist" class="clearfix">
<?php if(get_field('homepage_service')): ...
1
vote
2answers
245 views
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
1answer
50 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 ...
1
vote
0answers
83 views
$form_fields from attachment_fields_to_edit returning empty array
I'm trying to remove the caption field from non-images attachments' edit page, which should be a simple matter of unset($post['post_excerpt']), but I can't unset a non-existent value...
Looking at ...
0
votes
1answer
338 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
2answers
26 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
648 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
193 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
63 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
76 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
235 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
1answer
199 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
47 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
19 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
140 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
497 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
142 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
145 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
28 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
26 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
28 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
27 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
38 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
59 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
40 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 ...
0
votes
1answer
40 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 ...
0
votes
0answers
38 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
73 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
11 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
2answers
1k 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
34 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
34 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
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
55 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
266 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
0answers
41 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
405 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
51 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
36 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
1answer
35 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
42 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 ...
2
votes
1answer
123 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 ...
-1
votes
1answer
89 views
How to get lowest price from custom fields of posts
Here is my Code.
It is get sub category from main category. and from sub category having different posts related about different products. Now issue it this that i want lowest price value from ...
1
vote
0answers
25 views
Admin Area Custom Type Search By Meta Fields Without Title & Content
I have a custom post type that uses several meta fields. In the admin area I would like to be able to search by those meta fields. I have implemented this currently in my functions.php with this code:
...
0
votes
0answers
21 views
Show custom image size when all I have is the image URL
I'm using the Types plugin for a client's project and they want to output some gallery images as thumbnails which link to the larger versions.
The problem is the full size versions are MASSIVE (I ...
1
vote
0answers
33 views
Copying Custom Meta Values from existing post to a duplicate post
I'm trying to revise an existing WP plugin BU Versions to accept different custom meta field values from items I've set-up using the Advanced Custom Fields (ACF) plugin.
BU Versions will copy over ...
0
votes
0answers
31 views
How to display all values of a multicheck array if they are checked?
I'm really a rookie to PHP, i'm using the customfield fields&meta boxes plugin for wordpress.
Normaly when i register a customfield,
i display them by using:
<?php if ( ...
0
votes
1answer
22 views
Group pages by custom field values
I plan to have each individual product as a page, with custom fields for : Brand, size, feature 1 and feature 2.
My question:
Will it be possible to build a summary page template say for Brand, ...
2
votes
1answer
63 views
Frontend posting - everything saves other than checkboxes?
I have a form on the frontend of Wordpress which is saving all fields except a checkbox array. It displays and saves the correct values if I tick the boxes in the backend post editor, and the ticks ...
5
votes
3answers
680 views
Display custom post type and custom fields within a Bootstrap Carousel
I am using the "Types" wordpress plugin for the first time. I created a custom post type, as well as some custom fields.
How do I dynamically call all the custom posts into a Bootstrap carousel, ...



