Checking 2 dates against todays date

For date manipulations you should use the DateTime class. Also, dates should be stored in Y-m-d format (if you’re storing them differently you can create the DateTime object from a specified format: http://php.net/manual/en/function.date-create-from-format.php (php 5.3+) – but I recommend storing it in the unambiguous Y-m-d format ). The following assumes Y-m-d formatin the post meta: … Read more

Add rel=lightbox to custom string

Without seeing the html output for the excerpt thumbnails it is difficult to say why your code is not working. However I would also look into str_replace (http://php.net/manual/en/function.str-replace.php) as a possible solution to your problem.

Display custom taxonomy posts of custom post types

Create taxonomy archives, not pages. Create three separate files called taxonomy-kind-websites.php taxonomy-kind-graphics.php taxonomy-kind-programming.php Displaying the items/posts as a list is pretty simple, eg <ul class=”my-posts”> <?php while ( have_posts() ) : the_post(); ?> <li><h2><a href=”https://wordpress.stackexchange.com/questions/102609/<?php the_permalink(); ?>” title=”<?php the_title_attribute(); ?>”><?php the_title(); ?></a></h2> </li> <?php endwhile; ?> </ul> You may also need to add the following … Read more

Media upload in add comment meta box

You could start with this : add_action( ‘comment_form_logged_in_after’, ‘wpse_102612_additional_fields’ );// only for logged users function wpse_102612_additional_fields () { echo ‘<p class=”comment-form-upload”>’. ‘<label for=”upload”>’ . __( ‘Upload your file’ ) . ‘</label>’. ‘<input id=”upload” name=”upload” type=”file” size=”30″ /></p>’; }