How do I format the date in Event Organizer?

%start{date-format}{time-format}% (using php date format) for example: %start{M jS, Y}{ g:i:a}%* This will output as June 17, 2012 11:00am Shortcode: [eo_events]<a href=”https://wordpress.stackexchange.com/questions/53851/%event_url%”>%event_title%</a> on %start{M jS, Y}{ g:i:a}%, at %event_venue%[/eo_events] Referance: Event Organiser

Multiple Rows in a using wp_query

Get all of your posts in one query, then count the iterations of your loop. Pseudo-code follows. if ( $query->have_posts() ) { $i = 0; while ( $query->have_posts() ) { // If $i is 5 (5th post), end one row and start the next if (++$i == 5) { echo ‘</tr><tr>’; } // the rest … Read more

WordPress get_the_content losing formatting when emailed

The default email content type is text/plain which does not allow using HTML. Add this to your functions.php file: // use HTML instead of plain text add_filter( ‘wp_mail_content_type’, ‘my_awesome_mail_content_type’ ); function my_awesome_mail_content_type() { return ‘text/html’; } But be warned, different email clients has very different support for CSS rules.. Read more from here. Alternative: If … Read more

How to amend time format of comments, using child-theme?

You have to return the formatted date string, the following will work: // define the get_comment_time callback function filter_get_comment_time( $date, $d, $gmt, $translate, $comment ) { $d = “g:i:s”; $date = mysql2date($d, $date, $translate); return $date; }; // add the filter add_filter( ‘get_comment_time’, ‘filter_get_comment_time’, 10, 5);

Linebreaks behaving oddly inside blockquotes

br and p tags get stripped out and converted to newlines, they’re not added until the post content is output. See the codex entry for the wpautop function, this is what is converting those newlines to br and p tags on the_content. It’s difficult to say what exactly is going here in this case though. … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)