WordPress: Custom Loop Query
Creating a custom loop query can allow you to utilize the base WordPress loop with your own custom query. This could be used in many situations such as pulling only posts with a specific tag...
Classes are the cookie-cutters / templates that are used to define objects. Classes, Class Properties and Class Methods To define a class:
1 2 |
class person{ } |
Variables in classes are called properties:
1 |
var $name; |
Define properties with access modifiers (public,...
HTML / PHP / Tutorials / Web Development / WordPress
The following code will enable you to use any shortcode within your theme and not just a page or post.
1 |
<?php echo do_shortcode('[shortcode option1="value1" option2="value2"]'); ?> |
Just replace the [shortcode option1=”value1″ option2=”value2″] with your desired shortcode.
More
Recent Comments