Modify the permalink structure for a specific category

A user posted several correction ideas; unfortunately, they were deleted, but I managed to remember some things and apply them to the code. The 404 error no longer appears; now it generates the following: Try deleting cookies. ERR_TOO_MANY_REDIRECTS add_filter(‘post_link’, ‘custom_permalink’, 10, 3); function custom_permalink($permalink, $post, $leavename) { $categories = get_the_category($post->ID); $news_category = array_filter($categories, function ($category) … Read more

Updates applied to staging WordPress site affecting production even with different databases

I have resolved my issues by reviewing the Redis Cache plugin installation guide and making the following changes inside the wp-config.php files on each WordPress installation. The define( ‘WP_REDIS_PREFIX’, ” ); was added with the values set as production, staging, and beta for each respective site. The define( ‘WP_REDIS_DATABASE’, 0 ); values for the staging … Read more

do_blocks not working with a custom block

It could be that the block is processing CSS, and that CSS processing has already occured. You need to thus run the do block in the header, or that is the solution I’ve been told. I’ve not gotten it to work, for myself.

WordPress Insert line in DB when clicking a button

There are many problems here. Resolving one leads to another. Uncaught ReferenceError: response is not defined In your JavaScript code, you set the success key to a function function (data) { $(“#result”).html(response); } response is not defined. The callback has a function parameter of data, not response. This causes the error. .html(…) sets the HTML … Read more

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