You are here: Home » Tag Archives: Web Development

Tag Archives: Web Development

Cleaning Comments Table After User Deleted

Clean Comments after Deleting User in WordPress

Using WordPress, you can easily delete a user and move its all posts to Administrator, but WordPress is not deleting user data from comments and comments meta tables. If you want to clean comments and comments table after deleting a user then, you have write your own code and I came up with following code to clean comment tables when ... Read More »

Add New Category To All Existing Posts

wordpress categories

Today, We will work into adding or linking new category to all existing posts in WordPress. First, find the category ID using Reveal IDs plugin or retrieving category ID from its name using custom MySQL code shown as below: $cat_id = $wpdb-&gt;get_var("SELECT term_ID FROM $wpdb-&gt;terms WHERE name='cat_name'");<!--more-->   After getting category ID, simply by using wp set object terms which takes ... Read More »

Insert Ads Within Post Content

Insert Ads Within Post Content

You may have seen blogs that has ads inside post content. Usually, ads are after first paragraph or second paragraph. Most of the bloggers wonder whether these sites insert ads manually when they are writing the post content, or if there is a especial code for this. Well, there are many ways to insert ads inside post content; Most of ... Read More »

Create Custom Meta Box in WordPress

Meta Box

WordPress has become the most powerful framework for blog and web development. WordPress allows users to create custom fields; custom fields in WP are called meta-data and can be added to post. For instance, Custom fields can used to add title and description for improving SEO (Search Engine Optimization). But adding custom fields for each post is not a good ... Read More »

Get Attachment File Size in WordPress

Get Attachment File Size in WordPress

When visitors are downloading a file, its a good idea to show them the file size so, they can decide by the file size if they want to download the file or not. Especially those visitors who uses small devices such as mobile phone as they care about storage space a lot. Read More »

CSS Float Problem

CSS Float Problem

When designing a website or making website layout, we want some elements to align on the right or on the left of the web page. Usually, we use CSS float property (“float:left/right”)to align the elements. The left value of float property aligns an element to the left and right aligns an HTML element to the right. You might have used ... Read More »

Write Text Over Image or Picture with PHP

Adding custom text over image or pictures is a good way to declare copyrights or give a simple title information to that graphical image or picture without editing the image itself. PHP made it very easy to add custom text over image or picture by using some basic functions from PHP GD. Read More »

Get Browser and Operating System Information with PHP

Long time ago I needed to get browser information with PHP and I wrote a class which uses preg_match_all function with regular expressions to get information from browser.This class will return information from browser in an array format included browser name, browser version and also operating name. It helped me so I shared to help others. Read More »

Scroll To Top