In creating a theme, how can i allow a user to change an image outside post/page content?

I ran into a similar problem recently. I found plug-in called “image widget” http://wordpress.org/extend/plugins/image-widget/screenshots/ that enabled upload right in the widget. The client though had no idea how to barely log in and find the widgets so I ended up using a flickr widget since it was more user friendly ( aka they could upload … Read more

Why does WP allow to view and media item as a page

It is desirable because you can modify that page, to introduce extra functionality. e.g.: Comments Meta data custom fields titles descriptions Image EXIF showing geolocation data video/audio players thumbnails of other images attached to the post, e.g. the other pictures in the gallery If it troubles you, you can ‘remove’ the feature, by making an … Read more

How can I manage and limit disk usage for each author?

Okey so this is just an example how you can archive this.. First change the upload directory to the current users username. eg uploads/admin function wpse_16722_type_upload_dir( $args ) { // Get current user data $current_user = wp_get_current_user(); // Make upload dir to current username $newdir=”https://wordpress.stackexchange.com/” . $current_user->user_login; $args[‘path’] = str_replace( $args[‘subdir’], ”, $args[‘path’] ); //remove … Read more

Where to set individual blog quotas?

Go to your site’s Network Admin page — usually something like example.com/wp-admin/network/. Go to Sites » All Sites. Mouse over the site that you need to edit and select Edit in the menu that appears. Now select the Settings tab. Scroll down to the bottom (or near the bottom, depending on whether you have plugins … Read more

tb_show not showing a media upload window . custom plugin

I couldn’t find what was wrong with the code, so I used a different code which I found on the internet and now the window is opening. var file_frame; $(‘#csv_file_button’).on(‘click’, function(event){ event.preventDefault(); if ( file_frame ) { file_frame.open(); return; } // Create the media frame. file_frame = wp.media.frames.file_frame = wp.media({ title: $( this ).data( ‘File … Read more

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