remove blog word from wordpress permalink url

Many times we need to remove the category or blog slug from wordpress URL.  We can very easily remove the blog word from wordpress blog URL. In this tutorial, We are going to show remove blog word from wordpress permalink url. this is useful when you upgraded your wordpress multisite installation.

remove blog word from wordpress permalink url

I personally used wordpress mu for long time. When wordpress 3.0 launched with multisite functionality we started using wordpress 3.0. Removing blog and category slug is very important for many clients.

I am assuming you are using wordpress 3.0 multisite installation. If that is so then you need to do following action.

First login to wordpress admin and go to Super Admin > Sites > Edit

and Scroll down to “Permalink Structure” and remove the “/blog” part. That should work.

Image is shown as like.

remove blog word from wordpress permalink url
remove blog word from wordpress permalink url

than update the option and your issue will be solved. If you are still facing issue then you need to use following code in your functions.php file. Following code is useful for those who updated wordpress mu from wordpress 3.0, other wise they can use above action.


add_filter("pre_update_option_category_base","remove_blog_slug");
add_filter("pre_update_option_tag_base","remove_blog_slug");
add_filter("pre_update_option_permalink_structure","remove_blog_slug");

/* just check if the current structure begins with /blog/ remove that and return the stripped structure */
function remove_blog_slug($tag_cat_permalink){

if(!preg_match("/^\/blog\//",$tag_cat_permalink))
return $tag_cat_permalink;

$new_permalink=preg_replace ("/^\/blog\//","/",$tag_cat_permalink );
return $new_permalink;

}

If you want advanced permalinks then I can suggest following wordpress plugin for changing the permalink

Advanced Permalinks

advanced permalink options that allow you to:

  • Have multiple permalink structures. Permalinks can be assigned to posts or ranges of posts
  • 301 redirect old permalink structures (many structures are allowed)
  • Category-specific permalinks. Posts in certain categories can be assigned a permalink structure
  • No need to have a base to the category permalink!
  • Change author permalinks
  • Enable periods in permalinks – perfect for migrating old websites

If you need more information or help then you can contact me through contact form.

how to show featured posts in wordpress homepage

For show featured posts in wordpress on home page. You can select article to show on home page. We have code snippet for show featured posts in wordpress. Showing featured post is good for seo also. Important and selected article you can show on home always. Featured post is great functionality introduced by wordpress.

show featured posts in wordpress

Some times we want to need to show featured posts in wordpress blogs on home page. You can select most popular or nice articles to show on home page. In this tutorial I will will show how you can show the featured wordpress posts on home page.

There is very simple way to show featured post on home page. First you need to create featured wordpress category and whatever post you want to show as featured post that posts select under featured post.

Then use following code:

<?php
  query_posts('category_name=featured&posts_per_page=5');
  if (have_posts()) : while (have_posts()) : the_post();
?>
<?php the_title(); ?>
<?php the_excerpt(); ?>
<?php endwhile; endif; ?>

Above code you need use in index.php and single.php file. Or you can following code for showing featured wordpress post.

 <?php while ( have_posts() ) : the_post() ?>

      <?php  if(get_post_meta($post->ID, 'type', true) == "featured") {; ?>
  <h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( __('Permalink to %s', 'your-theme'), the_title_attribute('echo=0') ); ?>" rel="bookmark">
<img src="<?php echo get_post_meta($post->ID, 'intro_thump', true); ?>" alt="Icon for Post #<?php the_ID(); ?>" />
</a></h2>
<?php  }; ?>
<div class="entry-content">

     </div><!– .entry-content –>
<?php endwhile; ?>
show featured posts in wordpress
show featured posts in wordpress

Add google maps in wordpress post

You can add the google maps in wordpress post or pages very easily. You need to just use following code in your functions.php file. Open your functions.php file from your wordpress theme folder and copy paste the following code in that file.

Add google maps in wordpress post

You can Add google maps in wordpress post or pages very easily. Open your functions.php file from your wordpress theme folder and copy our code in file. If you don’t have functions.php file in your wordpress theme folder then create functions.php file and put following code in that file.


//Google Maps adding through Shortcode
function add_googlemap_in_wordpresss_in_wordpress($atts, $content = null) {
 extract(shortcode_atts(array(
 "width" => '620',
 "height" => '430',
 "src" => ''
 ), $atts));
 return '<iframe width="'.$width.'" height="'.$height.'" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="'.$src.'&output=embed" >';
}
add_shortcode("googlemap_in_wordpress", "add_googlemap_in_wordpresss_in_wordpress");

How to use google maps in your wordpress posts and pages.

use the following code in your posts or pages.

[googlemap_in_wordpress width="280" height="280" src="[you_url]"]
Add google maps in wordpress post
Add google maps in wordpress post

You can change the height and width as per your requirement and for url you need to use following url
http://maps.google.com/
go to above url and choose your location and right side top you will find the link option. click on that link url and you will get the link of your location. Just copy paste that url. example as follows

[googlemap_in_wordpress width="280" height="280" src="[http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=New+York,+NY,+United+States&sll=37.0625,-95.677068&sspn=47.215051,79.013672&ie=UTF8&hq=&hnear=New+York&ll=40.555548,-73.730621&spn=0.356317,0.617294&z=11&iwloc=A]"]

Above code put in your post or page. you can see the google maps in your page.

Here is list of some wordpress plugins which will help you to integrate the google map in wordpress.

how to display or embed the google map in wordpress

increase memory allocation for wordpress

Many people faced memory issue wordpress and WordPress itself uses the so much memory. By default wordpress uses the 32mb memory. shown you to increase memory allocation for wordpress using config file.

increase memory allocation for wordpress

First you need to know what is the use of increasing the memory limit for wordpress. If I increase the WP_MEMORY_LIMIT from 32M to 64 or 96M will it make my website load fast.

We can adjust the amount of memory using the wp-config.php file.

define('WP_MEMORY_LIMIT', '96M');

Many shared hosting provides the default memory for php. What I see most commonly shared hosting set the memory limit to 8mb or 16mb. They does not allow you to increase the php memory limit and in that case if you changed the wp-config file then also there is no use of that change.

increase memory allocation for wordpress
increase memory allocation for wordpress

What that setting do?
This setting increases PHP Memory only for WordPress, not other applications. By default, WordPress will attempt to increase memory allocated to PHP to 32MB (code is at beginning of wp-settings.php), so the setting in wp-config.php should reflect something higher than 32MB.

set post excerpt length to limited characters in wordpress

In wordpress 3.0 limiting the excerpt is very easy. the_excerpt function is very useful and helpful in wordpress. In wordpress limiting the excerpt is very easy. With our code you can set post excerpt length to limited characters in wordpress. the_excerpt function is very useful and helpful in wordpress.

set post excerpt length to limited characters in wordpress

set post excerpt length to limited characters in wordpress
set post excerpt length to limited characters in wordpress

In many wordpress theme we used the excerpt. Many times we need to control excerpt characters as per our wordpress theme requirement. You can easily change the excerpt length using wordpress hook.

You just need to open your functions.php file from your wordpress theme folder and put following code in that.

function change_excerpt_length($length) {
    return 100;
}
add_filter('excerpt_length', 'change_excerpt_length');

This filter is used by wp_trim_excerpt() function. By default the excerpt length is set to return 55 words.

free wordpress themes for hotels and resorts, restaurants and travel

In Hotel site you need to add many images and media and reviews about customer. we have unique free wordpress themes for hotels and resorts.

free wordpress themes for hotels and resorts

Biggest to smallest hotel and restaurant required the website now. Wordpres is best and perfect solution for this. In Hotel site you need to add many images and media and reviews about customer. In wordpress creating the hotel or restaurant site is very nice and easy. There are too many free wordpress themes which can be usable for creating hotel site with wordpress. In this article I am going to give very nice options about free wordpress themes for hotels or Restaurants.

Hotels WordPress Theme

free wordpress themes for hotels and resorts
In Hotel site you need to add many images and media and reviews about customer. we have unique free wordpress themes for hotels and resorts.

Demo | Download

DeLuxe

Demo | Download

Hotel

Demo | Download

Hotel Lobby

Demo | Download

SW Hotel

Demo| Download

Hotel Nights

Demo | Download

Golden Palace Hotel Theme

Demo | Download



Dont use WP-Robot plugin ever in WordPress blog

First reason I must say that google does not like the wp-robot wordpress plugin. Unique and good quality contents are what you need to RANK. Dont use WP-Robot plugin ever in WordPress blog.

What is Wp-Robot?

WP Robot is an autoblogging plugin for WordPress weblogs. It will enable the user to create targeted blog posts on any topic without having to write anything. Blogs will be set on auto-pilot and fresh content will be entered on a schedule that the user specifies and the posts can be on any topic and will be targeted to any keyword desired. Content can be taken from any source including Amazon, Ebay, ClickBank, and YouTube.

Many People think they will earn money easily from this plugin. But that is not true. If you use wp-robot plugin for month you will get to know. Not single article is indexed by google.
Because Google will check the article title and content and That content is duplicate then google never index that page.
Your articles will never comes in picture. It might be possible in that blog you will right the your own articles but still due to wp-robot google will never index your article.
Google might ban your domain name due to wp-robots. Earlier this is happened with some domain names due to wp-robots.
So My advice to all bloggers dont use wp-robots ever.

How to add new User types in WordPress site

Adding and managing the New User types and role management in any CMS is very basic requirement of any CMS. In wordpress also we can create the multiple User types and manage there roles through admin panel. In this article I shown, How to add new User types in WordPress site.

 

How to add new User types in WordPress site

How to add new User types in WordPress site
How to add new User types in WordPress site

For managing the Role capabilities we need to include one wordpress plugin. This plugin is compatible upto wordpress 3.0.1 and we can create multiple user roles and set user permissions through admin panel.

User Role Editor

User Role Editor WordPress plugin makes the role capabilities changing easy. You can change any standard WordPress user role (except administrator) with a few clicks. Just turn on check boxes of capabilities you wish to add to the selected role and click “Update” button to save your changes. That’s done. In case you made some unneccessary change you always have the “Reset” button to restore roles state from the automatically made backup copy. Add new roles and customize its capabilities according to your needs. Unnecessary self-made role can be deleted if there are no users whome such role is assigned. Role assigned every new created user by default can be changed too.

WordPress.com announcement: Like a Post? Well Then, “Like” It!

Yesterday When I logged to my wordpress blog account I saw the following announcement under my dashboard.

WordPress.com announcement: Like a Post? Well Then, “Like” It!

I checked the that link and I got the news about like button. When I checked the post in my blog then I am able to see the like button under my each post.

Note: This functionality is enabled with self hosted wordpress blogs.

What features Like button is having?

A ‘like’ button will be present at the end of every blog post, similar to the feature on social networking site, Facebook. If a viewer ‘likes’ a post, the author can browse through the blog profile of the viewer. This is designed to promote interaction between bloggers who share similar ideas and interests.

When you “like” a post two core things happen. First, the blog post’s author sees your “like” and can click-through to your Gravatar profile. Second, clicking “like” saves the post in your homepage dashboard (in the “Posts I Like” section), so you can share it with others, or just keep it around for future reference. If you’re interested in keeping track of how many likes your own blog posts are receiving, there’s a new “like count” column on the “Posts > Edit Post” screen. This will show you the total like count on each of your posts, right next to the total comment count.

We’re hoping this will be an awesome new way to discover other interesting bloggers, and start new conversations with people who — literally! — like you. If you haven’t updated your Gravatar profile yet, now would be a great time to upload a picture, a link to your blog, and any other details. Editing your profile is easy, just remember that all of your profile information is public.

If you dont want to show the like button then follow the bellow steps

If you’d prefer not to display likes on any of your blog posts we’ve provided an option to turn them off under “Appearance > Extras.” You can still enable or disable likes selectively on individual posts through the “Show likes on this post” checkbox when editing or writing a new post.

I love the wordpress they are keep adding very interesting stuff in wordpress blogs.

BlackBerry Released for wordpress with Improved UI and Language

blackberry 1.4 version is released with new features. This version is very nice features including new UI and bug fixes. This app has new multilingual support.

BlackBerry Released for wordpress with Improved UI and Language

BlackBerry Released for wordpress with Improved UI and Language
BlackBerry Released for wordpress with Improved UI and Language

More information you will found on following site

http://blackberry.wordpress.org/

You will got the following language support.

The app now supports the following languages:
English
Italian
Finnish [Thanks Apuasi]
French [Thanks Yann Nave]
Indonesian [Thanks Kate of Pixel Insert]
German [Thanks Frank Wessel]
Portuguese (Portugal) [Thanks José Fontainhas]
Japanese [Thanks Nao]
Spanish [Thanks danivloven]
Colombian Spanish [Thanks Blanca Mancilla]
Polish [Thanks waclawjacek]

With this release they fixed following issues.

  • issue when modifying the properties of a picture attached to a post
  • startup issue on the splash screen that causing the app freezing
  • issue on the Stats view when a post title contains more double quote characters

You will find the following new Features.

  • Easier sign in process
  • Added support for HTTP authentication on password-protected self-hosted blogs
  • Improved the app’s ability for bug reporting and feedback
  • The file browser now remember the last opened folder

WordPress for BlackBerry 1.4 Released

Posted on 3 Aug 10 by Danilo Ercoli
 

WordPress for BlackBerry version 1.4 has been released to BlackBerry App World. Depending on your region or country, you might not see the latest version in the BlackBerry App World, but on your device you should now already see the latest version 1.4.   The following features have been added in version 1.4:

    • Easier sign in process

 

  • Added support for HTTP authentication on password-protected self-hosted blogs

 

 

  • Improved the app’s ability for bug reporting and feedback

 

 

  • The file browser now remember the last opened folder

 

 

This release contains many bug fixes, including:

    • issue when modifying the properties of a picture attached to a post

 

  • startup issue on the splash screen that causing the app freezing

 

 

  • issue on the Stats view when a post title contains more double quote characters

 

 

The app now supports the following languages:
English
Italian
Finnish [Thanks Apuasi]
French [Thanks Yann Nave]
Indonesian [Thanks Kate of Pixel Insert]
German [Thanks Frank Wessel]
Portuguese (Portugal) [Thanks José Fontainhas]
Japanese [Thanks Nao]
Spanish [Thanks danivloven]
Colombian Spanish [Thanks Blanca Mancilla]
Polish [Thanks waclawjacek]