Plugin that creates custom fields.

learn more… | top users | synonyms

0
votes
1answer
832 views

Order by custom field date?

I've created a category "Expire Soon" and i want to insert and sort the posts by custom field "expiration_date". I use this code but the posts are sorted by custom field "expiration_date" but not by ...
0
votes
1answer
2k views

Get Advanced Custom Fields values before saving [closed]

Basically, I need to alter the info the user inputs into an advanced custom fields textbox before it is written to the database but I don't know how to grab it. I can only get it after it has been ...
0
votes
1answer
92 views

Search with filters and title

I would like to search in custom_post by title and by the ACF fields. So, I used the WP_Query WordPress function but I can't filter by the title, just by the filters. When I submit my form, I have ...
0
votes
1answer
901 views

Automatically fill custom field value on post publish/update

I've searched around a bit, and I'm having trouble finding an answer to this question. What I'm trying to do is automatically fill a custom field when a post (custom post type) is updated or ...
2
votes
2answers
475 views

Using Custom Function With Advanced Custom Fields

I've written a custom function which works with the native WordPress custom fields function but I need it to work with the Advanced Custom Fields plugin. I have created the custom field and meta box ...
3
votes
1answer
170 views

Filter next_post_link() and previous_post_link() by meta_key?

I have a page with two sections, each uses a different WP_Query() to pull in events, which are a custom post type. Each WP_Query() queries a meta_key for the event date so that Section 1 only displays ...
1
vote
1answer
374 views

Use Custom Post Type as Custom Field

I want to create a custom post type for store that having all store names and it is working. Now I want to fetch the all stores in a select box in every new post of WordPress, then selected store name ...
1
vote
2answers
785 views

How to position a custom field before the editor

I have installed Advanced Custom Fields 4.0.1 and created a new Field group containing a single field called preamble. I would like to position this new field before the editor in the posts edit ...
1
vote
3answers
441 views

Change content before writing to database

I've searched around but I can't quite pin down the answer for this. I am attempting to use the content of a custom field as post_data and save it to the database as such when a post is created or ...
0
votes
2answers
181 views

How to query categories with Advanced Custom Fields?

I'm currently using Advanced Custom Fields and I was wondering if anyone know how to filter categories by custom fields? I have a custom field in my categories using the checkboxes field. I want to ...
0
votes
1answer
2k views

Get the label from ACF checkbox

I feel like this should be easy but for some reason I can't get this to work? I have several similar but distinct colors in list of products. I need to be able to grap the label to show to the end ...
1
vote
1answer
576 views

Conditional statement for parent, child and grandchild pages

I'm trying to figure out how to set up a conditional statement to check if the parent, child or grandchild is being displayed. This is what I've got so far: <?php if ( is_page( 'about' ) || '29' ...
0
votes
1answer
200 views

ACF checkbox array is returning numbers, not labels [closed]

I am using Advanced Custom Fields and the add-on Repeater to create a field in the admin through which a user can select multiple icons. Each icon has an associated label, and I'm trying to return the ...
0
votes
1answer
377 views

Check for the existence of custom field

I am using the Advanced Custom Fields plugin, and I want to do a query to show all posts where a "date" field is before today and where another custom field (a report) has a value. For now I have ...
0
votes
1answer
844 views

update_post_meta and update_field ony working when saving the post

I use Advanced Custom Fields (ACF) to store data in a custom field. I had latitude and longitude information stored separately, but I they need to be in one custom field so I made the function below. ...
0
votes
1answer
89 views

How to detect when a file has been uploaded?

I'm trying to analyze a file after it has been uploaded using a custom file upload field (ACF). Is there a way to do this using a hook? If not using a hook then maybe theres a Javascript event?
0
votes
2answers
448 views

Custom size for image uploaded to custom field in user profile?

I'm using advanced custom fields and set an image upload field in user profiles. I'm using this image a few places on the website and need to set a custom size for it on some pages. If I set ...
0
votes
1answer
739 views

Advanced Custom Fields: Using category as a rule, before publishing new post?

I am using Advanced Custom Fields plugin to assign some fields to posts with a certain category, but the fields does not appear before I publish the post. I have made some links on the dashboard, so ...
0
votes
1answer
1k views

meta_query with array as value

I am writing some PHP which allows users of my site to submit a form and query posts by their post_meta. Everything works fine except for one thing, I used Advanced Custom Fields to create the ...
0
votes
1answer
612 views

Vimeo thumbnails [closed]

I use Advanced Custom Fields to show Vimeo videoes on a site I am creating for a client - The client pastes the vimeo ID (the last letters in the url) in a field, and the video is shown. But I would ...
-2
votes
0answers
23 views

-Advanced Custom Fields- Show the content only if the user is in an array [on hold]

this is a follow up from this question : Using a custom field value as current users name I opened a new thread because the question I'm asking is slightly different from the original.. I have used ...