JSON Feed on my wordpress Blog
JSON Feed on my wordpress Blog
JSON Feed on my wordpress Blog
What host service are you using? I had the same issue using Dreamhost, where you can adjust the memory limit for the server you are using on the hosts panel. Doing this solved the issue for us. Also, a possible issue could be your SQL server, switching to another SQL server may resolve your issue. … Read more
WordPress uses PHPMailer class and has an action hook that you can use to configure it. For example: add_action( ‘phpmailer_init’, ‘cyb_smtp_config’ ); function cyb_smtp_config( $phpmailer ) { $phpmailer->IsSMTP(); $phpmailer->Host=”smtp.mailer.com”; $phpmailer->Port = 25; $phpmailer->Username=”username”; $phpmailer->Password = ‘password’; } Be sure that you need a custom SMTP connection instead of configuring the SMTP service in your hosting. … Read more
Well…. you could use the correct Field in the $_POST, which would be $_POST[‘post_id’], not $_POST[‘post-id’] 😉 Replace update_post_meta($_POST[‘post-id’], ‘whole_avg’,$whole_avg); with update_post_meta($_POST[‘post_id’], ‘whole_avg’,$whole_avg); etc. 😉 Happy Coding, Kuchenundkakao
Figured it out. $post_obj[‘permalink’] = my_getDraftPermalink( $post_obj[‘post_id’] ); That’s the correct syntax for getting the post_id. Then a custom function that gets the permalink the same way as the post dashboard UI is required. The dashboard uses get_sample_permalink and not get_permalink, which will return the draft path if the post isn’t live. function my_getDraftPermalink ( … Read more
You forgot to declare global $post //Create Meta box function astest_add_metabox() { add_meta_box(“astestimonial_metaboxes”, “AS-Testimonial Client Information”, “astestimonial_meta_box”, “astestimonial”, “side”, “low”); } add_action(‘add_meta_boxes’,’astest_add_metabox’); //html code function astestimonial_meta_box() { global $post; wp_nonce_field(‘astest_meta_box’,’astest_meta_box_nonce’); $clientname = get_post_meta($post->ID,’clientname_value’,true); echo'<label for=”client_name_val”>’; _e(‘Name: ‘, ‘astestimonial_textdomain’); echo'</label>’; echo'<input type=”text” id=”clientname_value” name=”clientname_value” value=”‘.esc_attr($clientname).'” />’; } //save post function as_testi_save_data($post_id){ if(isset($_POST[‘post_type’]) && ($_POST[‘post_type’] == “astestimonial”)) … Read more
There’s at least 3 options to choose from: You can use the single CPT file name which you can grab from the source code in the body classes or a custom class which can be added directly to the single-cpt.php file or using a functions file with conditional tag. .single-cpt { your declarations } Or … Read more
WordPress list child pages of custom post type
How to add jquery to my custom post type wp plugin
AJAX doesn’t pass variables to the php function in the plugin