Excluding tag Link from html tags in Post content

Your function replaces EVERY tag_name occurence in the content. Meaning, it will replace <h2>my-tag</h2> into <h2><a href=”https://wordpress.stackexchange.com/questions/307147/tag-link”>my-tag</a></h2>. I’m assuming you add the tag names to the content manually. Then i would add them with an identifier. For example add the tags to your content like this: This is my content, i can add tags that … Read more

How to prevent WP from inserting empty posts

Due to auto-save’s the post will always exist in WordPress, it’s inserted into the database as soon as content is entered. So you can’t prevent an entry, – however you can filter after a user hits “Publish” or “Save” on the post using wp_insert_post, or save_post. With this action you can do your conditional checking … Read more

Not able to post data through wp-admin

I recommend to try by debugging the code, might be there is an issue because of a New version of PHP. Try by writing this code into the wp-config.php file and see what if any error: // Enable WP_DEBUG mode define( ‘WP_DEBUG’, true ); // Enable Debug logging to the /wp-content/debug.log file define( ‘WP_DEBUG_LOG’, true … Read more