Browsing all articles in Tips
Feb
29

Stop Plugin from showing updates

While developing WordPress site most of the time we use different plugin for the better support of the site.And some times we as a developer make some customization in the default plugin files for our required functionality.

The plugin files are always get updated from its developer and the updates for newer version are notified to us by the wordpress. Suppose we have make some customization in code in the original plugin’s file then that changes will be removed if we update the plugin file to newer version.So to solve this problem we have to stop the automatic update option of the plugin or update notification of the plugin.

To do this we can have two Methods.
That are,

Method 1:

just add below code to the function.php file of your current theme ,

# 3.0:
remove_action( 'load-update-core.php', 'wp_update_plugins' );
add_filter( 'pre_site_transient_update_plugins', create_function( '$a', "return null;" ) );

if you are using wordpress 3.0 or higher version.
read more

Feb
28

How to resolve jquery conflict?

Many a times in the project we have to use jQuery code.And some times this jQuery code gets conflict with some other jQuery code.So to solve that issue i have some solution which will help you to getout from the jQuery conflict issue so that you can get back to your work.

When you are using multiple jQuery files you may lead to the conflict amoung them.Because most of the time jQuery file use “$” in the file as the jQuery reference variable throw out the code.And because of this “$” variable jQuery files get conflict with each other.

To resolve the jQuery conflict issue you can use any of the below option,

Option 1:

When you put jQuery into no-conflict mode, you have the option of assigning a variable name to replace $. ( only once )

<script src="prototype.js"></script>
<script src="jquery.js"></script>
<script>var $j = jQuery.noConflict();</script>

read more

Feb
10

Insert your own Search option in your wordpress theme

 While developing you own theme many times you don’t want to use the default search of the wordpress and you want your own search option which looks better and suits your site design.So if you want to insert your own search option in the theme instead of the default search its very easy to implement it.

Now lets do that in the wordpress theme,

First of all add one function in the functions.php file in your theme folder.

This function creates your search view.And add it to the wordpress site where ever you want.

So lets define that function in functions.php file,

function custom_search_form() {
?>
<form method="get" class="" action="<?php bloginfo('home'); ?>/">
<p>
 
<input type="text" value="" name="s" id="s"  />
<input type="submit" value="Go" />
</p>
</form>
<?php }
 
add_action('thesis_hook_header' , 'custom_search_form');
?>

read more

Dec
22

Create a plugin in wordpress

Creating a plugin in wordpress is just like doing your favorite work with lot of fun.

so lets start to create very simple plugin in wordpress.

steps to create the plugin,

1> create a plugin folder.

for ex, my_first_plugin

2> now create a php file in that folder.

for ex, my_first_plugin\first_plugin.php

read more

Oct
18

Insert update and delete in WordPress.

In the core php, we need to write at-least 10 to 15 lines, sometimes more than that for the database connection and insert update or delete operations on the database..

But in the wordpress we just need a single line for the opration and no need to connect to database. Because this steps are done at the installation only.

INSERT QUERY :

$wpdb->insert( $table, $data, $format );

table (string):

The name of the table.

data (array):

Data to insert in column => value pairs.

format (array|string) : (optional)

An array of formats to be mapped to each of the value in $data. If string, that format will be used for all of the values in $data. If omitted, all values in $data will be treated as strings unless otherwise specified in wpdb::$field_types.

read more

Oct
9

Install WordPress in few minutes.

Author Arpi    Category Tips, wordpress     Tags

Steps to install wordpress are very easy…

its actually just take 10 to 15 minutes to install WordPress.

so lets do it quickly

STEPS :

1. Download wordpress zip file.That is available here.

2. Unzip the document that you just have downloaded.
3. put the unziped folder inside the root of your wamp server.
4. create a database in phpMyAdmin for WordPress.
Follow us on Twitter! Follow us on Twitter!

Search in this website

our sponsors

latest comments

Find us on Facebook

Top Authors

36 posts
saurabh
22 posts
10 posts

Find us on stackoverflow

Polls

Tell us who you are

View Results

Loading ... Loading ...

My Bookmarks

Sponsers Link