Browsing articles in "Wordpress"
Jul
26
2014

How to create custom post types in WordPress

custom-post-type-wordpress-luutaa

Using custom post types in WordPress makes is a lot easier to create new type of contents. Your clients may ask for different content types like Movies, Books, Testimonials, Projects, Products, Clients, Hotels, Trips etc. A custom post type is created using register_post_type method in functions.php file. Simplest form of the custom post type implementation is:

Above code will create a custom post type Movie . Its enough to create basic version but you […]

Oct
26
2012

How To Create Infinite Scroll Pagination With WordPress

wordpress-must-dos

We will use WordPress’ ajax functionality to make the call for this pagination. First we prepare the basic function for our pagination, please insert the following code to theme’s functions.php

This function will be used to make the call for our pagination, basically we send two variables to this function via ajax, one is the page number and another is the file template we are going to use for our pagination. To enable this […]

Apr
30
2012

How To : Add Custom Dashboard Widget in WordPress

wordpress-widgets

There’re few plugins which add custom widget in dashboard to get more attention, for example informing about their new versions or latest news about that plugin etc etc. We can also add widget in dashboard easily for our plugins or themes with wordpress function “wp_add_dashboard_widget”

Nov
12
2011

Prevent user from deleting categories in wordpress

do-not-delete

WordPress is like a heaven for the programmer and for designer both. With the introduction of wordpress, blogging moves to next level . All of us know that wordpress is highly customizable and in any manner but there are several things which becomes pain for the beginner developer or wordpress programmer. One of the reason for the pain is, “Categories”. Categories helps us in grouping the posts so it is easy for manage and beneficial […]

Nov
11
2011

How to get thumbnail image src attribute in wordpress

thumb

Wordpress introduced Post Thumbnail feature in Version 2.9. Thumbnail is an image that is chosen as the representative image for Posts, Pages or Custom Post Types. This is especially useful for “magazine-style” themes where each post has an image according to wordpress .