in2wp

  • Home
  • Tips
  • How to
  • Save
  • Themes
  • Contact

Tricks 5

Tricks

Switching PHP Version within cPanel

4 years ago How to, Miscellaneous, Tips, TrickscPanel, PHP, Switch, Version

Use following steps to switch your server/hosting package PHP version using cPanel.

1. Login to your hosting cPanel
2. Locate the MultiPHP Manager tool in the Software section of your cPanel.

3. Click the checkbox for the domain(s) that you want to adjust.
4. From the drop-down menu labeled PHP version, select the PHP version that best suits your site code.

5. Click the blue Apply button to save the change.

How to fix “Module ‘disk’ power on failed” VMware

4 years ago Tips, TricksDisk, Virtual Machines, VMware
Cannot open the disk 'Windows7.vmdk' or one of the snapshot disks it depends on Module 'Disk' power on failed

Cannot open the disk ‘D\Virtual Machines\Windows7\Windows7.vmdk’ or one of the snapshot disks it depends on.

Module ‘Disk’ power on failed.

This might happen when VM not properly shutdown. All you have to do is to delete xxxxxxx.vmdk.lck (Windows7.vmdk.lck in above case) in the same folder.

Fix Module 'Disk' power on failed vmdk lck - VMware

Custom Fields for Gutenberg

4 years ago Plugins, Tips, TricksCustom Fields, Gutenberg, Options, Version

Now you don’t need any plugin to display Custom Fields.

From WordPress version 5.0+ displays Custom Fields natively.

it requires only a couple of the following steps:

Just click the settings button (three dots) and go to Options, where you will find the option to display the Custom Fields meta box.

Jetpack Publicize for share your site’s custom posts on social media

4 years ago Code, How to, Tips, TricksCustom Post Types, Functions, Jetpack, Publicize, Share, Social Media

By default, Jetpack’s Publicize is only triggered when you publish a new post. You can, however, extend this to other Custom Post Types. You have 2 options to add Publicize Support to a Custom Post Type:

  1. You can add Publicize support to an existing post type thanks to the add_post_type_support() function. To do so, add the following code to a functionality plugin or directly modifying the theme’s functions.php file. (carefully)

add_action(‘init’, ‘my_custom_init’);
function my_custom_init() {
add_post_type_support( ‘product’, ‘publicize’ );
}

You’ll need to replace “product” with your Custom Post Type name.

2. You can add Publicize support when registering the post type:

// Register Custom Post Type
function custom_post_type() {

$labels = array(
‘name’ => _x( ‘Products’, ‘Post Type General Name’, ‘text_domain’ ),
);
$args = array(
‘label’ => __( ‘product’, ‘text_domain’ ),
‘supports’ => array( ‘title’, ‘editor’, ‘publicize’, ‘wpcom-markdown’ ),
);
register_post_type( ‘product’, $args );

}
// Hook into the ‘init’ action
add_action( ‘init’, ‘custom_post_type’, 0 );

cPanel doesn’t allow @ as the Name for TXT Record

5 years ago Errors, Tips, TrickscPanel, DNS, Domain, Record, TXT, Zone

When you try to edit TXT record in DNS Zone editor in cPanel, you might getting following error saying,

“You must specify a valid zone name.”

You must specify a valid zone name


As a solution you can type the ‘domain name‘ instead of typing ‘@‘.

You must specify a valid zone name

Protect your visitors with SSL, from $3.44

Most viewed
root directory on Bitnami (WordPress) on Amazon LightSail
Root directory (htdocs) location – AWS LightSail (Bitnami & WordPress)
1,839 views
Cannot open the disk 'Windows7.vmdk' or one of the snapshot disks it depends on Module 'Disk' power on failed
How to fix “Module ‘disk’ power on failed” VMware
1,084 views
Wave-Video-Maker-Lifetime-plan-Animatron
Wave.video Lifetime Deal
1,039 views

About

in2wp

Start & Keep Growing with WP!

Guide you to quickly take your business online with WordPress and go beyond the usual online marketing actions.

This content uses referral links, which means in2wp may be compensated in exchange for your clicking on links posted on this website. Read our disclosure policy for more info.

  • in2wp
  • Contact in2wp
  • Terms of Service
  • Privacy Policy
2018 © in2wp.com | It all starts with a simple d̵r̵e̵a̵m̵ WordPress website !