Display of comment_date within get_comments?

The way you’re doing this, you’re going to get the raw SQL date that’s stored in the wp_comments table. You can still use the convenience functions like comment_date with get_comments. In this case, we’ll use get_comment_date. The first argument is the date format — if you leave it blank, WP will use whatever date format … Read more

Display ONLY Latest Post From Several Categories

here is a great way to control the amount of latest posts you wish to show.. This releates to all categories: <?php $howmanyposts = 1; // here you can set the amout of posts $wp_query = new WP_Query(‘post_type=post&posts_per_page=”.$howmanyposts.”&paged=’.$paged ); while ($wp_query->have_posts()) :$wp_query->the_post(); ?> <div class=”lastpostHome”> <h3 id=”post-<?php the_ID(); ?>”><a href=”https://wordpress.stackexchange.com/questions/43175/<?php the_permalink() ?>” rel=”bookmark” title=”<?php _e(‘Permanent … Read more

UTF-8 Characters in URL – IE problem

Have a look at the PHP function urlencode(), that will hopefully help. Also, in the latest update of WordPress (3.3.1) they have fixed it so that permalinks (post slugs) no longer contain special characters. This of course doesn’t help with your already existing slugs, but I’m sure there are ways and means of cleaning that … Read more

Copy custom post types and admin

the custom post types won’t show until you call register_post_type. http://codex.wordpress.org/Function_Reference/register_post_type this was either done in a plugin or the theme that you were previously using. if you are no longer using those you will have to activate it again yourself. i suggest making it a plugin (and possibly even an mu-plugin)

How to create a page that lists custom taxonomies with links?

Once you get $taxonomy you can perform further logic: $tax = get_taxonomy( $taxonomy ); if( isset( $tax->has_archive ) && $tax->has_archive == true ) { // do output. archive will be wordpress_url + $taxonomy->name ?> <p> <a href=”https://wordpress.stackexchange.com/questions/43340/<?php echo site_url( $taxonomy->name ); ?>”> <?php echo $tax->labels->name; ?> </a> </p> <?php } This is untested, but you … Read more