WordPress converts media extention URL automatically to video player

You should consider using the Auto-embeds Disabler plugin here: https://gist.github.com/ocean90/3796628 Note that it’s actually just a single line of code, if you prefer to add that to your functions.php – but I’d suggest keeping it as a plugin so you can easily activate/deactivate that functionality. remove_filter( ‘the_content’, array( $GLOBALS[‘wp_embed’], ‘autoembed’ ), 8 ); Note that … Read more

How do I toggle pagination on/off in search results and category listings via a link?

I think it should work by hooking into pre_get_posts: function wpse_254661_remove_pagination( $query ) { if ( $query->is_main_query() && get_query_var( ‘onepageprint’, 0 ) ) { $query->query_vars[‘nopaging’] = 1; $query->query_vars[‘posts_per_page’] = -1; } } add_action( ‘pre_get_posts’, ‘wpse_254661_remove_pagination’ ); Like this you can modify your query right before it gets fetched and the query object gets passed by … Read more

Newline URL entity when using esc_url()

Background: WordPress strips out %0A from URL because in general newline has no practical purpose in URL. Unless it’s a mailto: protocol, WordPress strips out %0A. So it’s better not to use them in URL at all. Solution: Still, if for any specific purpose you have to use %0A, you may use %250A and then … Read more

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