How to use WordPress 3.8 back-end CSS in front-end?

I believe you’re asking how to include the admin styles in your front end theme? If so, you simply need to either enqueue ‘wp-admin’ on it’s own or list it as a dependency for your theme/plugin stylesheet. Here are examples of both methods: By itself: wp_enqueue_style( ‘wp-admin’ ); As a dependency: wp_enqueue_style( ‘my-theme-styles’, ‘path-to-my-css.css’, array( … Read more

Front end post or photo or both

I’ve made a similar form before, and it works whether it has a post or not. This form does not use wp_editor, but you can just modify the code to suit your need. add_action(‘wp_ajax_add_story’, ‘process_story_entry’); function process_story_entry() { global $current_user; if ( empty($_POST) || !wp_verify_nonce($_POST[$current_user->user_login],’add_story’) ) { echo ‘You targeted the right function, but sorry, … Read more

How to upload and add images to the existing post from the front-end with admin approval which is posted by other user

This is a way to add post images and other things. So put different check on it according to your need. <?php if( ‘POST’ == $_SERVER[‘REQUEST_METHOD’ ] && !empty( $_POST[‘action’ ] ) && $_POST[‘action’ ] == “new_post”) { if (isset ($_POST[‘post_title’])) { $post_title = $_POST[‘post_title’]; } $post = array( ‘post_title’ => $post_title, ‘post_content’ => $post_content, … Read more

How to show WordPress Dashboard Widgets on Frontend?

After trying to build dashboard functionality on the “frontend” of a site, the WPMU multi-site alternative was to seriously minimize, strip-down, and customize a template for the user type that required that functionality. They login directly to the dashboard, or can be linked their from their account page when logging in. Everything you described is … Read more

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