How to edit embed filter for youtube video to allow responsive full width layout

Thanks to Serkan’s suggestion I was pointed in the right direction to search for editing the wrapper rather than filtering the video itself (even though I would have loved a “filter only” solution.) Nonetheless, I stumbled upon a easy solution here – https://millionclues.com/wordpress-tips/fullwidth-responsive-youtube-embeds/ … I hope this can assist someone else with the same issue … Read more

Filter Pages by Custom Field (ACF) in admin area

Try to use this code and modify the custom post name and meta key of acf and it will work. add_action( ‘restrict_manage_posts’, ‘wpse45436_admin_posts_filter_restrict_manage_posts’ ); /** * First create the dropdown /** Create the filter dropdown */ function wpse45436_admin_posts_filter_restrict_manage_posts(){ $type=”movies”; // change to custom post name. if (isset($_GET[‘movies’])) { $type = $_GET[‘movies’]; } //only add filter … Read more

term_link filter rewrite link only applying half of condition?

Thanks Lucas! I found this code as an example in several places … still interesting that the && doesn’t work … but this does 🙂 add_filter( ‘term_link’, ‘slick_term_to_page’, 10, 3 ); function slick_term_to_page( $url, $term, $taxonomy ) { if ( $term->term_id != 42 ) : // if ( $taxonomy != ‘highlight’ && $term->term_id != 42 … Read more

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