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(); }

Adding custom url to readmore link using get_permalink()

I suspect the issue is that $recipe_url is undefined in the portion you’re trying to echo it. Can you post a link to the full code of recipe_options.php? Use pastebin or something. Try: href=”https://wordpress.stackexchange.com/questions/114230/<?php $recipe_detail_xml = get_post_meta($post->ID,”recipe_detail_xml’, true); $cp_recipe_xml = new DOMDocument (); $cp_recipe_xml->loadXML ( $recipe_detail_xml ); $recipe_url = find_xml_value($cp_recipe_xml->documentElement,’recipe_url’); echo $recipe_url ; ?>”

Unnecessary url

Always include http:// in your URLs. Change www.youtube.com in http://www.youtube.com/ or even better http://youtube.com/ If you forget the http:// then the data is being parsed like it is another page on your website rather than an external website, that’s why you’ll see 192.168.1.100/wordpress/www.youtube.com

Use an anchor link to open an iframe inside a WordPress page

I would approach this one of two ways: Use a target attribute in the link to open it in an iframe (not universal across browsers) Use JavaScript to replace the src attribute on your iframe Option 1: <a href=”https://wordpress.stackexchange.com/questions/118983/somethirdpartysite.com/reg” target=”thirdparty”>Register</a> <iframe name=”thirdparty”></iframe> Option 2: <a href=”https://wordpress.stackexchange.com/questions/118983/somethirdpartysite.com/reg” class=”iframeit”>Register</a> <iframe src=”#” name=”thirdparty”></iframe> <script> $(‘.iframeit’).click(function(event) { event.preventDefault(); var … Read more

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