Plugin that creates custom fields.

learn more… | top users | synonyms

0
votes
2answers
66 views

Custom post type adding additional markup

I'm creating a template but every time I add a new custom post type (in this example neighborhood) it keeps injecting a new <ol> and <li> here is the code I currently have and I'm using ...
0
votes
1answer
740 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
205 views

How to Generate html tags using shortcodes?

I am using a widget and adding this: <div id="testimonials"><h4>[acf field="testimonial" ] <strong>[acf field="name" ]</strong></h4> <h4>[acf ...
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 ...
0
votes
0answers
287 views

Fatal error: ob_end_flush()

Ive just imported a page via xml. It has a bunch of ACF Repeater Fields (about 100). When I attempt to edit the page I see the following error: Fatal error: ob_end_flush() [<a ...
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 ...
1
vote
2answers
704 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 ...
0
votes
2answers
1k views

While loop inside another while loop

OK, so I've read like 20 different articles about using a while loop inside another while loop, but still can't get this to work, and I'm about to burst from frustration. My scenario: using the ...
1
vote
0answers
143 views

posts-2-posts embedding post title of connected posts

I'm trying to create a default title for all the posts that are created, the title is generated by a couple of things, such as the post fields. I was able to write code for getting the post fields ...
0
votes
1answer
1k views

meta_query with array as value

I am writing some PHP which allows users of my site to submit a form and query posts by their post_meta. Everything works fine except for one thing, I used Advanced Custom Fields to create the ...
0
votes
0answers
121 views

How to let users have permissions to upload from the front end in Wordpress

I have a frontend form from using ACF that allows uploads to be uploaded but it only works when I am logged in. I want new users who have never logged in to still be able to upload. How can I ...
1
vote
2answers
568 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 = ...
0
votes
1answer
575 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
883 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 ...
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 ...
0
votes
1answer
40 views

Modifying and Displaying URL's in a Post Template using parse_url

I have a Custom Post Type with a template named single-posttype.php. I'm using the Advanced Custom Fields plugin to display certain information (price and links to the actual product). All that is ...
0
votes
1answer
87 views

Search with filters and title

I would like to search in custom_post by title and by the ACF fields. So, I used the WP_Query WordPress function but I can't filter by the title, just by the filters. When I submit my form, I have ...
0
votes
0answers
47 views

How can i restrict Custom Post Types to Author by Custom Field ID not Author ID

OK, so I can restrict the posts visible to Authors within the admin using the following code: function MY_FUNCTION( $wp_query ) { if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) ...
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 ...
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 ...
0
votes
1answer
317 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
504 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
140 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
66 views

How to Order Posts by Custom Fields?

Can someone tell me why this is not working: $args = array( 'cat' => '2,39,30', 'orderby' => 'title', 'order' => 'ASC', 'orderby' => 'meta_value_num', 'meta_key' ...
1
vote
1answer
420 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 ...
0
votes
0answers
132 views

Advanced Custom Fields Repeater sorting by category

Basically in my ACF repeater I have a select field and I want to display the content in sections that relate to the value of the select field..? Example: In the select field I have four options.. - ...
0
votes
0answers
10 views

How to create custom anchore to specific past category with feature image?

I created wordpress website and add 6 statics banner. Now i want to dynamic so i created a add category and add featured image as a banner but dont know how add anchore please give me idea or aany ...
0
votes
1answer
45 views

Custom fields issue [closed]

I installed the plugin Advanced Custom Fields and created few custom fields , but I'm not able to add any content in it. How is this done?
0
votes
0answers
45 views

Trying to combine a variable together

So I am not 100% sure if the is feasible so hopefully some one can point me in the appropriate direction. I am using the Advanced Custom Fields plugin and on my custom page template I am using the ...
0
votes
1answer
117 views

How to change the background color of my header dynamically based on a Custom Posts types color value?

I've been able to figure out how to include the custom field i'm referencing within an inline style within a div that wraps my header. The problem is that it's in my header and so when a particular ...
0
votes
0answers
738 views

Integrate Custom Post Type Events into Calendar

I've got a custom post type called Events on my site with a custom field called event_date created via Advanced Custom fields that stores its value in yymmdd format. Everything works just fine and I'm ...
1
vote
2answers
1k views

How to customize a divs background dynamically using Advanced Custom Fields Plugin?

I've gotten as far as creating custom post types, custom fields and linking those to templates on this first time WordPress project i'm working on, but i seem to have run into a problem i'm not easily ...
0
votes
1answer
161 views

If you're calling a dynamic css inline style does that div have to be in the loop?

In the code below i reference "the_field( 'bg_img' )" within my first container div. The reason i do this is because i created a custom field (within a CPT) that allows the admin to change that ...
0
votes
2answers
54 views

If i have custom post type with 5 custom fields do i have to create a new loop to reference each one?

One custom post type that i've created has 5 custom fields that display specific content for a template that displays them in different areas on the page. My question is if i would have to create ...
0
votes
0answers
263 views

ACF: What hook can I begin to use get_field()

So I have a nifty trick for my theme "modules" in which case I scan my modules directory (THEME_MODULES_DIR) and create an array of the module directories found. That array is then used to pass as the ...
0
votes
1answer
65 views

Multiple loop issue - pull one featured and then continue the loop

I am writing a custom multiple loop to be used on a custom category template page. The loop should put one post that is checked as featured in admin, in a separate div, and continue the loop ...
0
votes
1answer
61 views

Fetch data from a WP page with same name as current username

Ok, so this sounds a little complex, but in theory should be easy. What I'm trying to achieve: ACF data is pulled from a WP page which has the same name as the current logged in user. Basically I ...
0
votes
0answers
35 views

Create a new post within another post

i'm using ACF (http://www.advancedcustomfields.com/) to create relations between my custom post types. I have a post type 'events' and another type 'dates'. So i'm able to assign one or more dates to ...
0
votes
1answer
101 views

Advanced custom fields - If/ while field problem

The way I am trying to set this up is that if a link has not been chosen then only the image will be displayed, but if a link is chosen as well as an image then I want the link to be wrapped around ...
0
votes
1answer
227 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
155 views

Styling first post using Advanced Custom Fields

I'm working with a company's About page. I created a custom post type for "Employees", and am using the Advanced Custom Fields plugin to create simple meta boxes for name, title, image, and bio. The ...
0
votes
1answer
664 views

Use Advance Custom Fields to fill text widget

I have a custom WYSIWYG field setup in Advance Custom Fields Plugin and I want to show that content in a text widget on the sidebar / widgets. I've tired the shortcode and the php code but no luck. ...
3
votes
3answers
229 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 ...
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 = ...
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 ...
0
votes
0answers
118 views

One-time bulk MySQL copy post_date values to Advanced Custom Field (date field)

Disclaimer First of all let me say this is probably mostly MySQL related and unfortunately I'm nearly a total newbie on database language and commands. The problem Situation is a site running ...
0
votes
0answers
244 views

Advanced Custom Fields: custom field import/export

When I import the ACF custom fields from my test site to live site, the flexible content field doesn't get imported. I need to manually re-enter each inner field of the flexible content. Is there any ...
0
votes
1answer
433 views

Query based on custom fields start and end date

I have a custom post type called Events, with 2 custom fields, start date and end date. These fields are stored using a timestamp in the database. I want to create a custom query based on these 2 ...
0
votes
1answer
194 views

Adding a ACF fields to a WooCommerce Attribute

I am trying to add some ACF fields to the WooCommerce Attribute Creator, but I cannot find which rule to add it to. I can find attributes I have already created (in Taxonomy Term Add/Edit), but it ...
2
votes
3answers
987 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. ...