Convert bookmarks.html file into WP posts

UPLOAD The simplest way would be to use a form plugin. People like Contact Form 7, WPForms, other people like Gravity Forms. If you want the uploads to be from WordPress users only. You can hide the form in a password page, generate forms through shortcode on PHP conditional. etc. You can create your own …

Read more

display text on the same line

Note that the_author_meta() doesn’t return the meta value, but echoes it. That’s why the name is suddenly outside the <p> element. Use get_the_author_meta() if you need to return (and do something with) the field, rather than just display it. I’d highly recommend you to change your use usage of __() too, because that is not …

Read more

Use of http form post

Honestly, your best bet is to actually use $_POST to process this logic. In your form, your submit buttons lack a name attribute which would allow you to do this: <form method=”post” action=”http://xxx.yyy/wp-admin/admin-post.php”> <td width=”60″ height=”26″> <input type=”submit” value=”Lot #” name=”lot”> </td> <td width=”154″ > <input type=”submit” value=”Name” name=”name”> </td> <td width=”154″> <input type=”submit” value=”Subdivision …

Read more

How to disable escaping html chars in wordpress?

If you want to write some code, you can use a shortcode: add_shortcode( ‘unescape_js’, ‘add_js_code’ ); function add_js_code( $atts, $contents=”” ) { $contents = html_entity_decode( $content ); return $contents; } Usage – in text editor [unescape_js] Your js code && more js codes…[/unescape_js] But saving js code directly into DB is not recommended at all.

Adding to the WYSIWYG

TinyMCE has a ‘formats’ dropdown that you can add options to: This option enables you to add more advanced style formats for text and other elements to the editor. The value of this option will be rendered as styles in the styleselect dropdown toolbar item. https://www.tinymce.com/docs/configure/content-formatting/#style_formats The first thing you need to do is add …

Read more

­ hyphenation not working in Gutenberg editor

With the ‘new’ Gutenberg editor the previously working solution using the tiny_mce_before_init hook does not work anymore, but there is the possibility to define a new shortcode in your theme / plugin as a workaround. Solution for Gutenberg add_shortcode(‘shy’, ‘my_shy_shortcode’); function my_shy_shortcode($atts) { return ‘&shy;’; } This simply adds a new shortcode to WordPress with …

Read more

Phantom strong tags in wordpress

You most likely haven’t correctly closed a <strong> tag somewhere. This is the browser’s attempt to resolve that problem. If you look at the raw HTML source by right clicking then View Page Source (not Inspect Element) you should be able to see if there’s a <strong> tag with a missing or misspelled </strong> tag. …

Read more

#text at the begging of every page, before the main content block

Since we know that the ‘#’ was accidentally added when you were including the custom fonts from Google that’s addressed, but as per the comments, here’s the correct way to add these fonts so that you’re not dropping them in your custom header. You want to place them in the head instead so you have …

Read more