Plugin that creates custom fields.

learn more… | top users | synonyms

0
votes
0answers
17 views

How to gather all the pages associated with a template on a register post type?

I am creating a menu in the admin of wordpress, I have pages that are catalogs on two user images load; example I have the catalog A where user pictures load and price of a product a catalog B where ...
1
vote
2answers
377 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
votes
2answers
367 views

update_field() with repeater fields issue [closed]

I’m having a problem with the popular Advanced Custom fields plugin, trying to update/append rows in repeater fields. I’m trying to migrate all data from one table into user meta and I keep getting ...
0
votes
1answer
359 views

Loop over Advanced Custom Fields checkboxes to create dynamic dropdown field on front end

In Advanced Custom Fields, I have a checkbox field with all the provinces of my country. Depending on the product, the client can choose which province that product is sold in from the backend. On ...
0
votes
0answers
65 views

Query posts filter not working

I have created one custom post type which name is villa. In this post type I have added five post and assigned custom field values(mention bellow): Post Name Assigned Fields 1. Chalet ...
-1
votes
1answer
109 views

Advanced custom fields if else statement

I'm using the plugin Advanced Custom Fields. The following example code is given on the acf website for if statements. <?php if(get_field('field_name')) { echo '<p>' . ...
0
votes
1answer
459 views

How to import CSV into Custom Post Type custom fields?

I have created a Custom Post Type and then used a plugin to create the custom fields for that post type. It will display a type of membership: Name Address Zip Website But I am stuck on how to take ...
0
votes
2answers
34 views

Outputing Post Object title as a div class with ACF

I have Post Object field set up for pages. What I want to do is to output title of the posts associated with the page as a class of the div surrounding the page listing. But, the code inside the ...
0
votes
2answers
203 views

Advanced Custom Fields if else issue

Ok, I think I have a simple fix here. I'm using ACF to link health reports to specific dogs on a breeder website. But, not all dogs have the same reports, and I don't want to show a dead link if no ...
0
votes
1answer
57 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
2answers
119 views

Translation to ACF relationship field

I'm building a WordPress site that is supposed to end up with a Danish backend. This works fine for core WordPress, but some plugin makes it really hard to make a complete translation. A problem I ...
0
votes
1answer
227 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
0answers
96 views

Show/Hide Custom Meta Boxes using any plugin

How can I show and hide the custom meta fields created using Advanced Custom Fields plugin? I want to handle the publish and unpublish of the fields and values from the admin panel. Is there any ...
0
votes
1answer
50 views

How to add admin functionality to allow ability to choose different field group to display on webpage using Advanced Custom Fields?

Currently I have a field group defined using the ACF plugin, showing: title and icon and a link, on a specif area of my page. I want to give one of my Content Contributors the ability to choose from ...
0
votes
1answer
124 views

wp_update_post based function works on existing posts, but not new posts

I have a function that will update the title of the post based on an 'advanced custom field'. It works on existing posts, but not when I create a new post. When I try and save the post and check the ...
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
51 views

How to filter post using custom feild value in shortest and longest duration?

I am working on a video blog. On the front page I have a sort by option. You can try the option at the following link http://cricketclips.net/ Can't figure out how to make the shortest and longest ...
0
votes
1answer
58 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
0answers
96 views

Customize TinyMCE Buttons

I've always used the plugin TinyMCE Advance that lets me drag and drop which buttons I want to show in the Editor. Now I'm trying to set those using my functions.php instead. That way I never have to ...
0
votes
0answers
48 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
59 views

How to use categories in the URL with Advanced Custom Fields?

Using the Advanced custom fields plugin: 1) I want to post to the ACF and use a category just like a regular blog post, but the URL would be: mysite.com/customPost/category/post-name Is this ...
0
votes
1answer
158 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
90 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
90 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
432 views

Query current and future events, ordered by begin date

Using the Custom Post Type UI extension, I've created a 'Event' custom post-type, which fields are populated using custom fields (created with the extension Advanced Custom Fields) such as ...
0
votes
1answer
60 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
0answers
80 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
601 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
0answers
57 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
73 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
3answers
913 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
0answers
133 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
77 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
53 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
1answer
333 views

Matching Serialized Arrays with meta_query

I've asked a related question previously, but I think I've finally worked out the crux of my issue. I'm using Advanced Custom Fields and have a number of custom fields attached to my post type. I'm ...
0
votes
0answers
94 views

Query Posts Via WordPress URL

I wanted to learn more about querying post types and their custom fields in WordPress. I've got two questions... I've followed this tutorial on Advanced Custom Fields and am trying to understand what ...
0
votes
0answers
365 views

Multiple Frontend Filters Using Advanced Custom Fields

I've got a series of custom post types set up, and a large amount of custom fields are linked to these post types via the Advanced Custom Fields plugin. I want to set up a series of checkboxes on the ...
0
votes
2answers
164 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
1answer
546 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
68 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
941 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
62 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
2answers
636 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
55 views

Best Practice for Changing Custom Fields

I'm using the Advanced Custom Fields plugin for a project I'm currently working on. From what I understand, ACF stores its values into WordPress' Custom Fields. What I wanted to know is what's the ...
0
votes
1answer
23 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
0
votes
0answers
34 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
85 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 ...
0
votes
0answers
162 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
1answer
108 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
50 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 ...