Showing posts with label WordPress tricks. Show all posts
Showing posts with label WordPress tricks. Show all posts

How to Create a Page that Displays Random Posts in wordpress


Have you ever been to a site and saw this cool feature? They have a link in their top navigation to something like Stumbe! or Read Random Articles, or some other creative text. When you click on that link, it takes you to a page that displays one random page. Each time you refresh, you are delivered with a new post. Well this trick is just for you then.

How to use a Custom Page as a Home Page in WordPress

This is one of the most wanted hacks that users want to know how to accomplish. First you need to learn how to create a custom page. You will need to duplicate your page.php or create a brand new .php file and add the following code at the very top:

<?php /* Template Name: WPtemplate */ ?>

You can change the template name. Change any styling, that you want in that page. Go to your WordPress admin panel and create a new page and select this template.