Formating the display of a post’s date, outside the Loop
I’m using something like this: date(‘F, Y’, strtotime($data[0]->post_date));
I’m using something like this: date(‘F, Y’, strtotime($data[0]->post_date));
applying the ‘the_content’ filter could work: <?php echo apply_filters(‘the_content’, $comment->comment_content); ?>
Use number_format_i18n( $number ). It will format the number with respect to the current blog’s language setting. It is a wrapper for PHP’s native number_format().
Presentation layer is best handled by CSS. In this case that would probably be margin-bottom rule for your heading. Markup with <br /> is usually unreliable. WP mostly relies on <p></p> tags for paragraphs and not line breaks.
To format number, you can use the function number_format_i18n (it’s not documented now, but you can see its source here). Its work is format the number based on the language. You might want to look at number_format (PHP built_in function, and is used by number_format_i18n) to have more control to decimal point and thousand separator. … Read more
In your functions.php: remove_filter( ‘the_content’, ‘wptexturize’ ); And the same for the_excerpt or the_title (if required).
I ran into this problem a year or so ago, and found a fix here. Open PHP.INI in a text editor of your choice (normally you can find php.ini in your php install dir) Change the recursion limit to 200x normal, that is, set: pcre.recursion_limit=20000000 Change the backtrack limit to 100x normal, that is, set: … Read more
If you came here, like me, looking for how to adjust the available text size options within Gutenberg, you can add this code to your theme’s functions.php file (you can add as many options as you like): add_theme_support( ‘editor-font-sizes’, array( array( ‘name’ => __( ‘Normal’, ‘your-theme-text-domain’ ), ‘shortName’ => __( ‘N’, ‘your-theme-text-domain’ ), ‘size’ => … Read more
After creating the specific CSS you need to format the page how you like, you could: Create a custom page template with the CSS and assign the template this page. Create a page-{slug}.php file with the CSS, where {slug} is the page slug for this page (most likely the filename should be page-voronoi-temperature-map.php). Create a … Read more
The “classic” TinyMCE editor has two dropdowns: formatselect for paragraph styles and styleselect for character styles – which can also contain paragraph styles, to make it more confusing. The configuration in WordPress by default only shows the format dropdown. If you apply a custom stylesheet to the editor, TinyMCE can use it to pick up … Read more