front end radio custom taxonomy with custom post type

Your code doesn’t show if and how you set $terms other then that its seems ok, just try to wrap it in an array and you should check if its set first, so try this: $new_post = array( ‘post_author’ => $user_id, ‘post_title’ => $post_title, ‘post_content’ => $post_content, ‘post_category’ => array($_POST[‘cat’]), ‘tags_input’ => array($tags), ‘post_type’ => … Read more

WordPress custom upload field error

You can use the great wordpress media manager. I’ve prepared a plugin to attach PDF files to noraml posts. You can download it here. The php: <?php /* Plugin Name: PDF Metabox Plugin URI: https://github.com/CybMeta/cyb-pdf-metabox Description: Displays a metabox to attach a PDF file to current post. Author: Juan Padial Version: 1.0.2 Author URI: http://cybmeta.com … Read more

wp_editor in add_meta_boxes does not show gallery

Make sure tinymce option has a valid value. Remove it or set it to true if you don’t pass any parameters to tinymce $editor_config = array( ‘teeny’=>true, ‘textarea_rows’=>10, ‘editor_class’=>’csec_text’, ‘textarea_name’=>’csec_body’, ‘wpautop’=>false, ‘tinymce’=>$tinymce_options //THIS OPTION SHOULD BE VALID ); Edit: Made a small research. Add wpview in plugins argument of tinymce options. $tinymce_options = array( ‘plugins’ … Read more

Using a Custom Field instead of original title field but only for Custom Post Type

The solution you are working on will always represent multiple database inserts as the post will be saved and then the the title re-saved in a second database write. That is the nature of the save_post hook, since it runs after the primary post save. Additionally, the code you found is wildly overcomplicated. Interestingly, the … Read more

Guest Author – How to modify my custom function code if the guest author URL will follow a particular pattern/format?

Now I’ve understand the question, and yes, it makes sense. The filter additions and the third function do not change at all, what change are the first two functions. There is 2 cases: [AuthorName] part in the url is equivalent sanitize_title($guestauthor) where $guestauthor is what is saved in the ‘guest-author’ custom field [AuthorName] part is … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)