WordPress comments – delimiter “/” not found

I found a soloution and what causes it. It was not really the delimiter that was the problem it was becasue a user made duplicate posts. Solution: Replace $notify_message .= preg_replace(‘#[\s]+#’, ‘ ‘,sprintf( get_comment_meta($comment->comment_ID, ‘title’,1))) .’ skrev:’. “\r\n” . $comment->comment_content . “\r\n\r\n”; With $notify_message = preg_replace(‘/[\s]+/’, ‘ ‘,sprintf( get_comment_meta($comment->comment_ID, ‘title’,1)) .’ skrev:’. “\r\n” . $comment->comment_content … Read more

Cannot modify header information – server cache

It means WordPress is outputting something to the browser too early. The file indicated seems to be your own session file (php stores user sessions in small text files in the tmp directory). Check first the wp-config.php file. Remove the final closing php tag. Make sure you’re not outputting anything in that file (look for … Read more

Custom meta box in custom post type not working

Hey Change Callback function to like this and add_meta_box to add_meta_boxes hook function create_meta_box_slider() { add_meta_box( ‘new-meta-boxes-slider’, __(‘slider Settings’), ‘new_meta_box’, ‘slider’, ‘normal’, ‘high’ ); } add_action(‘add_meta_boxes’, ‘create_meta_box_slider’); function new_meta_box() { global $meta_box_groups; $meta_box_groups[] = $slide_info; } I think it work fine

PHP Warning: Missing argument 2

You are hooking select_age() to wpcf_after_init which more than likely does not accept two arguments. I am not sure why you are hooking into that hook but it is not necessary for a shortcode, nor is there any obvious reason in the code.

WordPress function to add text warning on every pages [closed]

Where do you want it to appear? this function will put something before, or after, the content of each page. function rt_before_after($content) { $beforecontent=”This goes before the content.”; $aftercontent=”And this will come after.”; $fullcontent = $beforecontent . $content . $aftercontent; return $fullcontent; } add_filter(‘the_content’, ‘rt_before_after’); If you want it somewhere in particular let me know … Read more