Plugin that creates custom fields.

learn more… | top users | synonyms

4
votes
3answers
25k 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 the ...
4
votes
1answer
407 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 ...
3
votes
3answers
227 views

Compare two numeric custom fields

I use Advanced Custom Fields and have a custompost-type "matches". This post-type contains two fields "goals-made" and "goals-against". I want to query wordpress to show only the matches that were ...
3
votes
1answer
2k 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 ...
3
votes
1answer
332 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 ...
3
votes
1answer
4k views

Qtranslate + Advanced Custom Fields: how to have a multilanguage wysiwyg editor? [closed]

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 ...
2
votes
2answers
1k views

Pods cms and “advanced custom fields” plugin

We are planning to build a quite big database to store data for our 5000 yearly subscribers association. We were considering pods cms for our needs since it permits a good flexibility in building a ...
2
votes
3answers
975 views

Advanced Custom Fields - Get custom fields from parent page

I'm using Advanced Custom Fields making it easier for my client to manage his content. On all of my child- and parent pages i would like to have the same header image and sidebar information. ...
2
votes
2answers
2k 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 ...
2
votes
1answer
1k 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
1answer
2k 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 ...
2
votes
1answer
2k views

Using Advanced Custom Fields with Wordpress and Lightbox

I am using the ACF Plugin. I want to have a field where I can upload an image, and the result will display the full image in the Lightbox and then then full image will be resized into a thumbnail from ...
2
votes
1answer
119 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 ...
2
votes
3answers
1k 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
3k 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. But the problem is that the Repeater option doesn't appear in the select list with the field types. I can't ...
2
votes
1answer
1k views

How to Display ACF Relationship Custom Field as Link to Specific Custom Post?

OK. I am reading this ACF tutorials, but I am not getting into this. I have 2 post types: Lists and Contacts. Every List must be related to some Contact, and I use Relationship custom field type ...
2
votes
1answer
421 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 ...
2
votes
1answer
1k views

Using Advanced Custom Fields in a widget

I've built a widget to show pages from a certain category in a dropdown menu. The page that's selected will show up on the homepage. This all works, except the Advanced Custom Fields (ACF) are all ...
2
votes
1answer
912 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
345 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
2answers
209 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 ...
2
votes
1answer
670 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
81 views

WordPress meta_query and order by custom field

I have a Custom Post Type called "Films", with a Repeater field called "Showings", which have a field "start_datetime" of type DateTime... I want to perform a query to get all those Films with a ...
2
votes
1answer
281 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 ...
2
votes
0answers
262 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 ...
2
votes
1answer
82 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
779 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
1k views

Loop with array of posts using 'Advanced Custom Fields' plugin [closed]

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( ...
1
vote
1answer
2k views

Where are custom field values stored in the database

I am using the advanced custom fields plugin for posts. I would like to know where custom fields are stored. I checked the wp_posts table. However, I could not find the posts with custom fields. I ...
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 ...
1
vote
2answers
696 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
1answer
172 views

Advanced Custom Fields - Query Efficiency

For testing purposes I have edited page.php to have nothing other than: <?php while ( have_posts() ) : the_post(); ?> <h1><?php the_title(); ?></h1> <?php $site_options = ...
1
vote
1answer
2k 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
707 views

Displaying Custom Fields on Post with Genesis Child Theme

I have tried everything to get Custom Fields to display on my posts using a Child Theme of the Genesis theme framework. I have tried to follow every tutorial I could find relating to it but still I ...
1
vote
2answers
842 views

Advanced Custom Fields and Yoast SEO keyword analysis

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 ...
1
vote
3answers
405 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
3k 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
2answers
4k views

Advanced custom fields - taxonomy terms images [closed]

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 ...
1
vote
1answer
66 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 ...
1
vote
2answers
298 views

Preferred way to include Advanced Custom Fields in a plugin?

So I am building a plugin for a site that is already using Advanced Custom Fields (ACF). I wonder what would be the best way to include ACF in my plugin? The site is already using ACF, so is it ...
1
vote
1answer
414 views

Operations with custom fields values in a loop

I have a foreach for displaying all the post in one taxonomy filter by terms. I have a custom field for display a numeric value. What I need, is to make two math operation with all the values of that ...
1
vote
1answer
265 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
1answer
52 views

How do I run through a Wordpress loop called from a filter function?

So I'm trying to populate an Advanced Custom Fields selectbox with a nice complicated array based off some post data. I've been trying to do this by doing a custom query and loop through the returned ...
1
vote
1answer
178 views

WP_User_Query pulling ACF to loop

I'm using following code to display my users on template <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; $paged -= 1; $limit = 100; $offset = $paged * $limit; $args = ...
1
vote
1answer
503 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' ...
1
vote
1answer
160 views

Remove old custom field after import

I have imported a set of posts to a new Wordpress install recently. This OLD set of posts had a set of custom fields attached to it (via post_meta using the ACF plugin). The new installation has ...
1
vote
2answers
3k views

Display post_object content using Advanced Custom Fields 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 ...
1
vote
2answers
564 views

Pull out Advanced Custom Fields 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
220 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
5k 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 ...