Plugin to create an interface for Custom Fields with flexible data content.
3
votes
1answer
139 views
Edit Imported advanced Custom Fields from wordpress Dashboard
I have imported advanced custom fields from one of my other site and now I want to add few more options to those fields but I can't figure out how to do it via Dashboard? I have imported the field ...
2
votes
1answer
239 views
Advanced Custom Fields query
I have, hopefully easy question. I have my query here, which is using ACF
<?php query_posts(array('post_type' => 'our-clients-list', 'posts_per_page' => 1, 'order' => 'DSC', 'orderby' ...
2
votes
3answers
2k views
woocommerce shop page to use my custom template
Before asking the question I want to tell you that I have already asked the question in http://stackoverflow.com/questions/15025213/wordpress-woocommerce-template-file-overiding
I am using woocommerce ...
2
votes
1answer
111 views
Calculate the sum of certain the_sub_fields
I am trying to calculate the sum total from two custom sub-fields using ACF. The custom field is called 'repeater' and the sub-field is called 'space_avail'. I've tried the code below but it just ...
2
votes
3answers
381 views
Advanced Custom Fields - Check if multiple get_fields exist?
I can only really seem to find documentation on wether one get_field exists or not.
Is it possible to put multiple get_field's into one variable and use that variable to check if any of the singular ...
2
votes
1answer
822 views
How to create Repeater fields using Advanced Custom Fields?
I'm using Advanced Custom Fields and trying to create a field with the [field type Repeater](http://www.advancedcustomfields.com/docs/field-types/repeater/#creating-a repeater-field).
But the problem ...
2
votes
1answer
182 views
Wordpress Search documentation: how to improve search query using taxonomy terms, custom meta fields?
I'm trying to understand how Wordpress search works. I haven't found much info on the Codex. Arguably, search is not the best WP feature. Even Wordpress.org uses Google Search.
I would like to make a ...
2
votes
1answer
127 views
Generate Advanced Custom Fields box in custom admin menu page
I have created an custom admin menu page called FCC Youtube with add_menu_page function
which has some custom fields I manually generated via HTML and PHP:
code ( just the part how I created this ...
2
votes
1answer
121 views
Display HTML only if Custom Field has a Value
I am working with a plugin called Advanced Custom Fields.
I am looking for help with code for my custom post type template, which is displaying some repeater field data. I have HTML wrapping each ...
2
votes
1answer
36 views
Show custom field from custom taxanomy term on custom post type
I need to show a list of custom taxanomy terms assigned to the current post type with a name and a custom field. (Created with Advanced Custom Fields)
Currently I use the following code, to show a ...
2
votes
1answer
182 views
How to List Events by Year and Month Using Advanced Custom Fields?
I have a custom post type "Kalender_item" with a custom Date Field (YYMMDD). I want to list all the posts on a page sorted by Year and Month.
For example:
November 2012 (all events that occure ...
2
votes
1answer
521 views
Loop with array of posts using 'Advanced Custom Fields' plugin
i'm getting in trouble using Advanced Custom Fields (acf) plugin. I'm using the 'Post Object' using more less this code:
<?php
/*
* View array data (for debugging)
*/
var_dump( ...
2
votes
0answers
1k views
Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor?
This is my setup:
Wordpress: 3.4.2
qTranslate: 2.5.32
Advanced Custom Field: 3.5.1
i've also installed qTranslate extension: 1.1.1 but I don't know how/if it works...
How can I have a ...
1
vote
2answers
90 views
How to position a `Advanced 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
1answer
1k views
Advanced Custom Fields/User Role Editor - how to hide ACF for certain users?
I am using User Role Editor to specify customized user roles. I am also using Advanced Custom Fields plugin.
I would like to be able to hide Advanced Custom Fields from showing up for certain users; ...
1
vote
3answers
76 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 ...
1
vote
2answers
939 views
Inserting Gravity Form checkbox values into Advanced Custom Fields
I'm trying to feed checkbox values from a Gravity Forms form (which creates a new post) into an Advanced Custom Fields field. I've had a read around and found some info in a post (at the bottom of the ...
1
vote
1answer
756 views
Using Advanced Custom Fields with Wordpress and Lightbox
Right basically, I am using the ACF Plugin:
( http://www.advancedcustomfields.com/docs/code-examples/ )
I want to have a field where I can upload an image through the custom fields, and it will ...
1
vote
1answer
381 views
Returning all radio button options when using Advanced Custom Fields
When using the Advanced Custom Fields plugin for Wordpress,
Suppose I have a radio button field with possible choices:
o Apples o Bananas o Cranberries
How can I return each one of these options ...
1
vote
1answer
137 views
Faking the “onSave” event
While a specific use-case, I believe this may benefit others.
I am using TurboCSV to mass-import a number of posts into WordPress (which it is doing wonderfully so far). Within that import, I am ...
1
vote
2answers
261 views
Pull out ACF in Related post plugin
I'm using Advanced Custom Fields plugin and microkid Related Posts.
I would like to display my custom fields inside Related post
This is what I got so far?
<?php //related artworks
$related = ...
1
vote
1answer
142 views
How to add contents of a custom field to a taxonomy term list?
I have a custom taxonomy term of 'artists' which is the artist's last name and a custom field of 'first_name'. To create a list all all artists with both their first name and last name I am using the ...
1
vote
2answers
90 views
Minimising number of queries on a page when using Advanced Custom Fields
I'm currently working on a site where there is extensive use of the popular Advanced Custom Fields plugin. However, as a result the page loading time can be quite slow, especially when using the ...
1
vote
0answers
25 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 ...
1
vote
1answer
38 views
Empty Super Cache programmatically (with ACF action)
I regularly use Advanced Custom Fields to create awesome backend interfaces for my clients (as I'm sure a lot of us do…). ACF includes an Options add-on that creates one or multiple global options ...
1
vote
1answer
59 views
Use Custom Post Type to as Custom Field
I am newbie of wordpress as well php programming.
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 select box in ...
1
vote
0answers
54 views
Unique key for each row in a repeater field
Is it possible to have a unique key for each sub fields in a repeater field? I don't want to use the array index, because the array index can be changed, when adding new rows between existing rows.
I ...
1
vote
1answer
99 views
Advanced Custom Fields Plugin: Get file URL into Parent
On parent page, I've got a grid of custom field values from child pages. All text fields work fine, but I'm having issues with the file URL fields: instead of the URL it returns attachment ID.
Here's ...
1
vote
0answers
26 views
Find the first occurrence of a custom field
I was wondering if anyone can help. I'm using the advanced custom fields plugin and I'm trying to find the first occurrence of a custom field by date, so really the newest post which has a custom ...
1
vote
1answer
82 views
Displaying custom field according to date
I am not sure whether this is an Advanced Custom Fields-related question, or a general PHP question, so I have also posted this to the ACF support forum, for those of you who are also looking for ...
1
vote
1answer
224 views
Advanced Custom Fields select field : How to echo the label, not the value?
I am using the wordpress Advanced Custom Fields plugin.
This question is about the select field, and in the documentation only tells me how to output the value, not the label/name.
I can't see this ...
1
vote
1answer
105 views
Sort by page information by Ascending Numbers
Basically I have a problem that I have details being pulled from advanced custom fields and I currently have them ordered by page title in ascending order.
However, instead of ordering them Ascending ...
1
vote
3answers
150 views
Saving custom fields to a custom taxonomy
I am trying to create a custom field for a custom taxonomy. update_post_meta works great with posts. Taxonomies are not posts so this won't work.
<?php update_post_meta($post_id, $meta_key, ...
0
votes
1answer
65 views
Is there a better way to pull in custom content without querying posts?
I have a custom page template that pulls in media files via advanced custom fields, as well as query posts. Now, the client wants there to be three sections by default... each one populating with the ...
0
votes
2answers
207 views
Programatically re-order images in the ACF gallery add-on. Orderby Title, ID, etc
I have a gallery field using the advanced custom fields gallery addon.
This is how I am outputting my gallery fields/images in my theme...
<?php
$images = get_field('gallery');
if( $images ): ...
0
votes
1answer
196 views
Vimeo thumbnails
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
49 views
Filtering a WP_Query meta_query by numeric values isn't working
That was a very dense title.
I have a custom post type "event" which has a Date/Time picker field "event_date" thanks to the Advanced Custom Fields plugin. This Date/Time picker saves a UNIX ...
0
votes
2answers
51 views
Remove comma from last item output from loop
(or add comma to all items but the last one...)
Most of the information I have found relates to using a counter within a foreach loop. In this particular situation I am using Advanced Custom Fields ...
0
votes
2answers
72 views
How to create a multidimensional array with multiple loops
I have this loop where I loop through every post of my CPT and fetch the title and the content of each post and put it into an array. That is no problem.
But as it happens I have created a repeatable ...
0
votes
2answers
51 views
Remove Advanced Custom Fields plugin for client?
I just have a quick question... I am using the Advanced Custom Fields plugin on a site for a costumer, just to get a little more power into it.... but I wouldn't want the client to be poking around in ...
0
votes
1answer
118 views
How can i count the images that are atacht to NextGEN Gallery
How can i count images form NextGen Gallery, the NextGen Gallery is insite a custom field.
Custom field for NextGen Gallery is " poze "
I search for it, i found this
NextGen - Display Image Count ...
0
votes
1answer
202 views
Querying posts by latitude and longitude to build a Google Maps with several markers
I have 4 different post types and 4 differey taxonomies Each term for each taxonomy stores a marker (url to a png icon). Each post has coordinates attached with Advanced Custom Fields and I'll ...
0
votes
2answers
1k views
Advanced custom fields - taxonomy terms images
I used the Advanced Custom Fields plugin to add a custom field to my taxonomy. That custom field is an image which is associated with the term. Now I have a page where I display a list of all terms ...
0
votes
1answer
763 views
How to get both image attachment ID and url
I am using advanced custom fields repeater-field to get the image url like this:
<?php the_sub_field('billede'); ?>
But I also want to get the attachment ID for the image, to be used for ...
0
votes
1answer
25 views
Advanced custom fields and Slideshow gallery desn't work together?
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
17 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
2answers
72 views
Display post_object content using ACF plugin
I have a hard time figuring out what's wrong with this code.
What I'm trying to do: setup up a custom field in admin using the ACF plugin to lists in a meta-box on all pages a list of testimonials ...
0
votes
1answer
43 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
1answer
46 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
2answers
107 views
Advanced Custom Fields - Disable Users to Edit Custom Fields
I don't really know how to explain this, so this will most probably not make much sense.
Basically, I made a custom field (drop-down selection) for the Add/Edit User page, and I want to be the only ...
