Add page-link after post content. Before plugin

Since FB comment box is within content, to add page link in between actual content and fb comment box, you have to add filter to content that runs before fbcomment filter does. you can do that by using priority argument in add_filter function. You can set any number in priority that is lower to that … Read more

How to show an image popup when one clicks on an image thumbnail?

1) enque thickbox on front end add_action(‘init’, ‘myplugin_thickbox’); function myplugin_thickbox() { if (! is_admin()) { wp_enqueue_script(‘thickbox’, null, array(‘jquery’)); wp_enqueue_style(‘thickbox.css’, “https://wordpress.stackexchange.com/”.WPINC.’/js/thickbox/thickbox.css’, null, ‘1.0’); } } 2) Add thickbox to all your images that are displayed by the_content(); function fb_add_thickbox($content){ $content = preg_replace(‘/<a(.*?)href=”https://wordpress.stackexchange.com/questions/106603/(.*?).(jpg”jpeg|png|gif|bmp|ico)”(.*?)><img/U’, ‘<a$1href=”$2.$3″ $4 class=”thickbox”><img’, $content); return $content; } add_filter(‘the_content’, ‘fb_add_thickbox’, 2); sources: http://wordpress.org/support/topic/how-to-implement-thickbox-to-all-images-which-contain-a-refered-link http://www.ultimatewebtips.com/how-to-use-wordpress-native-thickbox-support-in-front-end/

Xml output not places where i want

Shortcodes must return content and not echo it. See any of the examples in the codex for add_shortcode() So your callback function should probably be: function CheckRemoteService($atts) { extract(shortcode_atts(array( ‘name’ => ‘txt’, ), $atts)); $xml = simplexml_load_file(‘my.xml’); return $xml->sites->$name; } add_shortcode(‘checkmyurl’,’CheckRemoteService’);

Need to change contact email depending where user is from

Your themes functions.php is the first file that gets loaded after wordpress, it loads on every page load so you can get a variable with it. You could create a function similar to so and put it in your functions.php of your theme: global $fromwhere; if(isset($_GET[‘from’]) and $_GET[‘from’] == ‘columbiansite’){ global $fromwhere; $fromwhere=”columbia”; } you … Read more