**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
2answers
138 views

How to display a number of posts based on a Advanced Custom Field (ACF)

I have the following code working fine in my theme: <!-- Modify query object --> <?php query_posts('showposts=5&post_type=news'); ?> <!-- Start the Loop --> <?php if ( ...
0
votes
1answer
155 views

Limit search field to just search a custom post type with custom fields

I'm sure this is possible, I just don't think I am going the right way about it. Basically, I have two custom post types (Investigators & Centres), both of which have search forms on their ...
0
votes
1answer
84 views

Sorting the portfolio by an ACF? [closed]

I have an advanced custom field attached to every item in my portfolio (its another date) and I want to sort my portfolio by this field. Is this possible? I was hoping you could just swap the orderby ...
0
votes
1answer
535 views

Order Custom post type loop by custom field (datepicker)

I know there are a lot of articles and documentation on this but I can't seem to figure it out. I have a custom post type 'agenda' wich is made for events. I want to sort this by the eventdate. For ...
0
votes
1answer
26 views

Showing a post depending on the Custom Field value

<?php if (get_post_meta($post->ID, 'coach_location', true) == "Austria"): ?> ...this works, but manually checking each country and repeating the post content code is getting arduous, is it ...
0
votes
1answer
95 views

Only Show an Advanced Custom Fields custom field on a specific template

I am building a site that will rely on Advanced Custom Fields to control the information displayed on a page template. Is there a way I can programmatically show a field (or fieldgroup) only when that ...
0
votes
1answer
264 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
115 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 ...
0
votes
1answer
1k 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
1answer
54 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
38 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 ...
0
votes
2answers
520 views

Validating custom fields before post save

After much unsuccessful searching, I'm hoping someone here can help me out. I am using Advanced Customs Fields (I assume most people are familiar) to create a post from the front end. I want to ...
0
votes
1answer
726 views

Advanced custom fields sort repeater by date

I have a repeater field on a page template to show small snippets with a link that needs to be sorted by date (recent 1st). I'm using the current code, but there isn't any sorting in place. ...
0
votes
1answer
173 views

Advanced custom field - posted fields from custom post type

I'm using the Advanced Custom Fields - plugin and I have custom post type called 'course' where some fields from the ACF are related to. I have this code below: function update_course($course_id) { ...
0
votes
1answer
339 views

Advanced custom fields - pulling data in from another page

Hello I am using advanced custom fields and I am trying to pull data from multiple pages and display it on another I set up a relationship field called "data", and then on page X where the ...
0
votes
1answer
107 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
330 views

Advanced Custom Fields plugin : displaying a field while omitting the p tags

In Advanced Custom Fields plugin, is it possible to display a WYSIWYG editor field in which p tags are omitted?
0
votes
1answer
3k 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
1answer
628 views

How to Explode a Textarea Field and Echo each line separately, wrapped with HTML

Need to take an advanced custom field textarea and display it in my template by breaking out each line separately. I want to wrap each line of the textarea with HTML, like an <li>. I've tried ...
0
votes
1answer
372 views

Shortcode strips formatting and returns at content top

Using the Advanced Custom Fields plugin and I've got a shortcode going for a repeater field, but it returns the list at the content top. I changed it from an echo to a return, which I understood would ...
0
votes
1answer
894 views

The conditional logic only works to show or hide?

I am using the Advanced Custom Fields for custom fields in the User Profile. I use conditional logic to display one of between four fields, each field will be displayed according to a radio field ...
0
votes
1answer
320 views

Show related posts on single.php, grouped by taxonomy terms, with Advanced Custom Field post object selected

I have posts of custom taxonomy called Areas with terms such as Articles, Presentations, News etc. These terms are applied to the normal post-type "post". Under a custom-post-type called "Company", I ...
0
votes
1answer
124 views

Adding new parent item to admin bar

I see many questions have been asked about adding something to the admin bar, but still I can't get a new 'parent' admin-bar item for Advanced Custom Fields to work. The admin bar doesn't show up if I ...
0
votes
1answer
1k 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 ...
0
votes
1answer
589 views

Advanced custom fields and Slideshow gallery desn't work together? [closed]

Im using WordPress 3.5.1 and the twentyten theme. I'm using advanced custom fields and want to ad a slideshow. I'm using the plugin Slideshow Gallery ( ...
0
votes
1answer
230 views

How can I get the name of term post meta value which equals term id

I have a custom taxonomy (location) that is being populated automatically by an advanced custom field on user save. The issue is that it saves the term_id in the postmeta meta_value field. When I echo ...
0
votes
1answer
92 views

Perform function on publish AND save (not just save)

I am using this function to auto-set a post title based on a couple of custom fields: function set_event_title( $data , $postarr ) { if($data['post_type'] == 'event') { $getdate = ...
0
votes
2answers
2k views

How to Increment ID value within ACF Repeater Field Loop

The code below is meant to display an Advanced Custom Fields Repeater field. I need to have unique values for the "for" attribute of the Label tag, and for the ID value of the trailing checkbox input ...
0
votes
1answer
118 views

Custom field Search with Relavanssi

The site I'm working on is a talent website that has actors names, headshots, and resume all created with post_title, featured images, and custom fields. I am using Relavanssi to make my search ...
0
votes
1answer
602 views

Display category multi-select with Advanced Custom Felds

I'm trying to have a multi-select where users can select which categories they want in a template. The functionality i want is similar to the "Select" field type but only pulling through categories to ...
0
votes
2answers
487 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
123 views

How can I track and output when a field is updated? (currently using Advanced Custom Fields)

Trying to work out how I could track the time that a field was updated and display that time on a page. So far: Using advanced custom fields and the options page the user updates some fields What ...
0
votes
3answers
1k views

Advanced Custom Fields - Check multiple Empty Fields [closed]

I'm building a Directory in Wordpress, and using Advanced Custom Fields for the client to populate the directory entries. One of the sections is for Social Media icons. Using the following code, I ...
0
votes
1answer
54 views

Specific website content

I want to design a website that, in addition to the usual parts like blog, contact us, image gallery, etc., has another part for books and articles. The admin must be able to enter book and article ...
0
votes
1answer
845 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
2k views

Advanced Custom Fields Plugin: how to use a checkbox to allow a post to show up in desired “zone”?

I am having issues getting the below code to work. I created an Advanced Custom Field (top_articles) with a checkbox containing three options: top_articles_left, top_middle, top_articles_right. I ...
0
votes
2answers
856 views

Advanced Custom Fields Plugin: how would I get an image src path uploaded from User Profile?

I have created an Image Upload field for a User Photo in the User Profile section in the wp-admin using Advanced Custom Fields. I realized ACF could do this per this post: Photo gallery on profile ...
0
votes
2answers
3k views

Advanced Custom Fields - category image

I'm trying to get an image for I previously assigned to a category using ACF. here's what I'm doing: $category_image = the_field('cat_small', $linkedcat); where $linkedcat is something like ...
0
votes
2answers
3k views

Custom Taxonomy Images with Advanced Custom Fields

I've created a custom Taxonomy for a Custom Post Type, and created five or so terms within the taxonomy. I've created a single image upload and assigned it to the custom taxonomy, and uploaded images ...
0
votes
2answers
2k views

Simple Calendar

I'm using the ACF (Advanced Custom Fields) and selected the date picker. I'm wondering if anyone has created a simple calendar plugin that can grab the field and produce a calendar. How should I do ...
0
votes
1answer
667 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 ...
0
votes
1answer
960 views

How do I retrieve an image's width and height using Advanced Custom Fields?

Using a get_field('sampleImage'), how would I go about in order to get the image's width and height using the ACF plug-in? I need to be able to print out the img tag with width and height attributes ...
0
votes
1answer
183 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')): ...
0
votes
3answers
165 views

Weird problem on if statement

I'm facing a weird issue trying to do what I'm going to explain now. Context Plugins I'm using: Custom Post Type UI / Advanced Custom Fields Functionality: I have a custom post type called ...
0
votes
1answer
1k views

Show ACF fields only on certain page in the backend

I have created some custom fields with Advanced Custom Fields and set them to appear in my custom post type named X (post type is equal to X). But I only need them to display on a particular single ...
0
votes
1answer
1k views

Advanced Custom Fields WYSIWYG More tag

Before describing the problem, let me first tell that I have already searched on google, also read the ACF documentation, support, even asked on their support forum but it's hard to get any kind of ...
0
votes
1answer
994 views

How to call function from another plugin?

I am using the Advanced Custom Fields plugin and want to read the value of the custom fields. For dropdown and text fields, this is straightforward as the value is kept in plain text, so the ...
0
votes
1answer
619 views

Advanced Custom Fields Plugin - Images not displaying

I am using the ACF purely so the user can upload images to a predefined location and have assigned the page rules accordingly. Everything seems to be fine on the WP back-end, with the three images ...
0
votes
1answer
36 views

Custom Post type and Custom Field WP_Query

I am developing a site for a client who is a Youth Football (Soccer) Club, with lots of different Teams depending on the abilities and ages of the children. I have added in a Custom Post Type called ...
0
votes
0answers
13 views

How can I add a custom location rule for theme hybrid post templates in advance custom fields [on hold]

I am trying to add an Advance Custom Fields custom location rule to choose Theme Hybrid post templates. In my functions.php file I have the following code if ...