Formatting a date/time returned from a custom $wpdb query

A much simpler method to bypass these issues is using WP_Query: $popularQuery = array(‘orderby’ => ‘comment_count’, ‘posts_per_page’ => ‘-1’, ‘author’ => 1); $popularPosts = new WP_Query($popularQuery); while($popularPosts->have_posts()) : $popularPosts->the_post(); ?> <tr> <td><a href=”https://wordpress.stackexchange.com/questions/23820/<?php the_permalink(); ?>”><?php the_title(); ?></a></td> <td><?php the_author(); ?></td> <td><?php the_time(‘j M Y h:i A’) ?></td> <td><?php comments_number(); ?></td> </tr> <?php endwhile; Also note … Read more

How to remove filter apostrophe and single quotation

If I understand correctly, you’re only wanting to change the behavior of wptexturize within the href attribute of links. Here’s how I would go about that problem: Don’t mess with the default behavior of wptexturize, that function is used in a lot of different filters and its behavior is pretty useful. And definitely don’t hack … Read more

Pasting formatted text from MS-Word

Maybe you can take a look at the XML-RPC function and using Microsoft Live Writer. I think this will keep all your formats in tact. Further is gives you a nice interface to work with in a desktop environment. All you have to do is enable this function in the backend, options -> write. Download … Read more

Using Microsift Word/Outlook for content publishing to WordPress

I wouldn’t recommend it but… If you are not going to use multisite, then WordPress has a Post via e-mail feature setup under Settings > Writing. See http://codex.wordpress.org/Post_to_your_blog_using_email An alternative might be to get them to use Windows Live Writer, which would give the users a familiar mircrosoft interface. See: http://explore.live.com/windows-live-essentials-help-center?T1=t7

Removing Line Break Tags from a Page

You can hide <br /> elements with CSS using display:none; ofcourse you might want to try going into your post editor and removing any blank lines. WordPress converts line breaks into tags for you automatically when the content is rendered using a function like the_content().