Ugly permalinks stopped redirecting to pretty URLs

Found the following in a plugin file using grep -Ri ‘redirect_canonical’ /path/to/wordpress/plugins: remove_filter(‘template_redirect’, ‘redirect_canonical’); That disables WordPress’ built-in canonical URL redirects. Disabling the component of the plugin that contained that line fixed the problem. Beware the WordPress Mobile Pack’s Mobile Switcher. Hopefully reaching out to the plugin developer will result in a fix that allows … Read more

Search results highlight breaks my read more link

Try this. function search_excerpt_highlight() { $excerpt = get_the_excerpt(); $keys = implode(‘|’, explode(‘ ‘, get_search_query())); $excerpt = preg_replace(‘/(‘ . $keys .’)/iu’, ‘<ins class=”search-highlight”>\0</ins>’, $excerpt); echo ‘<p>’ . $excerpt . ‘&hellip;’ . supralegal_read_more_link() . ‘</p>’; } function supralegal_auto_excerpt_more( $more ) { return ”; } add_filter( ‘excerpt_more’, ‘supralegal_auto_excerpt_more’ ); function supralegal_read_more_link() { return ‘ <a href=”‘. esc_url( get_permalink() … Read more

Why do I have “category” in my permalinks?

By setting your permalinks to %category%/%postname%, you are setting the permalinks only for your posts and pages. Below the posts and pages permalinks option is another one for your categories. Just set your categories slug to . and it will just be the category name. Here’s a visual example:

Comparing permalink to url

You need to be using get_sub_field(), not the_sub_field() to set $company. the_sub_field() has no return, it just echos the value, whereas get_sub_field() returns the value (but does not echo it).

WordPress home page showing 404 error

Try checking what your front page is set to in Settings > Reading. It should either have the your latest posts option selected, or the static page option selected and the front page set to a valid page. Edit: Wait… the http://www.walkerpoolenixon.com/wordpress url you provided doesn’t exist! Maybe you mean http://www.walkerpoolenixon.com/?

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