Replace video url with video player

There appear to be a few problems with your plugin as written. As mentioned in the comments above, WordPress has the built-in ability to automatically embed certain types of media, including YouTube videos, given a URL. See the Codex page on Embeds. So it’s likely that your plugin isn’t necessary, at least for a YouTube … Read more

How can I insert a dynamic URL in my email template?

I have no experience with this plugin, but it looks like you can add extra template variables with a filter named ‘wpbe_tags’: function template_vars_replacement( $template ) { $to_replace = array( ‘blog_url’ => get_option(‘siteurl’), ‘home_url’ => get_option(‘home’), ‘blog_name’ => get_option(‘blogname’), ‘blog_description’ => get_option(‘blogdescription’), ‘admin_email’ => get_option(‘admin_email’), ‘date’ => date_i18n(get_option(‘date_format’)), ‘time’ => date_i18n(get_option(‘time_format’)) ); $to_replace = apply_filters(‘wpbe_tags’, … Read more

Get logged in username in wordpress url

I think this will do what you are looking for. add_action(“template_redirect”, ‘template_redirect’); function template_redirect() { global $wp; if(is_user_logged_in() && !isset($_GET[‘user’])){ $current_user= get_userdata(get_current_user_id()); wp_redirect(add_query_arg(array(‘user’=>$current_user->user_login),home_url($wp->request))); die(); } }

Inserting Media to WordPress Posts

If you use “Insert by URL” the image is loaded from whatever URL your provide. It is not uploaded to your server at all, nor is any information added to the postmeta table as far as I can tell. It seems to be equivalent to simple hand-writing the HTML into the post body. You can … Read more

Comment_author_url doing nothing

Change your query from: SELECT COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url FROM ‘.$wpdb->comments.’ WHERE comment_author_email != “” AND comment_type = “” AND comment_approved = 1 GROUP BY comment_author_email ORDER BY comments_count DESC, comment_author ASC LIMIT ‘.$amount To: SELECT *, COUNT(comment_author_email) AS comments_count, comment_author_email, comment_author, comment_author_url FROM ‘.$wpdb->comments.’ WHERE comment_author_email != “” AND comment_type = “” … Read more

How to set base url for php widget

You are using paths relative to the current directory. Try this (untested) echo “$i. <option value=”” . home_url(“/groundfish-meetings/’ . $file) . “‘>$file</option>”;

How to close tab automatically if URL has specific word? [closed]

You will need Javascript to do this. You can use window.close(). So adding this script to your page should do the job: function check_if_should_close(url) { if ( PUT YOUR CONDITION HERE ) // i.e. url.match(/\?deleted=1/) return true; return false; } if ( check_if_should_close(document.location.href) ) { window.close(); }