Show Homepage (only) Hits Count

Add the counter (PHP or otherwise) to the template file for the home page. This will be either home.php or index.php depending on how you have things set up. If you want to instead add it in the footer, enclose the code inside a conditional tag to detect whether or not you’re on the home … Read more

Is it safe to use Web Invoice 2.1.0 without SSL?

I have not used that plugin but I would assume (I hope) that any payment interface is handled by the payment processor. That means that any credit card information is PCI complaint and not stored on your server or have anything to do with WordPress. In addition, the secure communication between your server and the … Read more

Dynamic landing page – am I doing this right?

Another option would be to hook wp and check for a 404 that contains your dynamic pagename: function wpse27761_dynamic_page() { global $wp, $wp_query; if($wp_query->is_404 ): if( strpos($wp->request, ‘mypagename’) !== false ): $wp_query->is_404 = false; //create a post object with your desired output endif; endif; } add_action(‘wp’, ‘wpse27761_dynamic_page’); but it’s arguably more complex, I would personally … Read more

Removing the custom_image_header from wp_head

I was able to remove this by using remove_action(‘wp_head’, ‘header_uri’); Where header_uri is displayed in the above function you must use the same function name you have used to initialize the function in add_custom_image_header() within your functions.php file. . example: add_custom_image_header(‘header_uri’, ‘admin_header_style’);

Plug-in that shows x number thumbnails from another post

I don’t think so, but you could use get_children and get the attachment(s) of those posts: $attachments = get_children(array( ‘post_parent’ => $post->ID, // <- source post ‘post_status’ => ‘inherit’, ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘order’ => ‘post_date’, ‘orderby’ => ‘DESC’, ‘numberposts’ => 5, // the number )); Then get the image URLs: $size=”post-thumbnail”; // … Read more