add titles to images in ad media in pages and posts
Clicking on the image will display all of the information about it, including the file name, on the right.
Clicking on the image will display all of the information about it, including the file name, on the right.
code from my theme adjusted to you <fieldset class=”images”> <input type=”file” name=”my_file_upload[]” id=”my_file_upload[]” multiple=”multiple”> </fieldset> <fieldset class=”memes”> <input type=”file” name=”my_file_upload[]” id=”my_file_upload[]” multiple=”multiple”> </filedset> and its working
Exclude some photos in media library
I founded the solution… all it’s a problem with a JS function called “slideUp” in my ajax.js (ajax’s functions for my front-end site) I don’t know the reason, but when I try to upload or a media file, WordPress try to execute this function. I change his name and the “$” for “jQuery” and now … Read more
How to configure WordPress to create thumbnails
The correct hook to add/remove menus in admin area is admin_menu. Also, be aware that current_user_can is intented to check user capabilities, not user roles. See current_user_can documentation and notes. add_action( ‘admin_menu’, ‘my_remove_menu_pages’ ); function my_remove_menu_pages() { $user = wp_get_current_user(); if( ! empty( $user ) && in_array( “contributor”, (array) $user->roles ) ) { remove_menu_page(‘tools.php’); // … Read more
Verify that the “GD” php library is enabled. You can do so by adding phpinfo(); to one of your php templates and then search the result for GD or GD Support. The GD library is used for image manipulation and resizing is one of those functions. To enable GD on windows you can edit the … Read more
Ended up taking a different approach – I exported all the content I had already created so I didn’t lose it, used the WB Migrate DB Pro plugin to import the content I wanted to carry over from my old site, and them imported all the new data again. A bit roundabout but effective!
The easiest way around this is probably to reset the Admin password on the old Database. If you have PHPMyAdmin or a very similar DB admin interface, do the following: Import the old database. Open the user’s table, usually called ‘wp_users’. Find the user you wish to change the password for, and replace the contents … Read more
I disabled the post thumbnail editor plugin, then everything started to work again as normal. But for the general advise for similar kind of issue is, disable your plugins one by one and test. Then you can find the plugin which is not compatible with wordpress update. So that you can disable that plugin at … Read more