Imagine you have a page which you want accessible by admin or logged-in user. You need redirect not Logged in users, if they directly access page’s url. there is a simple trick to that.
if you looking for a way to create a new sidebar area, to add widget and show on different part of website(footer,header,left, right or main content section), you can use dynamic_sidebar() function.
If you are using wordpress, sometimes you need to show other pages content in another page. You can use this function in your theme’s function.php file and you can call it anywhere.
If you want to use the site locally on Mac, you need to have MAMP application and to setup a new site, there are couple of settings you need to make sure are enabled in order to MAMP access your site. First, you need to enable virtual host, open the httpd.conf from the bellow path: