2726 readersIn order to be efficient, a web developer should have a toolbox with code snippets he can use and reuse when needed. In this article, I'm going to show you 10 extremely useful PHP code snippets to add to your web developer toolbox.Like CatsWhoCode? If yes, don't hesitate to check my other blog CatsWhoBlog: It's
3054 readersWant to display human readable dates on your blog, such as "Posted 6 days ago?" There's a lot of available functions to do so, but only a few people know that WordPress have its own built-in function to do that. Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can
-
4869 readersOne of the easiest ways to customize WordPress is to add links to the footer of the themes template. You could add the link to any website you want and if your blog is part of your website adding a link to the homepage of your site will help your search engine rankings as well.
3037 readersIs your blog popular? Do you got receive lots of comments from your readers? If yes, what about displaying the most recent comments in your blog sidebar (or elsewhere) to let your visitors knowing about the discussion?Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!Display
3244 readersWe recently launched a site called theforgottenletters.org, an incredible project dedicated to translating the Holocaust-era letters of Ralph Schwab from German to English. While building the site, we needed to archive the letters based on the dates the letters were written, not when we publish them to the site. First, I tried this tutorial: How
210 readersWe recently launched a site called theforgottenletters.org, an incredible project dedicated to translating the Holocaust-era letters of Ralph Schwab from German to English. While building the site, we needed to archive the letters based on the dates the letters were written, not when we publish them to the site. First, I tried this tutorial: How
-
4723 readersNew plugins post2ebook generates ebook versions of any post you want and automatically inserts links to the generated ebooks within the post. Register Plus Redux is a fork of the popular and abandoned Register Plus with several enhancements, including a customized registration page, user-entered passwords, an invitation code system, and email verification. Theme Rotator lets
5394 readersLast month, jQuery Mobile was released. This tool allows you to easily create mobile websites and web apps. In this tutorial, I'll show you how to create a mobile-optimized WordPress theme.
3895 readersYou don't always want to login in WordPress - so I've turned off the login for my local development environment, since I don't need it. So far I know two ways how to do this, which I want to introduce you briefly. Decide for yourself which is the right way for you if you don't
4527 readers
(example screenshot)PHP
function ep_eventposts_metaboxes() {
add_meta_box( 'ept_event_date_start', 'Start Date and Time', 'ept_event_date', 'event', 'side', 'default', array( 'id' => '_start') );
add_meta_box( 'ept_event_date_end', 'End Date and Time', 'ept_event_date', 'event', 'side', 'default', array('id'=>'_end') );
add_meta_box( 'ept_event_location', 'Event Location', 'ept_event_location', 'event', 'side', 'default', array('id'=>'_end') );
}
add_action( 'admin_init', 'ep_eventposts_metaboxes' );
// Metabox