How to change the URL of sub menu page?

As per the requirement in the comments, one way to do that rewrite is with .htaccess. This may be possible with WordPress rewrite functions too, but I find .htaccess easier as there are some constraints with the WordPress functions. If your WordPress installation is at http://localhost/wordpress then your .htaccess should be in the wordpress directory. … Read more

WordPress Migration Post Problems

I’m not sure if this will answer your question or not.. WordPress separates the Content (pages, posts, media etc) from the design and functionality through the Theme. So you can completely change the design and functionality by changing the Theme, but retain the same content. You can see this in action with a new WP … Read more

Redirect old Posts URL to new URL

There are lots of solutions to redirect from the old post URL to the new post URL. You can install a plugin “Safe Redirect Manager” and set it from the admin panel. You can write some snippet in the functions.php file as: add_action(‘template_redirect’, ‘post_redirect_by_custom_filters’); function post_redirect_by_custom_filters() { global $post; // this array can contain category … Read more

Impossible to create a new WooCommerce customer using Rest API

In the documentation of WP REST User https://wordpress.org/plugins/wp-rest-user/ you have the aswer: To perform further actions after user is registered, write and add_action: add_action(‘wp_rest_user_user_register’, ‘user_registered’); function user_registered($user) { // Do Something } Replace “// Do Something” for the code to change the user role. Something like this (not tested): $u = new WP_User( 3 ); … Read more

data-vocabulary.org schema

Most of themes usually come with a microdata markup which is implemented based on the vocabulary.org language…you might need to rewrite some JSON LD scripts which will be implemented in your functions.php file or you can as well use schema pro plugin for your structured data markup. Specifically for breadcrumb, you may need to disable … Read more

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