Let’s Encrypt Let’s Encrypt is a non-profit certificate authority run by Internet Security Research Group (ISRG) that provides X.509 certificates for Transport Layer Security (TLS) encryption at no charge. The certificate is valid for 90 days, during which renewal can take place at any time. The offer is accompanied by an automated process designed to …
Showing 14 Result(s)
Importing MYSQL Database Syntax $ mysql -u username -p database_name < path_to_mysql_file_here Importing existing MYSQL database with filename "wordpress.sql" stored at directory "/home/nishant/", Username is "root", terminal will prompt for asking password. $ mysql -u root -p wordpress < /home/nishant/wordpress.sql Exporting MYSQL Database Syntax $ mysqldump -p -u username database_name > path_to_mysql_file_here Exporting MYSQL database …
Introduction to Git Git is a source-code control system that allows multiple developers to work on the same project. Each developer has a copy of the repository on his workstation, and can check in changes to that repository and synchronize it with a central server. Other developers can then fetch those changes by synchronizing their …
I’m Attending WordCamp Mumbai, 2017, This Weekend. #WCMUMBAI 2017 is happening on 25th & 26th of March, 2017 and I’ll be among the many attendees. I am attendee of WordCamp since 2015. I’m looking forward to meeting new people this weekend and creating new memories. I’d love to talk to you about your experiences with …
Create Slug from Post Title
Create WordPress Custom Post Meta
In this example ‘my-theme-textdomain’ is the defined as textdomain for the Theme. Text Domain is used to make the Theme translatable. (Codex reference: load_theme_textdomain()). Define the Theme’s textdomain load_theme_textdomain( 'my-theme-textdomain', TEMPLATEPATH.'/languages' ); Define translatable strings in the template. This is done using one of a few translation functions: __() (for returned strings), _e() (for echoed strings), and _x()/_ex() …
To get wordpress post content by post id use WordPress function get_post() with post id as parameter.
$the_postid = 1234;
$the_post_content = get_post($the_postid);
$content = $the_post_content->post_content;
WP-CLI – A command line interface for WordPress is a set of command-line tools for managing WordPress installations. You can update plugins, configure multisite installs and much more, without using a web browser. Setting up path for mysql command (For MAC OS Terminal) export PATH=$PATH:/Applications/MAMP/bin/apache2/bin/mysql Configure wp-config.php file at core WordPress wp core config --dbname=woo --dbuser=root --dbpass=root --dbhost=127.0.0.1 Start installation of WordPress for …
Following SQL statement can be used for closing comments on all pages & posts. update wp_posts set comment_status='closed'