There are so many WordPress Tricks that we can apply. In our current section we will show you, how to create “Dynamics” “Statics” Pages in WordPress. That’s I mean on this point is simple. We will generated semi automatics pages using little bit query and custom field
The first time we should to do is create Custom Page, it’s really simple, duplicate your page.php and give another name (example page-dynamics.php) and added on the top code
<?php /* Page Template: Dynamics Page */ ?>
That’s all, so simple right? The next step is added Custom Loop like on this example
<?php
$customQuery = new WP_Query();
$customQuery->query('meta_key=this-is-page');
?>
<?php while ($customQuery->have_posts()) : $customQuery->the_post(); ?>
<!– Do query stuff here –>
<?php endwhile; ?>
On our current example, on each post that we want play as page, we only need to added custom field this-is-page. If you need real example for this tricks you check it on WP Shout.
Maybe you interested to enhanced your WordPress as CMS on our previous post
- How To Setup Multiple Loops in WordPress
- Create Custom Page with Custom Loop and Query
- Custom Loop Example
Photos Jessica Jane Clement courtesy Egotastic




Hello, I’m days old with WordPress and I;’m also using Thesis. How would I make a page with a custom database query? I’ve read your post but I’m unable to understand how to start the page. Do I use the page editor in the dashboard or make a new file on the server?
Dan,
If you are wanting to create an additional CUSTOM page into WordPress you need to do this on your server via FTP and a text editor NOT the WordPress editor.
You would make a unique file. You can do some research on WP_Query and it will help you a lot. WP_Query accepts dozens of helpful parameters in the form of a request string or an array to grab the information you need.
the pictures you put in your post are soo hot
Your website is a good source of tricky codes in word press.