How can I change the date format of the revision list?

You can filter the output like bellow: <?php /** * @param $revision_date_author * @param $revision * @param $link * @return mixed */ function filter_wp_post_revision_title_expanded( $revision_date_author, $revision, $link ) { $revision = get_post( $revision ); if ( ! $revision ) { return $revision; } if ( ! in_array( $revision->post_type, array( ‘post’, ‘page’, ‘revision’ ), true ) … Read more

Email sent from WordPress has HTML tags

The default content type is ‘text/plain’ which does not allow using HTML. You can set the content type of the email by including a header like “Content-type: text/html” $headers=”Content-type: text/html;charset=utf-8″ . “\r\n”; $headers .= ‘From: XXXXXX.com <[email protected]>’ . “\r\n”; $subject=”Registration from xxxxx.com” . “\r\n”; $message = $result_email_text; wp_mail($_POST[‘admin_email’], $subject, $message, $headers ); Or you can … Read more

How to add custom HTML tags in the visual mode via keyboard only?

if you are using classic TinyMCE editor then perhaps you can modify it add custom styles. Following code may help you create visual buttons for adding inline styles. // Add Formats Dropdown Menu To MCE if ( ! function_exists( ‘mk_style_select’ ) ) { function mk_style_select( $buttons ) { array_push( $buttons, ‘styleselect’ ); return $buttons; } … Read more

Style wordpress image captions in RSS

As far as I know the only way to add styles to RSS feed items is by adding them inline (e.g. <p style=”color: #333; font-weight: bold;”>Hello World</p>). If you don’t specify any styling, then the reader app/website that the end-user is using applies its default styles. Certainly editing styles.css won’t make any difference, because that … Read more

Problem with -> in pre tags

If you’ve written it as it actually appears, you are missing the semi-colon ; directly following the &gt. Sometimes moving between the visual editor and the html editor will cause this problem. It can also happen when copying and pasting code from another source. Go into the HTML editor and check the code where the … Read more

why doesnt my formatting work in my wisiwig editor?

The Visual editor is behaving as-configured. You will either need to pass a custom configuration setting to tell TinyMCE not to ignore multiple line-breaks, or else you will need to use the HTML editor if you want to add line-breaks in the manner that you’re currently using.