Update the permalink for one post via wp cli

If you mean the post name field, then we can update it for a post with: wp post update 123 –post_name=”new-slug” where 123 is the post ID. If we then try to update another post with the same post name: wp post update 321 –post_name=”new-slug” then it will be set to new-slug-2 in that case, … Read more

Stop Images Linking to Themselves?

To change the default for images (so you don’t have to choose “none” on the image links to checkboxes every time you insert an image into a post), you can go to yoursite.com/wp-admin/options.php; find the image_default_link_type option, and change the value from “file” to “none”.

Permalinks settings

I’m not able to visit either link successfully. I get a redirect loop error: ERR_TOO_MANY_REDIRECTS Changing the URL of your website in Settings > General > Site URL is not enough unfortunately. You will still have your post content with your sub domain URL (clasificados.example.com) causing your website to not load properly. Once you’ve downloaded … Read more

Custom rewrite rule ignored

The rewrite rules are correct, but because you are modifying the $wp_rewrite directly, you aren’t getting the benefit of being able to add the rule to the top of the stack using add_rewrite_rules. You are on the right track with the location of the rule in the array, but rules at the top are checked … Read more

Press-This stopped redirecting to permalink after post publish

Okay, so after narrowing the problem down to the function get_post_permalink() which gets called by wp-admin/includes/class-wp-press-this.php on Line 181, and for some reason returns the Querystring rather than the Permalink when I am using my 3rd party theme, I implemented a workaround which is not ideal, but it works! I added the following code, starting … Read more

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