Search Results for wordpress
How to : Create a new WordPress user using PHP function
It's pretty easy to manage users in WordPress when you are logged into WordPress Dashboard as an Administrator. But what if you want to create a user via a PHP function ? The method which we are going to discuss is useful when you are creating a plugin or if you want to create a user by simply execu
How to: Remove /category/ from your WordPress url
WordPress has awesome way to handle it's URLs with the name called Permalinks. It gives flexibility play around with almost everything in the URLs. Apparently, you can change the category and tag base from your WordPress Dashboard settings page. You can specify a string to replace the default "Categ
How to use Nextgen gallery using custom php code on theme file
Nextgen Gallery is pretty famous gallery plugin used in WordPress. It provides shortcode to insert gallery in posts,pages, sidebars etc. In this post, we are going to use nextgen's built in functions to show these galleries, albums in WordPress template files. Ideally we show the Nextgen gallery on
How to create Nextgen gallery custom template
I am sure you have used Nextgen Gallery plugin to display images on your blog. But there are times, when you simply want to display images in your style and not using the pre-defined templates. In this post, I am going to tell you how you can create custom template for nextgen gallery. Follow the be
Show twitter like X days ago in WordPress for time
Have you fantasized of showing twitter like time on your blog, like posted 2 days ago ? I am sure after twitter showing this kind of time every web application wanted to show the same. WordPress introduced this long back(since v 1.5.0) but is used by very less people in the blogging community. I am
5 commonly used url rewriting examples using .htaccess
URL rewriting using .htaccess is pretty common today. Most of the frameworks like WordPress, CodeIgniter,cakePHP etc. provide their own URL rewriting techniques. However, there is always a necessity to beautify the URLs using .htaccess when you are using any of the framework. Without talking abou
About Digimantra
Sachin Khosla+ is an engineer and started this blog to write about his experiences with programming. He writes about various technologies, share from code snippets to libraries. He has published few wordpress plugins. Digimantra contains articles related to PHP, Facebook, WordPress, Twitter and
WordPress : Disable / Remove URL field from the comment area
WordPress allows commenting by default on the blog post or pages you create using WordPress. The comment area constitutes of the Name, Email, URL and Comment. Name and Email fields are mandatory but URL field is options. However, many automated bots try to exploit this feature and post some automa
Hire Me
I am contributing to build a better web by creating awesome web applications, web designs etc. I have contributed to the web in many ways like creating free API classes, writing WordPress plugins etc. If you want to get some custom theme,plugin, website build. You can always contact me at realin[
WordPress : Run shortcode in PHP template file
WordPress shortcode is very useful while creating new posts or pages. It is a nifty way to perform certain tasks in the post. For instance, if you want to add a youtube video or image gallery then WordPress shortcodes are quite useful. Many plugins provide their own shortcodes for displaying cert
WordPress : Display content to registered users only
During WordPress theme, or plugin development there are times when you want to show certain page’s content based upon the user. For instance, you want to display a download link to only registered users and display a Register link to un-registered or new users. So we are going to discuss a way thr
Empty WordPress trash automatically
Wordpress has an inbuilt trash system which keeps your posts, pages, comments in trash for 30 days by default. However, WordPress has a way to change this default 30 days time period. We can even disable this feature such that WordPress does not empties the trash automatically. In order to change
Add default content for a new post in WordPress
Most of the bloggers write the blogs in a certain format or at-least have a common signature or a punch line in every post on their blog. For example in my blog posts I always end the posts with Stay Digified!! Sachin Khosla So what if we can automate that type of text such that it shows up aut
Creating dynamic menu with re-order option in wordpress
WordPress is a powerful CMS for a website and it provides features which makes it easy to use CMS. Navigation or Menu is one of the key point of the website. People tend to change Menu names, links, reorder them ever now & then. In a normal website it is a tedious job to change menu every time y
WordPress wp_nav_menu separator and First Last Classes
wp_nav_menu is a wordpress built-in plugin that allows you to show navigation in the front-end. This simple function picks the menu defined in the wp-admin dashboard and displays it as the list. Just like other wordpress functions this is also powerful. It takes various parameters to customize the o