Thursday, November 28, 2013

Wordpress Extension for Album and image gallery

Sorry, no attachments exist.

Wordpress Extension for Album and image gallery


Wordpress Extension for Album and image gallery

Wordpress Extension BackUpWordPress files and databases

Sorry, no attachments exist.

Simple automated back ups of your WordPress powered website.

Wordpress Extension BackUpWordPress files and databases



Wordpress Extension BackUpWordPress files and databases

Wordpress Extension for page navigation (pageination display format)

Sorry, no attachments exist.

Wordpress Extension for page navigation (pageination display format)



Wordpress Extension for page navigation (pageination display format)

Wordpress Extension for maintanance mode

Sorry, no attachments exist.

Wordpress Extension for maintanance mode



Wordpress Extension for maintanance mode

Magento Video Gallery Extensions

Sorry, no attachments exist.

Magento Video Gallery Extensions)



Magento Video Gallery Extensions

Steps to Move WordPress From Local Server to Live Site

Step 1: Export Local WordPress Database

Step 2: Uploading WordPress Files to Live Site

Step 3: Creating MySQL Database on Live Site

Step 4: Importing WordPress Database on Live Site

Step 5: Changing the Site URL (on wp_options table see siteurl option , update it),(on wp_options table see home option , update it)

Step 6: Setting Up your Live Site

Step 7: Fixing Images and Broken Links by updating Paths

UPDATE wp_posts SET post_content = REPLACE(post_content, ‘localhost/test/’, ‘www.yourlivesite.com’);



Steps to Move WordPress From Local Server to Live Site

How to Enable and Disable Automatic Updates in WordPress for Major Releases

define( ‘WP_AUTO_UPDATE_CORE’, true );


There is one little problem with this code. It also enables development or nightly updates. To disable nightly builds and development updates you need to add this code in a site-specific plugin or in your theme’s functions.php file.


add_filter( ‘allow_dev_auto_core_updates’, ‘__return_false’ );


This filter will disable automatic updates for nightly builds or development updates.



How to Enable and Disable Automatic Updates in WordPress for Major Releases

WordPress blank page issue

Solution 1 – Check your plugin settings


SELECT option_value FROM wp_options WHERE option_name = ‘active_plugins’

UPDATE wp_options SET option_value = ” WHERE option_name = ‘active_plugins’


Solution 2 – Check your template settings


SELECT option_name, option_value FROM wp_options WHERE option_name IN (‘template’, ‘stylesheet’)

UPDATE wp_options SET option_value = ‘default’ WHERE option_name IN (‘stylesheet’, ‘template’)


Solution 3 – Check the “key” files


There are two “key” files, wp-config.php and .htaccess, that you need to check.


If you can’t access either the WordPress homepage or the admin page, check the wp-config.php file and make sure that there is no empty lines or other characters after “?>”.


If you have a .htaccess file in your WordPress folder, rename the .htaccess file to see if it rectifies the blank page issue. If so, you’ll need to review the settings in the .htaccess file.


 


Solution 4 – Enable error display

php_flag display_errors on


 



WordPress blank page issue

Add Google Analytics

Simply paste the code below and insert your Google Analytics where it says paste your Google Analytics. You can paste the code once in your functions.php file and never have to worry about it again. We are adding an action to the wp_footer, so it will automatically insert adsense codes wherever on all pages you have the wp_footer string.


<?php

add_action(‘wp_footer’, ‘add_googleanalytics’);

function add_googleanalytics() ?>

// Paste your Google Analytics code here

<?php ?>



Add Google Analytics

Add a Favicon to your Blog

Every blog deserves to have its own identity. You can add this identity by adding the favicon code in your header.php file, or you can make it easier for yourself by simply adding the following code in your functions.php file.


// add a favicon to your

function blog_favicon()

echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘wpurl’).’http://cdn3.wpbeginner.com/favicon.ico” />’;


add_action(‘wp_head’, ‘blog_favicon’);



Add a Favicon to your Blog

Add a Favicon to your Blog

Every blog deserves to have its own identity. You can add this identity by adding the favicon code in your header.php file, or you can make it easier for yourself by simply adding the following code in your functions.php file.


// add a favicon to your

function blog_favicon()

echo ‘<link rel=”Shortcut Icon” type=”image/x-icon” href=”‘.get_bloginfo(‘wpurl’).’http://cdn3.wpbeginner.com/favicon.ico” />’;


add_action(‘wp_head’, ‘blog_favicon’);



Add a Favicon to your Blog

Remove WordPress Version Number

You should always encourage your clients to upgrade to the latest version, so you don’t have this problem. But if you are working with a client that does not want to upgrade, then it is essential that you remove your WordPress version number from your WordPress header, RSS feeds, and all other locations. To do this, add the following code:


function wpbeginner_remove_version()

return ”;


add_filter(‘the_generator’, ‘wpbeginner_remove_version’);



Remove WordPress Version Number

Add a Custom Dashboard Logo

When creating themes for a client, you can use this as one of the perks to the theme. All you have to do is paste the following code below:


//hook the administrative header output

add_action(‘admin_head’, ‘my_custom_logo’);


function my_custom_logo()

echo ‘

<style type=”text/css”>

#header-logo background-image: url(‘.get_bloginfo(‘template_directory’).’/images/custom-logo.gif) !important;

</style>

‘;



Add a Custom Dashboard Logo

Change the Footer in WordPress Admin Panel

You can change the footer of your Free or Custom WordPress themes by adding the necessary links. Simply paste the following code:


function remove_footer_admin () WordPress Tutorials: <a href=”http://www.wpbeginner.com” target=”_blank”>WPBeginner</a></p>’;


add_filter(‘admin_footer_text’, ‘remove_footer_admin’);



Change the Footer in WordPress Admin Panel

Dynamic Copyright Date in WordPress Footer

Often you will come across sites with outdated copyright dates. Some sites show the current year as their copyright date. Both of these are annoying, and it shows that the site designer was lazy. In order to give your users a little background info about your site, you should display the copyright date as such: © 2006 – 2010. We can do this by simply pasting the following code:


function comicpress_copyright()

global $wpdb;

$copyright_dates = $wpdb->get_results(”

SELECT

YEAR(min(post_date_gmt)) AS firstdate,

YEAR(max(post_date_gmt)) AS lastdate

FROM

$wpdb->posts

WHERE

post_status = ‘publish’

“);

$output = ”;

if($copyright_dates)

$copyright = “&copy; ” . $copyright_dates[0]->firstdate;

if($copyright_dates[0]->firstdate != $copyright_dates[0]->lastdate)

$copyright .= ‘-’ . $copyright_dates[0]->lastdate;


$output = $copyright;


return $output;


Once you add this function, then open your footer.php file and add the following code wherever you like to display the dynamic copyright date:


<?php echo comicpress_copyright(); ?>



Dynamic Copyright Date in WordPress Footer

Enable Post Thumbnails in WordPress

To do this, you must enable the post thumbnails inside your functions.php file. Paste the code below:


add_theme_support( ‘post-thumbnails’ );


Then simply place the following code inside your loop where you want to display the thumbnail:


<?php the_post_thumbnail(); ?>


For More Details : http://www.youtube.com/watch?v=fUfgmRCPI0E#t=147



Enable Post Thumbnails in WordPress

Add Author Profile Fields

If you want to create a more versatile author page, then you would need to add additional fields to the author profile. The code below will show you how to add additional twitter and facebook fields, but you can use it to add any other field that you like.


function my_new_contactmethods( $contactmethods )

// Add Twitter

$contactmethods['twitter'] = ‘Twitter’;

//add Facebook

$contactmethods['facebook'] = ‘Facebook’;


return $contactmethods;


add_filter(‘user_contactmethods’,'my_new_contactmethods’,10,1);


You can then call the fields in your author.php template by adding the following code:


<?php echo $curauth->twitter; ?>



Add Author Profile Fields

Disable Search in WordPress

When using WordPress as a CMS, sometimes the search feature becomes unnecessary. You can remove the search bar from the design, but the functionality still remains. You can add the following function and disable the search function:


function fb_filter_query( $query, $error = true )


if ( is_search() )

$query->is_search = false;

$query->query_vars[s] = false;

$query->query[s] = false;


// to error

if ( $error == true )

$query->is_404 = true;


add_action( ‘parse_query’, ‘fb_filter_query’ );

add_filter( ‘get_search_form’, create_function( ‘$a’, “return null;” ) );



Disable Search in WordPress

Enable Adsense Shortcode

Adsense is one of the most popular ad elements used by bloggers. Theme designers can place the adsense box in one spot which limits the users. If you want to give your client the ability to add the adsense anywhere, then you can create a shortcode for the adsense using this function:


function showads()

return ‘<div id=”adsense”><script type=”text/javascript”><!–

google_ad_client = “pub-XXXXXXXXXXXXXX”;

google_ad_slot = “4668915978″;

google_ad_width = 468;

google_ad_height = 60;

//–>

</script>


<script type=”text/javascript”

src=”http://pagead2.googlesyndication.com/pagead/show_ads.js”>

</script></div>’;


add_shortcode(‘adsense’, ‘showads’);



Enable Adsense Shortcode

Custom Excerpt Length

By default the excerpt length is capped at 55 words. Many theme designers like to have the flexibility that is why WordPress lets you customize the excerpt length with this function:


function new_excerpt_length($length)

return 100;


add_filter(‘excerpt_length’, ‘new_excerpt_length’);



Custom Excerpt Length