In this we are going to give you the good news about google buzz feature is now wordpress blogger can include in their blogs. Just download the our new Google Buzz Button plugin.
Using this Google Buzz plugin you are able add the Google Buzz button in your post and excerpt.
The Google Buzz button easily allows your blog to be shared. You can customize the CSS as per your requirement. Google Buzz has admin panel which will give you the more control.
This plugin has nice admin panel. Using that admin panel you can configure the setting of button.
As we all know cron job can be scheduled in linux systems. So scheduling the any job in wordpress is easy because scheduling the events in wordpress is provided by wordpress itself.
How to schedule events in wordpress
WordPress provides the following functions to schedule the events.
wp_schedule_event(); //using this method you can schedule events.
So many clients had requirement about customize read more link for every post. Tutorial for, How to customize read more for every wordpress post.
So achieving this functionality in easiest way is following.
Just add following code in your functions.php file.
<?php
//The Query
query_posts('posts_per_page=1');
//The Loop
if ( have_posts() ) : while ( have_posts() ) : the_post();
global $post;
$thePostID = $post->ID;
$custom_read_more = get_post_meta($post->ID, 'custom_read_more', true);
if ($custom_read_more) {
add_post_meta($thePostID, 'custom_read_more', 'You need to read this article'); //custom read more value
}
endwhile;
endif;
?>
Now you are set to use the custom read more value for each post. You need to just copy paste the following code in your index.php and page.php and single.php file.
This article will tell you about, How to add Meta box to wordpress admin post and page.Use following code and create wordpressapi.php file and upload this file to wp-content/plugins/ folder.
<?php
/*
Plugin Name: WordPressapi Meta Box
Plugin URI: http://images.purabtech.in/
Description: Adding the Meta box to admin panel -> post
Version: 0.0
Author: WordPressapi
Author URI: http://images.purabtech.in/
*/
function wordpressapi_meta_box() {
add_meta_box(
'wordpressapi',
'Wordpressapi Box', //Meta box title
'write_in_meta_box',
'post' // You can define here where to add the Meta box(post, page, link)
);
}
function write_in_meta_box(){
echo "Wordpressapi is writing something in admin meta box";
}
if (is_admin())
add_action('admin_menu', 'wordpressapi_meta_box');
?>
Go to your Plugin tab and activate the “WordPressapi Meta Box” plugin.
After activating the plugin you are able to see the Meta box on post page.
With custom professional theme you need to add the custom table in wordpress database, Using this code you can, add new tables using wordpress theme
add new tables using wordpress theme
If you want to add one more table to wordpress database you need to just use the following code.
Open the functions.php file and copy paste the code.
[viral-lock message=”Solution code is Hidden! It’s Visible for Users who Liked/Shared This article on Facebook or Twitter or Google+. Like or Tweet this article to reveal the content.”]
$wordpressapi_db_version = "1.0";
global $wpdb;
global $wordpressapi_db_version;
$table_name = $wpdb->prefix . "liveshoutbox";
if($wpdb->get_var("show tables like '$table_name'") != $table_name) {
$sql = "CREATE TABLE " . $table_name . " (
id mediumint(9) NOT NULL AUTO_INCREMENT,
time bigint(11) DEFAULT '0' NOT NULL,
name tinytext NOT NULL,
text text NOT NULL,
url VARCHAR(55) NOT NULL,
UNIQUE KEY id (id)
);";
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
dbDelta($sql);
$welcome_name = "Mr. WordPress";
$welcome_text = "Congratulations, you just completed the installation!";
$insert = "INSERT INTO " . $table_name .
" (time, name, text) " .
"VALUES ('" . time() . "','" . $wpdb->escape($welcome_name) . "','" . $wpdb->escape($welcome_text) . "')";
$results = $wpdb->query( $insert );
add_option("wordpressapi_db_version", $wordpressapi_db_version);
}
In this tutorial we will show you How to exclude pages from wordpress menu without plugin. We given simple code for adding to your theme file which will remove pages from menu.
How to exclude pages from wordpress menu without plugin
Normally when we are creating wordpress theme for showing the pages we code as follows
You are able to see the I added the exclude parameter in wordpress method.
Your selected page id for excluding from menu, you need to just put there with comma separated.
Put this code in your header.php file for showing the menu. You are able to exclude the pages from wordpress menu
In this tutorial I will show you how to show the only selected pages in menu. add selected pages in wordpress menu using our code sample. which can be added.
add selected pages in wordpress menu
Normally when we are creating wordpress theme for showing the pages we code as follows
Using following code you can able to display the subpages of parent page. Tutorial for wordpress get child pages of current page. We have given code sample in this article.
Many people do not care about what CSS they are putting for p tag and div tag. Text wrapping around image in wordpress theme. So far they are not able to use wordpress default functionality of text wrapping around the image.
Text wrapping around image
I am suggesting use following CSS in your wordpress theme whenever you are creating the new theme. You can do care about your theme preview but with that keep an eye you are not breaking the default CSS of wordpress.
Use following CSS in your wordpress theme and you will be able to use wordpress text wrapping around the image for your wordpress theme.
/* wordpress’s default CSS */
/* Begin Images */
p img {
padding: 0;
max-width: 100%;
}
/* Using ‘class=”alignright”‘ on an image will (who would’ve
thought?!) align the image to the right. And using ‘class=”centered’,
will of course center the image. This is much better than using
align=”center”, being much more futureproof (and valid) */