6 Tips on How to Build and Sell WordPress Themes

Design, Theme, UI / UX Design, Wordpress, , Leave a comment

If you know how to design WordPress themes, you can make some and sell them to earn some pocket money. It is possible to earn a decent income if you can get a lot of copies of your WordPress theme sold. The following are six tips on how to build and sell WordPress themes.

Continue reading “6 Tips on How to Build and Sell WordPress Themes”

Get Current Child Page with get_children

PHP, snippet, Wordpress, Leave a comment

There are many method to display current child page in WordPress, this function is usefull to do the same command. Just Paste this code in functions.php

function sb_child_page_menu( $current_parent ) {

// Display Subpages on the parent and list subpages of the current parent if on the child page

	if(wp_get_post_parent_id($current_parent)) {
		$parent_ID = wp_get_post_parent_id( $current_parent );
	} else {
		$parent_ID = $current_parent;
	}

// Get the Childpages / Subpages using get_children function

	$arg = array(
		'post_parent' => $parent_ID,
	);

	$childrens = get_children( $arg );

	if( !empty($childrens) ) {
		echo '<div class="sub-page">';
		foreach ( $childrens as $children ) {
			echo '<a href="'.get_permalink($children->ID).'">'.$children->post_title.'</a>';
		}
		echo '</div>';
	}
}

Call the function within the template file:

sb_child_page_menu( get_the_ID() );

more documentation about get_children.

Razer DeathAdder Double-Clicking Issue

Download, Hardware, Windows, , Leave a comment

I have two DeathAdder Mice from Razer – DeathAdder 2013 and DeathAdder Chroma Elite, and strangely both mouse has the same issue; it resulted in double clicks when you trigger a single click. And I’m pretty sure that the problem is not on the hardware, I’ve had the same issue (which is hardware) in the past and resolved by changing the switch.

Well, after searching the Net and found out that the issue is related to the Firmware, then I updated the firmware and it fixed the issue.

You can get the firmware here, only works on Windows OS:

DeathAdder 2013 (2,4MB)

DeathAdder Chroma (2,4MB)