How to Remove Height and Width From Inserted Images

When we upload an image with the help of WordPress media uploader and insert it into editor, it comes with height and width attributes. These are normally default attributes, as it assists browser to make appropriate room for the image during layout. But if you want to remove these attributes from image then you can […]

WordPress WP_Query: Get Posts by Meta Values

As you know all the posts have the metadata you can fill in “Custom fields” metabox (it can also be hidden). So, for example, if you want to get a post with meta key show_in_slider and meta value true, you can do it in the following way: Otherwise, if you need to query all posts […]

How to Integrate responsive-nav.js into WordPress Navigation

Responsive Web Design is all the rage these days. Clients are asking for it, web developers are expected to know it, and most importantly, mobile devices are more popular than ever. One big area of a website is website navigation. In my post, I talk all about responsive navigation and how to make it work […]

How to Control WordPress Custom Post Types, Capabilities and Roles

As We all knows about Custom Post Types and how to create them, when we create custom post types without Capabilities all users except subscriber roles can publish, read, edit and delete them by default. What if we wanted to create a custom post type that Author could read, edit and publish but Author Staff […]

WordPress 3.8 arrives with redesigned dashboard, new theme and widget screens, vector-based icons, and many more

WordPress.org announced the debut of WordPress 3.8, which introduces a modern new design that the company calls its “most beautiful update yet.” You can download the new release now from WordPress.org/Download (it’s 6.10MB). Dubbed “Parker” in honor of American jazz saxophonist and composer Charlie Parker, WordPress 3.8 brings a new look to the entire admin […]

Improve loading, Remove unnecessary scripts and styles in WordPress

Some of the plugins, when installed, add 2 or 3 scripts and stylesheets to every page on website. This isn’t necessarily a problem but it would be nice to have scripts loaded only on pages that actually need them. Let’s take a example of the most popular Contact Form 7 plugin. Most likely, only pages […]

Show Custom Post Types on the Homepage

Custom post types are commonly used in WordPress sites, but they don’t show on the homepage or in the archive pages unless you write code to do that. I’ve put together some code that is smart about detecting your public custom post types and automatically adding them to your homepage and archive pages:

WordPress 3.6: What’s new, and why it Batters

A New User Interface to Create Menus Many of users often found Menus confusing. WordPress 3.6 comes with a new and simpler user interface to create and edit menus for your website. It has two tabs, one for editing menus and another to manage locations. This new interface is easy to use, and i think […]

Disable Post Revisions in WordPress and Reduce Database Size

Post revisions is a great feature that WordPress has to offer but for some users it might not be the best option. For users who have limited database space, or for users creating WordPress as a CMS where they don’t need autosave, they can simply disable Post Revisions feature in WordPress by following this tutorial. […]