Adding Custom Fields to WordPress User Profile

The user profile of WordPress can be fairly easily adapted to add your own values??. So you can add the necessary fields according to your requirements. Here is how you do it, we add a field for the address and the content will be stored in the database. Various hooks[...]

Read More »

Implement a 404 image in your Theme

Every good Theme comes with a 404.php for requests that don’t match any post or page. But what to do with missing images? They are requested per an <img> element usually, your visitors may never see the HTML template. Let’s use a 404 image. I put the following code on[...]

Read More »

Implement a 404 image in your Theme

Every good Theme comes with a 404.php for requests that don’t match any post or page. But what to do with missing images? They are requested per an <img> element usually, your visitors may never see the HTML template. Let’s use a 404 image. I put the following code on[...]

Read More »

Return the Template Name of Current WordPress Page

WordPress save the assignment in the post_meta table and so it is easy to get the template name with the default function to return post meta data – get_post_meta(). The key for the value is _wp_page_template. On this point also a small hint: if you will, that you not find[...]

Read More »

Return the Template Name of Current WordPress Page

WordPress save the assignment in the post_meta table and so it is easy to get the template name with the default function to return post meta data – get_post_meta(). The key for the value is _wp_page_template. On this point also a small hint: if you will, that you not find[...]

Read More »