Hot answers tagged

3

The value of the textarea must be printed between the opening and the closing tag: <form action="/"> <textarea name="whatever"><?php echo esc_textarea( $description ); ?></textarea> </form> Note the usage of the function esc_textarea() here. It prevents any possible character inside the variable $description from being ...


3

It seems that error is in your theme.min.css. The Font Awesome Icon which should appear in the browser is added via CSS using content. But the CSS does not contain the icon information but these weird looking characters. For Example: .fa-music:before{content:"&iuml;&iuml;&iquest;&frac12;&iuml;&iquest;&frac12;"} I cannot tell why ...


1

You could refer to this: function my_formatter($content) { $new_content = ''; $pattern_full = '{(\[raw\].*?\[/raw\])}is'; $pattern_contents = '{\[raw\](.*?)\[/raw\]}is'; $pieces = preg_split($pattern_full, $content, -1, PREG_SPLIT_DELIM_CAPTURE); foreach ($pieces as $piece) { if ...


1

The best ways to get content OUTSIDE of WordPress would be (listed in my order of preference): By using the WP REST API plugin (soon to be fully integrated into core) Via RSS feed as mentioned by @AricWatson in the comments above. Direct queries into the MySQL wp_posts and wp_postmeta tables. When content is rendered INSIDE of WordPress there are a ...


1

Your headings (h1, h2, etc) have the css property word-break: break-all; applied to them. Removing this property in Firebug provides the correct line breaks. You could override this in your child theme CSS.


1

Yes you can do it, just find the file where the text resides, maybe single.php or single-{post_type}.php or archive-{post_type}.php Then, look for the string you want to change erase it and set a variable, something like this: If the file where the string is, is a template file for that specific post type, the you will only replace the string for whatever ...


1

WordPress provides a few generated classes just for this issue. What you probably want is to float the image left in your example. The CSS rules listed in the Generated Classes section of this Codex page are what you are after. https://codex.wordpress.org/CSS#WordPress_Generated_Classes For the sake of future-proofing or a URL change, here is that ...



Only top voted, non community-wiki answers of a minimum length are eligible