Tagged Questions
0
votes
1answer
17 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 ...
1
vote
1answer
49 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 ...
0
votes
1answer
25 views
Get custom field from other post in carousel
Im using a plugin called wp carousel to display custom post types in a carousel in the footer in the singular view of posts. By default the plugin gets the featured image and the title of the post, ...
1
vote
1answer
21 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 ...
0
votes
1answer
44 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
24 views
ACF Plugin How to make the customer add more fields in the post?
Example: I created a field with the name, "my-field", there can add it on the post, with a button "add another item" is that I want to create a list with several items, we only need to create multiple ...
0
votes
0answers
34 views
Search with meta_query and tax_query
I'm working on a little database for series based on wordpress. I've implemented a custom post type called "anime", some taxonomies (Genre, a_types..) and a lof of customfields. (based on acf). Now ...
1
vote
0answers
35 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 ...
0
votes
1answer
74 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 ...
1
vote
1answer
87 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 ...
0
votes
2answers
141 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
19 views
I want to add a custom field in the rss title of each post, but don't want it to be shown on the site
I've seen that other sites have done this but didn't manage to do it myself.
I have certain custom fields for each post and I want one of these custom fields to be shown in the RSS feed in the title ...
1
vote
0answers
72 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 ...
0
votes
1answer
46 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
55 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 ...
1
vote
3answers
84 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 ...
0
votes
0answers
102 views
Combine Two Plugins to Filter by Custom Taxonomy and Custom Field
I'd like to give my users the possibility to filter the posts by Categories, Tags, and Custom Field values.
Search/filter form would be multiple fields:
Field One
City:[categories with a parent ...
0
votes
1answer
463 views
Use ACF to display a customizable WooCommerce product add to cart button
WooCommerce is notorious for not being all that customizable (except for templating that is a seriously convoluted process).
So, I am attempting to use Advanced Custom Fields (plugin) to create an ...
2
votes
1answer
302 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' ...
0
votes
1answer
62 views
How to show animal lineage/pedigree in WordPress?
I need to show the pedigree or lineage of an animal in my wordpress site.
Currently I have the animals set up as custom post types, with data inserted using the amazing Advanced Custom Fields plugin.
...
-1
votes
1answer
31 views
Custom fields issue [closed]
I am just started using WordPress and installed custom fields in that and created some custom fields , But cant add any content to that , Where can i add content to those custom fields in the ...
0
votes
1answer
206 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 ...
1
vote
1answer
84 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 ...
0
votes
1answer
364 views
Order by custom field date?
I've created a category "Expire Soon" and i want to insert and sort the posts by custom field "expiration_date".
I use this code but the posts are sorted by custom field "expiration_date" but not by ...
0
votes
2answers
266 views
How to get custom image field of specific post id
I have a page where I'm pulling in content from another post, outside of the loop.
I've been successfull at getting the content of the specified post, but I cannot get the image from a custom field ...
2
votes
1answer
123 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 ...
3
votes
1answer
146 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 ...
0
votes
1answer
144 views
Truncating characters in Advanced Custom Fields works some places but not others?
I'm using the Advanced Custom Field plugin - although I'm not positive that is relevant. Nonetheless, I can't get substr() to work at all using this method:
$givchars = 5;
$postgiv = ...
2
votes
1answer
982 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 ...
1
vote
1answer
150 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 ...
0
votes
3answers
174 views
Adding custom field to an array
How can I add a custom field to an array? To complicate matters, custom field is on the Author's page, not on a regular post. It's added via Advanced Custom Fields. Typically, that field value would ...
2
votes
1answer
200 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 ...
0
votes
1answer
200 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
119 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')): ...
-5
votes
1answer
1k views
Advanced Custom Fields: how do I check to see if a value is set in an field?
How do I check and see if a value is set in an Advanced Custom Field?
0
votes
2answers
491 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 ...

