why esc_url not working in smartmetabox

esc_url() is not a validator. Use PHP’s filter functions for that. Example: // $url is now an URL or FALSE $url = filter_var( ‘http://example.com’, FILTER_VALIDATE_URL ); if ( $url ) # update post meta else # delete post meta

Source of Pingbacks

Not long ago I did a talk on v3.5 and posted a link to my blogpost on the company site, resulting in a pingback/trackback. Going to the comments page I can see this: As you can see, the title of the referring page and the link to it ( the source ) are in the … Read more

Retrieve current post’s tags

<?php $tags = get_the_tags($post_id); ?> Here $post_id is the ID of the post of which you want to get tags. This is same parameter as passed to get_post(). When used inside the loop $post_id is optional & default to the current post.

Dynamically pull the correct email address from a match

Who should retrieve an email? The hook ‘publish_post’ is triggered when an author puiblish a post. So current user == post author. I assume you would do that: If Buddy-A publish a post and Buddy-B is logged in at the same time, than Buddy-B should retrieve an email that Buddy-A published a post (which maybe … Read more

the loop – how to control whether wp or plug-in runs it

The problem was in my the loop.php file, i was executing a new loop using the wordpress parameters for the main loop, which caused a duplication with the plugin being used (thecartpress) which executes its own loop. I was using: global $post, $query_string, $discTheme; query_posts($query_string); in a sense, with thecartpresses own loop, I was duplicating … Read more