Tagged Questions

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

learn more… | top users | synonyms

-2
votes
1answer
16 views

IF statement using custom field value (ACF radio button) [on hold]

I have used the Advanced Custom Fields plugin to create a radio button called 'english_or_deutsch' with two options 'english : English' and 'deutsch : Deutsch'. This radio button is applied to all ...
0
votes
2answers
26 views

How to update a custom post title from a front-end form using ACF fields?

So I have a custom post title being written by a front-end (non-admin access) form using AFC fields. What I am after is a way to update the title when the post is updated from the front-end edit form. ...
0
votes
1answer
12 views

Sort by multiple options in custom field

With use of the Advanced Custom Fields plugin I created a select dropdown which contains 6 membership types. All of my 'listings' using this custom field are assigned one of the 6. I'd like to ...
-1
votes
0answers
17 views

AFC Relationship query not working via AJAX [closed]

I've got a ACF Relationship query on a page thats is working well on page load. It gets the first 3 related post and outputs them. Under that I have a "See All" button that makes an AJAX call to get ...
0
votes
1answer
39 views

WordPress custom post type archive with description

I have a common design pattern I'm not entirely sure how to best execute in WordPress. The layout is a listing of post teasers (title, trimmed body, image) on an overview page. Let's say example.com ...
0
votes
1answer
35 views

Wordpress loop based on url sting

I have a search form on my home page that contains ACF custom fields values in the dropdowns. On submit the form goes to /test-results/. On the form I have dropdowns for Price, Region and Title. If ...
0
votes
0answers
16 views

Use meta to match date in WP_Query

I have some posts with a custom filed named "event_end_date". I am using Advanced custom fields for that. How can I get the posts which have end_date older than today? I was trying with this, but ...
1
vote
3answers
23 views

the_content() seems to block my ACF-code

I have this simple code, but can't get the_content and the ACF-code to work together. If I include the_content() it blocks out the ACF-code, but if I remove the_content() the ACF-code works fine. I ...
0
votes
0answers
21 views

Add Custom Field to Custom Post RSS

I have a custom post type called "Podcasts" with a custom field called "podcast." The custom field is generated by the Advanced Custom Field plugin. I am trying to figure out how to hook the feed up ...
0
votes
0answers
18 views

Custom Fields of a custom post within a category list within a page

I need to construct a page containing a list of categories that include a number of posts. Each post has a set of Custom fields that need to be displayed. The hitch: Posts should be selectively ...
0
votes
1answer
26 views

Taxonomies, Adanced Custom Fields and Repeatable Fields

Using ACF I've added a taxomomy with a repeatable field. I've followed the instructions on the ACF support page to get it to output with no luck. I did wonder if the fact that the $taxonomy_name has ...
0
votes
1answer
23 views

Wordpress taxonomy child image

I've set up a hierarchical taxonomy. Each taxonomy has an image field I'm trying to output the title, image and link of child taxonomy on their parent page. I've managed to output the title and link ...
0
votes
0answers
31 views

Post type archive pages with custom query

Apologies if this is something trivial, but I can't seem to get it right and I can't quite find the correct way to tackle this from previous questions. I am building my own theme. I have the normal ...
0
votes
0answers
16 views

Override an advanced custom fields action callback [duplicate]

I'm in the process of writing a CDN plugin for WordPress and am trying to integrate it with the Advanced Custom Fields plugin. I need to filter the output of the "File" field type on the edit post ...
1
vote
1answer
26 views

How can I dynamically add a post to a custom post type which uses a custom field?

I have a custom post type called "patients". I was using only the post title, but now I need to make a relationship with users. I made this by creating a custom post field (created by ACF), a ...
-2
votes
1answer
45 views

How to use ACF repeater? [closed]

I'm using ACF but the get_field option doesn't work when using a repeater field <?php echo get_field('field_name'); ?>
0
votes
1answer
35 views

Admin approval for editing user profile

I was looking for a plugin but to no avail. Anyway, I'm building a custom Wordpress theme using ACF Pro (which works perfectly) and have added a lot of different custom fields for each user (like ...
0
votes
1answer
81 views

dirname( __FILE__) returning wrong directory inside plugin

Inside my plugin I'm adding the Advanced Custom Fields files. Part of including it in the plugin is changing the default directories using dirname(__FILE__). In step 3, include_once works fine. So, ...
0
votes
0answers
51 views

Preview with Custom Post Type Not Working

At this point I have tried everything I know to fix the issue. Issue: preview only works right after a custom posts is loaded or updated. If you make any changes or hit preview twice without updating ...
0
votes
0answers
22 views

Extract custom image URL from category taxonomy

I've attached an image field to the category taxonomy with Advanced Custom Fields which I want to set dynamically as a full width background. I've done this on the category page without a problem but ...
0
votes
2answers
72 views

Problem with wordpress query on page using custom fields

I have a website with the custom post type sammenligne, along with some customfields made using Advanced Custom fields. I have modified an archive site (archive-sammenligne.php) which displays the ...
0
votes
2answers
112 views

Order get_terms using a Custom Field

I have a custom taxonomy of "crb_issues" that has a custom field associated with it that is "issue_date" which outputs a date value for each term to looks a lot like "20140601" yearmonthday. I am ...
0
votes
0answers
23 views

unable to access image attributes in wp_postmeta when looping through posts

I have an issue with accessing attributes of a library image, particularly the "Alternate Text" attribute. I use the ACF (Advanced Custom Fields) plugin to pull back the slideshow image which is ...
0
votes
1answer
88 views

Export Users and their Advanced Custom Fields

I've google it but i am still looking for a solution. Is there a plugin or method to export wordpress users with their advanced custom fields? I don't want to export ACFs structure but users' data.
0
votes
1answer
30 views

Array sorting by custom field date

I want to order the array by a date field called date_start but how do I include a meta key for this if I already have one? $currentshowid = get_the_ID(); $today = date('Y-m-d'); $args = array( ...
0
votes
1answer
26 views

Insert a field with PREG_REPLACE – strange behaviour

I'm trying to insert a custom field (from the Advanced Custom Fields plugin), and I need to place it within a div which I'm wrapping around an img, right before the img-tag. So basically this is the ...
0
votes
1answer
81 views

Blank content php code not parsing advanced custom fields gallery add-on [closed]

I have blank contents where the content for the act gallery code is. I think there is an issue with the code. < ?php /* Template Name: Images scroll */ ?> <?php get_header(); ?> ...
-2
votes
1answer
68 views

Add image custom attribute [closed]

Im want to use Advance Custom Fields module with Gallery add-on http://www.advancedcustomfields.com/add-ons/gallery-field/ I need to add custom attributes to all images. Like for example paper type, ...
0
votes
1answer
168 views

Advanced Custom Fields - Relationship post foreach query

I've created a post type, called Package (for news packages), and want to be able to link to specific blog posts and display them on the single-package.php page. I'm using ACF relationship fields, and ...
0
votes
2answers
73 views

If or/and statement advanced custom fields [closed]

I'm really unexperienced when it comes to conditonal statements with php and unfortunately the documentation of Advanced Custom Fields isn't covering this topic as fair as I know. But anyway, what I'm ...
0
votes
1answer
55 views

The sorting of posts by a meta_query with two keys fails while separated as single queries it works

I have a list of courses I try to sort. For sorting purpose I want to use two advanced custom fields. First a select field class_day containing the days: 1 : Mon 2 : Tue 3 : Wed 4 : Thu 5 : Fri 6 : ...
0
votes
0answers
18 views

Run function after post is updated

I would like to run a function after a post is saved. That function takes a .txt file thats uploaded with Advanced Custom Field file field, makes it into an array to then a json data. I want the json ...
0
votes
0answers
122 views

How to create a dropdown on admin panel and print that value on a page or in a post?

Now I am using a custom field for this purpose. But now my client asking some thing like this. Let's say he has to display a car brand on every bottom of a post. The Car Is : Car Name Car Name must ...
0
votes
1answer
64 views

Included posts on a page searchable

With Advanced Custom Fields (ACF) I added a 'relationship field' to the pages that can select posts from a custom post type. The chosen posts will be come part of the page. Searching with wordpress ...
0
votes
1answer
402 views

Populating content dynamically via AJAX and Advanced Custom Fields [closed]

I am using a repeater field from Advanced Custom Fields to create multiple photo galleries. There are 4 pages and each page has multiple image galleries. Because of this, I want to reduce load by ...
0
votes
0answers
136 views

Datepicker and advanced custom field plugin

I am using a datetimepicker js on a custom form, when selected from the calendar - the date format comes out to be: 24-Jul-2014 I using this string value to update a meta value of a custom field ...
0
votes
2answers
76 views

List of users that clicked a 'Join' button at single post

The title might be a bit vague while I'm not quite sure how to describe it. What I want: At every single post (in this case of post type 'event') a logged in user must be able to click a 'Join' ...
0
votes
1answer
39 views

How can I optimize this code? [closed]

I have an Advanced Custom Fields Checkbox that I'd that I need to do some checks on. If a checkbox is ticked in the back end, it outputs an appropriate image on the front end. I've got some code that ...
0
votes
1answer
65 views

prevent HTML output if custom field is empty [closed]

I am using the ACF plugin for custom fields. I am using this to add a second content area to my website. I have a peice of JS that says if this div is present then add a class to the page-content ...
0
votes
1answer
217 views

Remove duplicated values from a loop

I have a loop that outputs <option> fields for a <select> group. It contains many cities' names for many travel packs that I am publishing. The trick is that I need avoid repeated values. ...
0
votes
1answer
52 views

Filter and display a specific custom field value [closed]

I am developing a travel website for an agency. I'm trying to to make the user able to select an option like "Select your departure" and filter the loop with all the departures available for the ...
0
votes
1answer
547 views

Getting custom taxonomy from custom post type

I have a custom post type called email_block and have a custom taxonomy called block_type. I need to loop through all the email blocks find out what custom taxonomy (block_type) they have. I know how ...
1
vote
1answer
288 views

Get specific repeater row (via advanced custom fields) based on Meta Query with Wildcards

I've used Example 5 of: http://www.advancedcustomfields.com/resources/how-to/how-to-query-posts-filtered-by-custom-field-values/ to query a post by a wildcard. However, my problem is I only want to ...
0
votes
1answer
100 views

Custom Sidebar in Editor (not Widget) for Custom Post Type in Genesis

I've created a custom post type for employee Profiles. The one thing I can't (yet) figure out is how to make custom sidebars for each of the employee's profiles. I have figured out 2 ways to get ...
0
votes
0answers
19 views

Post relationship with custom excerpts for each related post

I'm building a recommendations site, where people can recommend other posts and give their opinion (a short text) on that post. So in the admin, I want to include, on the "Post Edit" screen, an ...
0
votes
1answer
347 views

Retrieve a specific field from taxonomy term through advanced custom fields [closed]

I've set up a custom field which appears in a taxonomy terms page. I am trying pull an image associated with the custom taxonomy term directly However the page in which it is being displayed is a ...
1
vote
1answer
167 views

Display multiple custom post types and sort them chronological by one of their fields

I have four custom post types created with the custom post types ui plugin; each stands for an event type with a different set of custom fields created with the advanced custom fields plugin. My ...
0
votes
0answers
40 views

Get custom value from external database

a non-coder here but fairly competent to put together blocks of code :) I´m trying to build a prototype using Wordpress and one need I have is to connect to one or more different databases to get a ...
0
votes
0answers
223 views

using ACF datepicker to filter posts on a page

i’m using a wp-query to display posts from a category on a custom post type page. it works fine, and I’ve been also abble to sort my posts depending of datepicker field called “date_debut”. my posts ...
0
votes
0answers
74 views

Wordpress and advanced custom fields subcategory inherit category color automatically

Hi is it possible if I added a subcategory and inherit the parent category's color? currently im using advanced custom field plugin. i dont know to show it inthe front end that if the user left the ...