Get Current Child Page with get_children

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

Call the function within the template file:

more documentation about get_children.

PHP, snippet, Wordpress, Leave a comment

How To Update PHP 7.0 to PHP 7.2 on Debian Easily

More than a year a go, I wrote about how to upgrade PHP 5.6 to PHP 7.0.

Now, PHP 7.0 will reached the end of its critical support through December 2018. After that date PHP community will no longer provides support for bugs. Following to PHP 7.0, PHP 7.1 will be put under discontinued support next year.

Also, since dotdeb dropped support for PHP 7.1 and later so we will use another package provided by Ondřej Surý’s. Continue reading “How To Update PHP 7.0 to PHP 7.2 on Debian Easily”

Linux, PHPLeave a comment

Featured Image as Previous Next Post Navigation in WordPress

Just add this code to single.php, replace or comment the default function like the_post_navigation, get_previous_post, get_next_post, etc.

Easy!

PHP, snippet, Wordpress, , Leave a comment