Tag Info

New answers tagged

0

Assuming that there are limited video in your site. you can replace URL by do following : Expert your site database , Replace URL and import again. This is safe way to replace URL. You can do same thing using sql query also but that can cause problem sometime.


0

'apply_filters' runs the value through all of the other hooks / functions attached to it. Try an experiment: print_r( $type ); print_r( apply_filters("{$type}_upload_directory", $type) ); While you might, in your case, get the same thing - the apply_filters makes sure that any other plugins that try to influence this upload directory will still work.


0

I use define('UPLOADS', 'wp-content/folder'); in my config.php file right under require_once(ABSPATH.’wp-settings.php’); You can try to change the folder to something like %postname% define('UPLOADS', 'wp-content/%postname%');


0

Okay so i did manage to add some custom css selectively on pages that load the medialement player by adding this to my functions.php file: function custom_player() { wp_enqueue_style( 'custom-player', get_stylesheet_directory_uri() . '/wp-mediaelement.css' ); $custom_css = " /*here goes the css*/ ...


0

Using the Posts 2 Posts Module which is still being developed just no support is being offered except through the git fork. How to use it. function my_connection_types() { p2p_register_connection_type( array( 'name' => 'posts_to_pages', 'from' => 'post_type_1', 'to' => 'post_type_2', 'cardinality' => ...


1

The hook for doing stuff after an upload is the reset event on wp.Uploader.queue triggered by the pluploader when it's finished (see line 249 in "wp-includes/js/plupload/wp-plupload.js"). Here's one hack to use this to do an auto-insert after an upload: function wpse167143_admin_footer() { ?> <script> jQuery( document ).ready(function() { ...


0

My solution was to replace the following in image-rotation-repair.php $image = _rotate_image_resource( $image, $orientation ); with $rotated = imagerotate( $image, $orientation, 0 ); if ( is_resource( $rotated ) ) { imagedestroy( $image ); $image = $rotated; } Note: Usually, modifying a plugin's code is a bad solution, but in this particular ...


0

You can do this without a plugin in the newest versions of Wordpress. Go to Media, click on any image and then click on the edit image button. You can edit the image there and one of the options is rotation.


0

No, the issue is with WordPress itself. If admin interface split images previews to the pages in the grid option as it does in the list option, the problem would not exist. So, it is the exactly new WordPress relies problem.



Top 50 recent answers are included