How to completely prevent WordPress from destroying/modifying my shortcode outputs?
How to completely prevent WordPress from destroying/modifying my shortcode outputs?
How to completely prevent WordPress from destroying/modifying my shortcode outputs?
Object of class WP_Error could not be converted to string in /formatting.php
Try with change line to date(‘d-m-Y’,strtotime($current_user->delivery_date)) ; function delivery_date( $atts ) { global $current_user, $user_login; get_currentuserinfo(); add_filter(‘widget_text’, ‘do_shortcode’); if ($user_login) return date(‘d-m-Y’,strtotime($current_user->delivery_date)) ; } add_shortcode( ‘delivery_date’, ‘delivery_date’ ); echo do_shortcode(‘[delivery_date]’);
You can use HTML to mark it up however you’d like. You can use a <strong> tag to make it bold: $film_tags = get_the_term_list( get_the_ID(), ‘film_tags’, ‘<strong>Tags:</strong> ‘, ‘, ‘, ” ); Or add a class to style with CSS: $film_tags = get_the_term_list( get_the_ID(), ‘film_tags’, ‘<span class=”tags-label”>Tags:</span> ‘, ‘, ‘, ” );
You could try this see if any different: <p> <?php $label = apply_filters(‘cm_tooltip_parse’, ‘Label: ‘, true); if ( generate_show_title() ) {$title = get_the_title();} else {$title=””;} echo str_replace( array( “\n”, “\r”), array( ”, ”), $label . $title ); ?> </p> If that works, cm_tooltip_parse or generate_show_title are probably outputting a line break somewhere, but at least … Read more
Preparing Hardcopy and Online Page
I found a semi-solution for now. The EditorsKit plugin adds a “Clear Formatting” option to the Gutenberg editor. It’s a few clicks and it works only on a per paragraph basis, but at least I don’t have to go to HTML and come back, which definitely takes longer. As a bonus, it adds many other … Read more
Problems with cart and pages on _s theme
Welcome to WPSE. You can try to filter it with: add_filter( ‘human_time_diff’, ‘wpse_hourly_human_time_diff’, 10, 4 ); where the filter’s callback is e.g. /** * Human time difference in hours only. * * @param string $since The difference in human readable text. * @param int $diff The difference in seconds. * @param int $from Unix timestamp … Read more
So inline formats don’t have a state as such, they aren’t discrete objects like blocks. Instead you apply a format to a slice of text, and the UI is generated on the fly. That UI is then given attributes that are currently active, an activeAttributes array is passed that contains those attributes. Note only active … Read more