How To Create A Shortcode

WordPress makes it pretty simple to make your own shortcodes, so let’s create a shortcode for print a “hello” text. Open your function file and copy the below php code and past into function.php file. Now use the [mycode] for print “hello”

Get Related Post In WordPress

If you want to show related post then there are two methods of doing so and you can choose whichever method you prefer. One way is doing it without a plugin and then there is another method that is doing it with a plugin. Display Related Posts in WordPress with WP_query() Open your theme function […]