templates

How to Use Twig + Timber with Multiple Loops based on Meta Key Value

So, I’ve got a custom field (meta_key) ‘premium’ with some posts (meta_value) set to ‘1’. I would like to display all of[...]

Why does my short code get executed before other content?

I have the following text in a page. As you can see my shortcode is right at the bottom but somehow when the code runs, the out put of my shortcode is[...]

Load entire NextGEN gallery from single thumbnail?

I’m using Alex Rabe’s NextGEN Gallery in a lot of client sites as a centralized image repository, and am finding I often need to load an entire[...]

How to change the default registration email ? (plugin and/or non-plugin)

After a new user registration, WP sends out an email with the login / password, and a link to the login page. Is there a way to change this defaut email[...]

Make all subcategories use the template of its category parent?

How can I make all subcategories use the template of its category parent? [...]

Create custom page templates with plugins?

Is it possible to make custom page templates available from a plugin? [...]

What's the difference between home.php and index.php?

If I create a home.php file, it seems that WP will use that instead of index.php, so index.php is never used? What are the differences between these two[...]

How do I get the size of an attachment file?

I’m using the following template code to display attachment links: $args = array( 'post_type' => 'attachment', 'numberposts' => -1, [...]