
Thanks. The front end form feature would be cool. I’ll be working on it in the near future along with support for PayPal Advanced and Pro as well.

Thanks, I appreciate your help on debugging this. Re-download the plugin and the error should be gone. Please mark this as solved.
Thanks again

try re-downloading again please.

No problem, glad you got it working! cheers

Try re-downloading the plugin from github. I made a slight change. Let me know if that fixes the issue.
https://github.com/mikerodriguez/acf-paypal-field

Let’s start by trying include the PayPal field last.
// custom action for saving the front end form
function my_pre_save_post( $post_id )
{
// check if this is to be a new post
if( $post_id != 'new' )
{
return $post_id;
}
// Create a new post
$post = array(
'post_status' => 'draft' ,
'post_title' => $_POST['title'],
'tax_input' => array('job-category' => $_POST['job-category']),
'post_type' => 'jobs_post' ,
);
// insert the post
$post_id = wp_insert_post( $post );
// now set the taxonomy
wp_set_object_terms($post_id, array($_POST['job-category']), 'job-category');
// wp_set_object_terms($post_id, array($_POST['salary-range']), 'salary-range');
// return the new ID
return $post_id;
}
add_filter('acf/pre_save_post' , 'my_pre_save_post' );
//Rename Options Menu ACF
function my_acf_options_page_settings( $settings )
{
$settings['title'] = 'Theme Options';
$settings['pages'] = array('Email', 'Google AdSense', 'Google Analytics', 'Logo', 'Theme Colors');
return $settings;
}
add_filter('acf/options_page/settings', 'my_acf_options_page_settings');
//end
include_once('add-ons/advanced-custom-fields/acf.php');
include_once('add-ons/acf-location-field-master/acf-location.php');
include_once('add-ons/acf-repeater/acf-repeater.php');
include_once('add-ons/acf-options-page/acf-options-page.php');
include_once('add-ons/acf-taxonomy-field-master/taxonomy-field.php');
require ( get_template_directory() . '/add-ons/custom-widgets.php' );
require ( get_template_directory() . '/add-ons/custom-form.php' );
//ACF PayPal
add_action('acf/register_fields', 'my_register_fields');
function my_register_fields()
{
include_once('add-ons/acf-paypal-field-master/paypal_item-v4.php');
}

Your loop code is fine, I’ve tested it using the checkbox field inside a post. What is wrong is your ‘$args’ argument variable.
First off, make sure the post type is correct! Secondly, the meta_key is the FIELD_NAME. make sure that is correct as well, from the looks of it, your second key name was off. Also, value => is wrong as well. don’t use %% unless that’s what the value of your checkbox is. Insert the value of your checkbox.
It would also help if you posted a screenshot of your field group for this particular checkbox field.
<?php $args = array(
'numberposts' => -1,
'post_type' => 'opdracht',
'meta_query' => array(
'relation' => 'OR',
array(
'key' => 'FIELD_NAME',
'value' => 'CHECKBOX 1 VALUE',
'compare' => 'LIKE'
),
array(
'key' => 'FIELD_NAME',
'value' => 'CHECKBOX 2 VALUE',
'compare' => 'LIKE'
)
)
);
// get results
$the_query = new WP_Query( $args );
// The Loop
?>
<?php if( $the_query->have_posts() ): ?>
<ul>
<?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
<li>
<a href="<?php the_permalink(); ?>"><?php the_title(); ?></a>
</li>
<?php endwhile; ?>
</ul>
<?php endif; ?>
<?php wp_reset_query(); ?>

I just rolled back to version 4.1.5.1 and tested it on lite mode, as well as including the paypal plugin in my theme and the field group in my functions.php file. Everything checkouts fine.
can you copy your functions.php file includes of just the plugin on here? I’d like to help you debug this!

Just tested it and I can confirm it’s working within the theme and on ACF Lite mode as well.
What version of ACF are you using?

I’ve tested this, and it works correctly on my end.
Are you using the ACF plugin within your theme or do you have it installed via the plugins page?

try pointing to the v4 file instead. LMK if it works.
add_action('acf/register_fields', 'my_register_fields');
function my_register_fields()
{
include_once('add-ons/acf-paypal-field-master/paypal_item-v4.php');
}

Can you add the PayPal field to the “Add-ons” page?
I’ve attached a .zip, with a thumbnail, screenshots, and the readme.
Plugin can be downloaded here for now: https://github.com/mikerodriguez/acf-paypal-field
Thanks mate!

Here it is:
https://github.com/mikerodriguez/acf-paypal-field
You’ll also be able to find the add-on inside of WordPress plugin repo once it’s approved.
please report any bugs for v4, if found.
Thanks!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.