**NOTE** Support for this plugin is off-topic. Support questions should be asked on the plugin's support page.

learn more… | top users | synonyms

0
votes
0answers
57 views

Hiding an Advanced Custom Field based on Taxonomy Field selection

I am trying to to show/hide one advanced custom field based on the ACF taxonomy field without any luck. I have tried reworking this example a bit to fit my needs but nothing happens. Any ...
0
votes
1answer
218 views

Querying Advanced Custom Fields

I've been back and forth with this and not able to get my Advanced Custom Field query working. According to the documentation in the link above, this is what my array should look like: $args = ...
0
votes
1answer
106 views

PHP echo stripping formatting in Advanced Custom Fields [closed]

Using Advanced Custom Fields in Wordpress, I have the following code: if(the_sub_field('company_name')) { echo '<strong>Company name:</strong>'; echo '<p>' . ...
0
votes
1answer
147 views

Let Users Filter Posts by Custom Fields

I'm using the Advanced Custom Fields plugin to add custom fields to my posts, but was wondering what is the best way to go about creating a filter box for the user to filter through posts. I've ...
0
votes
1answer
66 views

Creating array to compare custom field values

I think I need some guidance here. I have a list of custom posts on a an archive template page that displays information from each of the custom posts. They are looped through using WPQuery: ...
0
votes
1answer
2k views

Custom field with Types: get custom field's value label (of type select)

We use the Types plugin to setup different custom products for a client. A certain custom post (product) contains some custom fields which is a drop-down select. When creating a new product of this ...
0
votes
0answers
89 views

Advanced Custom Fields: wp_get_attachment_url not working, attachment page says “Missing Attachment”

I used Advanced Custom Fields to add a file upload field to a custom post type. I have the following code in the template for this custom post type: $file = get_field('file'); echo ...
0
votes
1answer
841 views

ACF: Display category name using taxonomy field

I'm currently using the taxonomy field in ACF, with the aim of printing the category name in the front end. Using it like so: <?php $term = get_sub_field('category_selector'); if( $term ): ?> ...
0
votes
1answer
90 views

ACF loop and php formatting

The following php will loop through each page and then output ALL of the ACF custom fields sequentially. What I need help formatting is a conditional statement that places all $fields, except ...
0
votes
0answers
65 views

Display Category only if there are posts of custom type

I need to do a small modification on WP site done by someone else. And my WP experience is close to zero. But I'm comfortable with PHP. Wordpress Version: 3.8 Plugins: ONLY Advanced Custom Fields ...
0
votes
1answer
91 views

Specifying a size when displaying an image associated with a taxonomy through ACF

I created a "books" custom taxonomy for my "book" CPT. Using ACF, I assigned an image to each my custom taxonomy terms. I have a page where I display all my "books" terms as images. It works but now ...
1
vote
0answers
165 views

WP_Query with meta_query dosen't return results

I am trying to get list of posts filtered by fields I added using the advance custom fields plugin. I have more fields that I want to use but it doesn't work as I want it to. Here is what the query ...
0
votes
1answer
220 views

ACF | Repeater Add-On Query

Hoping someone can assist as I am new with ACF, particulary around the repeater add-on I am creating a "Postage Pricing" table where this table will consist of 5 columns with 7 rows say. 1st Column ...
0
votes
1answer
2k views

Advanced Custom Fields: query posts filtered by multiple field values

I have the following: custom post type: q-and-a custom taxonomy: q_and_a_category taxonomy terms: design, engineering, project-management I'm creating three separate pages that filter the custom ...
0
votes
0answers
56 views

Click Swatch, Change Image

I'm using the Advanced Custom Fields plugin and am trying to get a series of images to change when their corresponding Swatch Colour is clicked. Here's what I've got so far for my images loop: ...
0
votes
2answers
220 views

Send Multiple Custom Field Values Through the URL

Basically, I'm trying to follow this tutorial to add an action to the pre_get_posts and create a custom meta_query so I can alter the query within the URL and display babies,children and home books ...
0
votes
2answers
901 views

If/Else Statement for Advanced Custom Fields

I'm still trying to wrap my head around PHP (no pun intended) and am trying to get something to work using the Advanced Custom Fields plugin in WordPress. So, I've got a repeater field that's made up ...
0
votes
1answer
777 views

Filter posts by custom field (Advanced Custom Fields)

I'm using Advanced Custom Fields and have been following along with this tutorial on Creating a WP archive with Custom Field Filter. In their example, they're using Radio Button Field; I would like to ...
0
votes
0answers
78 views

Using Advanced Custom Fields with Associative Arrays

So, I've got this conversion chart I'm working with, and have stored its values in a simple array, wherein it lists both UK and US sizes: $conversion = array( "2.5" => "1", "2.75" => ...
1
vote
1answer
1k views

advanced custom fields update_field for field type: Taxonomy

I need to insert a post via wp_insert_post and then add relevant post_meta - however, the WP admin has been customized with the excellent ACF. I know I can add_post_meta in this way: add_post_meta( ...
0
votes
0answers
88 views

Self-added mysql column as custom fields value

I am trying to add a value from a column that I've added myself to the wp_posts table as a custom field. So right now there is a column called 'shares' which holds an int value and I want that int ...
0
votes
1answer
24 views

Display total unique custon field results

I need show total results of a custom_field: Each post has a field "city"; How many unique cities are registered? Ex.: Madrid + Paris + Madrid + London = 3 cities
2
votes
2answers
6k 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
38 views

Using ACF to Link Images to Colour

I'm working on a website, where clicking a colour swatch will change the colour of the image displayed. Essentially I need to upload a series of images with a colour attached to each image. I figured ...
0
votes
2answers
109 views

use advance custom field inside query post command [closed]

I can't find a solutions in internet or advance custom field website docs about this. I hope wordpress genius can help me. I use http://wordpress.org/extend/plugins/advanced-custom-fields/ for themes ...
1
vote
2answers
2k views

ACF - get fields from group

i have been using this code to get all fields from a specific group: <?php $GroupOrPostSlug = 'acf_specialgroup'; //or insert the ID of your fields Group. $groupID=''; global $wpdb; if ...
0
votes
0answers
167 views

Custom Post Type and Advanced Custom Fields

I am trying to build a sidebar widget that will query my custom post type called events. What I'd like it to do is query the posts for any post with a matching meta key value that is similar to ...
0
votes
0answers
55 views

How to call one custom field value if another custom field value is equal to today's date

I'm building a website for a school division in Canada, they help organize their days by assigning a school day to each day of the week. There are 5 school days, and so they do not always end up on ...
0
votes
1answer
146 views

Separate [Advanced Custom Field] values by commas

I have a 'relationship' custom field that allows you to select multiple values and display them via <?php $post_objects = get_field('field'); if($post_objects!=''){ ?> <?php foreach( ...
0
votes
0answers
84 views

Advanced Custom Fields - disable radio buttons checked before

and at the beginning my apologizes for my language skills On my webpage, i created Taxonomy field with single available value (radio buttons) and related with pages. For example when i'm creating a ...
0
votes
2answers
114 views

Get post by ASC from custome field DATE picker

i want to custome post by ASC. i have some add some post in bachend one of the field date picker. i want to post by date which i set in date picker field <?php $args = array( ...
0
votes
1answer
89 views

ACF Image Object Sizes Issue on Multisite

I am using Advanced Custom Fields and have added an image with the return value being an image object. In my theme I if I dump the values of the object all the URL's for sizes are the same regardless ...
0
votes
0answers
54 views

Updating custom fields with data from the database

I'm having a real problem with updating advanced custom fields (within a custom post type) with data from the database. I have a table in the database called 'wp_company_profiles' with fields ...
0
votes
0answers
61 views

Using mr-image-resizer and Advanced Custom Fields

I'm using Advanced Custom Fields for displaying images in my Wordpress theme, but need to implement the TimThumb alternative mr-image-resizer. Here's my 'standard' code: <?php ...
1
vote
1answer
485 views

Updating the database with advanced custom fields

I'm having a real problem with updating a database table using advanced custom fields within a custom post type. I have a table in the database called 'wp_company_profiles' with fields 'address_1' ...
0
votes
1answer
50 views

Advanced Custom fields not available yet during publish_page action

I have a function that I use that ties into the publish_page action that I use to create multiple pages on my site. This function worked perfectly for a while, but ceased to function correctly after a ...
0
votes
1answer
2k views

How to get the get the select values created by ACF plugin in wordpress

Basically I want to display the select box so admin can select the option while creating or editing a category to display the category in front page with image or not. I use advanced custom plugin to ...
0
votes
0answers
124 views

add print button to print from admin

Hi & thanks for reading me ! I'm looking for a way to print out the following, from the admin panel ONLY : I've defined customfields using ACF for members, and would like the admin to be able to ...
0
votes
1answer
27 views

Can't see custom field after the Loop [closed]

I have created a loop to show some products on my wordpress site and they seem to be working fine they reel out the products however if I place one of custom fields after the loop it doesn't show. I ...
0
votes
1answer
34 views

If custom field is empty, use one from a previous post

Let's say you have a few custom fields (I use the advanced custom fields plugin for it). There is an extra field in posts called 'afbeelding_onder'. It is not required but on index.php within the ...
2
votes
1answer
411 views

Custom field in TWIG template - Advanced custom fields plugin

Does anyone know how to insert a custom fields (from Advanced Custom Fields plugin) into a twig template? This is the code I want to add into the twig file. <img src="<?php ...
0
votes
1answer
64 views

Collection of fields in a single post

It's possible to create custom post types and custom fields but, is it possible to create custom field collections? That is, groups of different fields as an entity (a dropdown, two images and a ...
0
votes
2answers
467 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 ...
4
votes
1answer
430 views

Unable to get Preview of Uploaded image within a Custom Meta box

I first followed the steps in this tutorial. Added the Image Uploader, tried it out but I realized it's an older version of the WP Uploader... So I then found this post, and now my uploader is ...
1
vote
2answers
562 views

Adavnced custom fields relationship query plus query inside

I am currently developing a site, I have three custom post types (speakers, events, videos). Each event has a relationship with speakers so when a event is created they select what speakers spoke at ...
0
votes
1answer
450 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
78 views

Wordpress front end posting to multiple blog in multisite with advanced custom field

I am using advanced custom field frond end posting. <?php function my_pre_save_post( $post_id ) { // check if this is to be a new post if( $post_id != 'new' ) { return ...
0
votes
2answers
70 views

Custom time field won't sort regardless of format

I'm using a custom fields plugin for WordPress (Advanced Custom Fields) and am using a time picker field set to format: "h:mm tt". Using a typical WP query, I'm attempting to sort by "start time" in ...
3
votes
2answers
1k views

Advanced Custom Fields and Yoast SEO keyword analysis [closed]

The problem I'm having is the keyword page analysis tool doesn't read my custom fields so I am trying to figure out how to run a filter on them. I found a blog post on Yoast website here here which ...
0
votes
1answer
311 views

Time sort with meta_key using UNIX timestamp failing due to date differences

I'm dealing with the following issue trying to sort a custom post type by a meta key created using the Advanced Custom Fields plugin Date and Time Picker add-on. The add-on creates a jQuery datepicker ...