Posts

Showing posts with the label wordpress

wordpress table prefix change

  Change table prefix 1.       Download all the wordpress site files and database(.sql) file 2.       Open wp-config.php file and change the current database credentials and change the $table_prefix name. 3.       Upload all the tables from .sql file to new database. Now select all the tables and right click and change table prefix name(rename). 4.       Change 2 tables value, assume your old prefix was ‘wp_’ UPDATE `wp_dart_usermeta` SET `meta_key` = REPLACE( `meta_key`, 'wp_', 'wp_dart_' );   UPDATE `wp_dart_options` SET `option_name` = 'wp_dart_user_roles' WHERE `option_name` = 'wp_user_roles';   5.       Now change 2 values more, go to ‘_options’ table of your new database and change the ‘siteurl’ and ‘home’ url by new value. 6.       You can also set new password if you forgot o...

Dev Cheatsheet

doc link: https://docs.google.com/document/d/15gRGAB57iEFs_TGsqrk08_OZ36mX1yfsMKCYM6qX7gk/edit?usp=sharing Topic: WordPress Theme Dev We can develop our custom theme in wordpress. Let’s first understand the folder structure of wordpress.contact form  Let me assure you, how can you make a proper structure of a wordpress project.  front-page.php: This template is used to display the front page of the site. It's often used for the site's homepage. index.php: This is the fallback template used when more specific templates are not available. It usually displays a list of posts. style.css: This file contains the styles for your theme. While it can include theme author details in comments, its primary purpose is to style the HTML elements of your theme. single.php: This template is used to display a single post's details.             404.php: handle 404 error page          ...