Quantcast
Channel: Old Coding – DevotePress
Browsing latest articles
Browse All 21 View Live

When to use pre_get_posts in WordPress

Many of us are unaware about pre_get_posts hook that is very handy when it comes to alter the main loop. It was sometime before, I got to know about this handy filter by WordPress review team while...

View Article



Image may be NSFW.
Clik here to view.

Part I: Data Validation and Sanitization in WordPress

Data validation and sanitization comes into action whenever users are allowed to enter data either via forms in Custom Meta Box, Theme Options or any other ways.  Although our code seems to work fine...

View Article

Image may be NSFW.
Clik here to view.

WordPress Custom Loop Pagination

Using WordPress normal loop to achieve something completely different is often not possible, So two things comes first. Either to use query_posts or wp_query. But its always better to use wp_query....

View Article

Image may be NSFW.
Clik here to view.

Part II: Data Validation and Sanitization in WordPress

In the First Part of this article, I explained about Data Validation and Sanitization, it’s importance and some key differences between them. In this part I shall be covering some of the important...

View Article

Image may be NSFW.
Clik here to view.

Registering Sidebar in WordPress

Sidebar can be any part in the page layout and it’s an excellent way to display information. Found mostly on left and right part of the main body but it can also be in the header and footer area. Any...

View Article

Browsing latest articles
Browse All 21 View Live




Latest Images