Support

Account

Forum Replies Created

  • Thanks Mike that did it!

    And in the future, it would be a really cool feature if this plugin could like up to a front end form. So you could set up a pay to post form using PayPal. But hey that’s me just being greedy, haha. Thanks again.

  • Ok now we are getting somewhere! Only 1 error left. Next to Button Label there is this:

    
    Notice: Undefined index: button_label in /home/caputode/public_html/job-hunter/wp-content/themes/jobhunter/add-ons/acf-paypal-field-master/paypal_item-v4.php on line 106
    

    The rest of the errors are gone.

  • It moved where the PayPal buttons shows up but same errors underneath.

  • Thanks Mike, I appreciate it! Here is all the code in my functions.php relating to acf:

     
    // 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' );
    	
    	//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');
    	}
    	
    	//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' );
    
  • It is within the theme not as a plugin.

  • Yes that finally got the option to show up but above each PayPal option it has undefined errors like this:

    
    Notice: Undefined index: paypal_email in /home/caputode/public_html/job-hunter/wp-content/themes/jobhunter/add-ons/acf-paypal-field-master/paypal_item-v4.php on line 84
    
  • I am using the front end form function for ACF to allow users to submit a post on this page: http://caputodesignz.com/job-hunter/post-job/.

    Everything is working but I want this page to pass W3C validation. If you look here it finds an error with the css file being called: http://validator.w3.org/check?uri=caputodesignz.com%2Fjob-hunter%2Fpost-job&charset=%28detect+automatically%29&doctype=Inline&group=0

    Here is the error:

    
    Validation Output: 1 Error
    
    Error Line 209, Column 242: Element link is missing required attribute property.
    …hunter/wp-includes/css/editor.min.css?ver=3.5.2' type='text/css' media='all' />
    Attributes for element link:
    Global attributes
    href
    crossorigin
    rel
    media
    hreflang
    type
    sizes
    Also, the title attribute has special semantics on this element.
    

    The editor.min.css call is causing the issue. I am trying to remove this from the page so I can put it in the header when this page is used. That cleared up the same error for the jquery.ui.min.css.

    Is there a way to stop this from auto loading with the page when using front end form and calling it yourself?

  • Thanks Mike for the link. I am trying to install this directly into my theme. I have the folder in my theme folder and have pointed to the correct path. I am using this in the functions.php:

    
    //ACF PayPal 
    	add_action('acf/register_fields', 'my_register_fields');
    	
    	function my_register_fields()
    	{
    	    include_once('add-ons/acf-paypal-field-master/acf-paypal.php');
    	}
    

    That is the right directory. I get no errors but the PayPal option does not show up when selecting a field type. Any ideas?

Viewing 10 posts - 1 through 10 (of 10 total)