Delete all href attribute in WordPress posts

Moving comment to answer: Did you try adding a delimiter around your regex pattern? That’s what the little note on the bottom of your screenshot says. So for instance, /]>(.?)</a>/ , noting the added slashes. (Since this is replacing stuff in your database, let me say, use at your own risk.)

How to remove massive link in WordPress content

Your best bet is a ‘search and replace’ plugin that will fix things in the database. I like the “Better Search and Replace” plugin. It has a ‘test’ mode so you can make sure that all is well. You would enter the first term in your question as the ‘search’, and the 2nd term as … Read more

Weird strange letters appeared in all website links [duplicate]

This has to do with geolocation, and is functionality built into Woocommerce. https://woocommerce.wordpress.com/2015/07/02/making-geolocation-static-cache-friendly-in-2-4/ See under the title on that page Geolocation, with a hint of Ajax This seems to be a pretty good write-up of the functionality and how to disable it: https://www.wpbeginner.com/wp-tutorials/how-to-remove-vxxxx-string-from-wordpress-urls/

Remove nofollow from specific internal links

I wrote the following code to address ADDING tag attributes, but here is a version to help you locate, and remove nofollow: add_filter( ‘the_content’, ‘ex1_the_content_filter’ ); function ex1_the_content_filter($content) { // finds all links in your content with a nofollow preg_match_all(‘/\<a .*?”nofollow”.*?a>/’,$content,$matches, PREG_SET_ORDER); // loop through all matches foreach($matches as $m){ // potential link to be … Read more

Link To Child Category For A Post

You can use get_category_link() for that: $allCat = get_the_category(); if( ! empty( $allCat ) ){ $lastCat = array_reverse( $allCat ); $last_cat_link = get_category_link( $lastCat[0] ); if( ! is_wp_error( $last_cat_link ) ){ echo ‘<a href=”‘ . $last_cat_link . ‘”>’ . $lastCat[0]->name . ‘</a>’; } } https://developer.wordpress.org/reference/functions/get_category_link/

Using Static HTML instead of the `home_url()` WP function

href=”https://wordpress.stackexchange.com/questions/350287/./contact-page” if you’re on the homepage (/) this will become: /contact-page if you’re on another page named foo (/foo/) this will become /foo/contact-page This is due to ./ being a relative path. To avoid struggles like this, the method via home_url() is preferred because it creates absolute links/paths that will work from anywhere you call … Read more

Why aren’t links clickable on my 404 error page? [closed]

It’s because you have incorrect css being used on some divs within that page. On that page a couple of divs down from the H1 deceleration you have a div with some inline css: <div style=”width: 100%;height: 0;padding-bottom: 56%;position: relative;”> You need to remove the padding-bottom:56%; so it is: <div style=”width: 100%;height: 0;position: relative;”> Then … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)