free tuts

Welcome to Limpopo

On Limpopo site, Virtuti-D publishes small web tutorials, code samples and design ideas. Find useful web design and development tips about HTML, Blogger, WordPress websites, templates and themes.

Sometimes we need to display custom metabox only on specific page. Say, we want to add metabox and display its output only on Home Page. To achieve this, we write in metabox function in this way:

Metabox will appear only on right side of page-home.php (Home Page) while on… continue reading Display WP custom metabox only on specific page

Sometimes we need to create and display custom metabox only for specific category. Say, we want to add metabox and display its output only on “Recipes” category in our blog. To achieve this we add a couple of lines of code to metabox code:

Metabox will appear only on… continue reading Add WP custom metabox only to specific category

If we want to display meta (custom fields), we usually use this:

However, we may use some custom fields (for example, for specific categories) which we might want to exclude form general list of custom fields. In this case, we’ll need to write on single.php this function:

In… continue reading Exclude some meta key and value from general post meta list