Category Archives: wordpress

  • 0
Customize wordpress for clients

Could not create directory in wordpress and installation failed

Category : wordpress

Could not create directory in wordpress and installation failed

Could not create directory in wordpress and installation Failed

 

 

 

 

 

 

 

 

 

Problem of plugin cannot be installed in wordpress if comes , there follows a tricky way

What should i do now if plugin cannot be installed in directory this problem comes when you do not have full access to your hosting account etc.

Write the following line in your wp-config.php file
‘define(‘FS_METHOD’,’direct’);’

and if the problem of wordpress could not install plugin exists then follow the following procedure.

1- Change the permissions for the wp-content and plugins folders:
sudo chmod 777 Your_wordpress_root_folder/wp-content
sudo chmod 777 Your_wordpress_root_folder/wp-content/plugins

change it
sudo chmod 777 Your_wordpress_root_folder/wp-content/themes
if there problem comes if wordpress theme is not installable .

2- Install the plug-in, it should work fine.
To change back the permission for protecting the wordpress contents and plug-in, otherwise you can leave it as is if the security is not a big concern :
4. change back the original permission :
sudo chmod 751 Your_wordpress_root_folder/wp-content
sudo chmod 751 Your_wordpress_root_folder/wp-content/plugins

And if your problem is not solved then download ssh plugin and upload it maually in your server and configure the settings.

Normally today servers have the functionality of ssh , so disable it if any of above methods are not working and keep in mind to revert it back to its actual settings so that security measures may not be disturbed.

And again your problem is not solved , then do upload manually and activate the plugin in your wordpress settings.


  • -
Customize wordpress for clients

Customize wordpress for clients

Category : wordpress

Customize wordpress for clients

Customize wordpress for clients

 

 

 

 

 

 

 

 

 

Disabling Theme Changing

Just like the Plugin Disabling code above, you really don’t want your clients tinkering or experimenting with any theme changes. The code below will remove the ‘Appearance’ menu option from the Dashboard.

Paste this into your functions.php:

add_action( 'admin_init', 'slt_lock_theme' );
 function slt_lock_theme() {
 global $submenu, $userdata;
 get_currentuserinfo();
 if ( $userdata->ID != 1 ) {
 unset( $submenu['themes.php'][5] );
 unset( $submenu['themes.php'][15] );
 }
 }
Disable Top-Level Menus from the Admin Panel

Depending on your client, you may need to take disabling/hiding WordPress menu options even further. With this snippet you can hide whichever Top-Level Menu (Posts, Media, Links, Tools…) you need to.

Paste this into your functions.php:
function remove_menus () {
global $menu;
    $restricted = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools'), __('Users'), __('Settings'), __('Comments'), __('Plugins'));
    end ($menu);
    while (prev($menu)){
        $value = explode(' ',$menu[key($menu)][0]);
        if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);}
    }
}
add_action('admin_menu', 'remove_menus');

Disable Submenus from the Admin Panel

Maybe your client doesn’t need the drastic action taken by the above snippets, and only needs some key sub-menu items disabled/hidden. This code will help.

Paste this into your functions.php

function remove_submenus() {
  global $submenu;
    unset($submenu['index.php'][10]); // Removes 'Updates'.
    unset($submenu['themes.php'][5]); // Removes 'Themes'.  
    unset($submenu['options-general.php'][15]); // Removes 'Writing'.
    unset($submenu['options-general.php'][25]); // Removes 'Discussion'.       
}
add_action('admin_menu', 'remove_submenus');

We can find menu id in wp-admin/menu.php

Restrict Admin Menu Items Based on Username

Say you want to restrict client access to certain Top-Level menu items, but you still want to maintain the full menu for the main administrator, this snippet will help.

Replace ‘clients-username’ and paste this code into your functions.php

function remove_menus()
{
    global $menu;
    global $current_user;
    get_currentuserinfo();

    if($current_user->user_login == 'clients-username')
    {
        $restricted = array(__('Posts'),
                            __('Media'),
                            __('Links'),
                            __('Pages'),
                            __('Comments'),
                            __('Appearance'),
                            __('Plugins'),
                            __('Users'),
                            __('Tools'),
                            __('Settings')
        );
        end ($menu);
        while (prev($menu)){
            $value = explode(' ',$menu[key($menu)][0]);
            if(in_array($value[0] != NULL?$value[0]:"" , $restricted)){unset($menu[key($menu)]);}
        }// end while

    }// end if
}
add_action('admin_menu', 'remove_menus');

Remove Meta-Boxes from Posts & Pages Editor Screens

Publishing posts and pages are more than likely key to your clients business and probably the main reason you chose WordPress for them in the first place. To help avoid any confusion from within the posts/pages editor screens it could be helpful to remove unused meta-boxes (custom fields, recent comments, post tags…).

Paste this into your functions.php and edit as required:

function remove_extra_meta_boxes() {
remove_meta_box( 'postcustom' , 'post' , 'normal' ); // custom fields for posts
remove_meta_box( 'postcustom' , 'page' , 'normal' ); // custom fields for pages
remove_meta_box( 'postexcerpt' , 'post' , 'normal' ); // post excerpts
remove_meta_box( 'postexcerpt' , 'page' , 'normal' ); // page excerpts
remove_meta_box( 'commentsdiv' , 'post' , 'normal' ); // recent comments for posts
remove_meta_box( 'commentsdiv' , 'page' , 'normal' ); // recent comments for pages
remove_meta_box( 'tagsdiv-post_tag' , 'post' , 'side' ); // post tags
remove_meta_box( 'tagsdiv-post_tag' , 'page' , 'side' ); // page tags
remove_meta_box( 'trackbacksdiv' , 'post' , 'normal' ); // post trackbacks
remove_meta_box( 'trackbacksdiv' , 'page' , 'normal' ); // page trackbacks
remove_meta_box( 'commentstatusdiv' , 'post' , 'normal' ); // allow comments for posts
remove_meta_box( 'commentstatusdiv' , 'page' , 'normal' ); // allow comments for pages
remove_meta_box('slugdiv','post','normal'); // post slug
remove_meta_box('slugdiv','page','normal'); // page slug
remove_meta_box('pageparentdiv','page','side'); // Page Parent
}
add_action( 'admin_menu' , 'remove_extra_meta_boxes' );

Remove Pages Columns

Adding this code allows you to remove whichever column from the ‘Pages’ page you feel are not necessary to your client.

Edit as required and paste this snippet into your functions.php:

function remove_pages_columns($defaults) {
  unset($defaults['comments']); 
  return $defaults;    
} 
add_filter('manage_pages_columns', 'remove_pages_columns');

Remove Posts Columns

Similar to the snippet above, this code will remove columns from the posts page.

Edit as required and paste this code into your functions.php:

function remove_post_columns($defaults) {
  unset($defaults['comments']);
  return $defaults;    
} 
add_filter('manage_posts_columns', 'remove_post_columns');

Removing Default Widgets from the Dashboard

The majority of the default Dashboard widgets may not be necessary to your non-tech client and could potentially be a disastrous distraction. This snippet will remove whichever widget you define from the Dashboard.

Paste this into your functions.php:

// Create the function to use in the action hook
function example_remove_dashboard_widgets() {
	// Globalize the metaboxes array, this holds all the widgets for wp-admin
 
	global $wp_meta_boxes;
 
	// Remove the incomming links widget
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);	
 
	// Remove right now
	unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
	unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}
 
// Hoook into the 'wp_dashboard_setup' action to register our function
add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' );

Disabling Plugin Deactivation

This snippet is particularly useful if you have given a client plugin activation/deactivation privileges (allowing them to add new plugins themselves), but the site you have built requires some core plugins to function and should never be deactivated.
The code below will remove the ‘Deactivate’ links from whichever plugins you deem fundamental as well as removing the ‘Edit’ links from all plugins.

Paste this into your functions.php:

 

add_filter( 'plugin_action_links', 'slt_lock_plugins', 10, 4 );
function slt_lock_plugins( $actions, $plugin_file, $plugin_data, $context ) {
	// Remove edit link for all
	if ( array_key_exists( 'edit', $actions ) )
		unset( $actions['edit'] );
	// Remove deactivate link for crucial plugins
	if ( array_key_exists( 'deactivate', $actions ) && in_array( $plugin_file, array(
		'slt-custom-fields/slt-custom-fields.php',
		'slt-file-select/slt-file-select.php',
		'slt-simple-events/slt-simple-events.php',
		'slt-widgets/slt-widgets.php'
	)))
		unset( $actions['deactivate'] );
	return $actions;
}

Previous page


  • -
Customize wordpress for clients

How to customize wordpress manually

Category : wordpress

How to customize wordpress manually

How to customize wordpress manually

 

 

 

 

 

 

 

 

 

Easy steps for customizing wordpress for your clients and no need to install additonal plugin but this just requires a tricky way to go

 

Create Personalized Dashboard Widgets

When building themes for clients it could be useful, and appreciated, to create a personalized ‘Welcome’ widget on the Dashboard. This snippet will create a simple ‘Hello World’ widget, and can be easily edited to your own specifications.

Paste this code into your functions.php:

// Create the function to output the contents of our Dashboard Widget
function example_dashboard_widget_function() {
	// Display whatever it is you want to show
	echo "Hello World, I'm a great Dashboard Widget";
} 
 
// Create the function use in the action hook
function example_add_dashboard_widgets() {
	wp_add_dashboard_widget('example_dashboard_widget', 'Example Dashboard Widget', 'example_dashboard_widget_function');
}
// Hoook into the 'wp_dashboard_setup' action to register our other functions
add_action('wp_dashboard_setup', 'example_add_dashboard_widgets' );

Add, Remove & Reorder Dashboard Widgets By Role

You may have a client that needs the WordPress Dashboard customized depending on user roles, by restricting editors or authors to all of admins details. This code will get rid of the ‘Incoming Links’ widget for authors and editors and then clean up some of the other boxes for everyone.

Paste this into your functions.php:

function tidy_dashboard()
{
  global $wp_meta_boxes, $current_user;
 
  // remove incoming links info for authors or editors
  if(in_array('author', $current_user->roles) || in_array('editor', $current_user->roles))
  {
    unset($wp_meta_boxes['dashboard']['normal ']['core']['dashboard_incoming_links']);
  }
   
  // remove the plugins info and news feeds for everyone
  unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
  unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
  unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
 
}
//add our function to the dashboard setup hook
add_action('wp_dashboard_setup', 'tidy_dashboard');

List of how to unset each of the current default dashboard widgets:

//Incoming Links
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_incoming_links']);

//Plugins - Popular, New and Recently updated WordPress Plugins
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);

//Wordpress Development Blog Feed
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);

//Other WordPress News Feed
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);

//Right Now - Comments, Posts, Pages at a glance
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_right_now']);

//Recent Comments
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_recent_comments']);

//Quick Press Form
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']);

//Recent Drafts List
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_recent_drafts']);

Remove Author Metabox/Options & Move to Publish MetaBox

This code will remove the Author MetaBox and Screen Options and then add those option into the publish metabox.

Paste this into your functions.php:

// MOVE THE AUTHOR METABOX INTO THE PUBLISH METABOX
add_action( 'admin_menu', 'remove_author_metabox' );
add_action( 'post_submitbox_misc_actions', 'move_author_to_publish_metabox' );
function remove_author_metabox() {
    remove_meta_box( 'authordiv', 'post', 'normal' );
}
function move_author_to_publish_metabox() {
    global $post_ID;
    $post = get_post( $post_ID );
    echo '<div id="author" class="misc-pub-section" style="border-top-style:solid; border-top-width:1px; border-top-color:#EEEEEE; border-bottom-width:0px;">Author: ';
    post_author_meta_box( $post );
    echo '</div>';
}

Add or Remove Links to the New WP Admin Bar

The new Admin Bar gives you quick access to all of the main areas of your site, like creating a new post or page, moderating comments or modifying widgets. The snippets below will allow you to add or remove any links.

This snippet will add links to the admin bar. Paste into your functions.php:

function my_admin_bar_link() {
	global $wp_admin_bar;
	if ( !is_super_admin() || !is_admin_bar_showing() )
		return;
	$wp_admin_bar->add_menu( array(
	'id' => 'diww',
	'parent' => 'my-blogs',
	'title' => __( 'Title of the link you want to add'),
	'href' => admin_url( 'http://mysitesurl.com/wp-admin.php' )
	) );
}
add_action('admin_bar_menu', 'my_admin_bar_link');

This snippet will remove links from the admin bar. Paste into your functions.php:

function remove_admin_bar_links() {
	global $wp_admin_bar;
	$wp_admin_bar->remove_menu('my-blogs');
	$wp_admin_bar->remove_menu('my-account-with-avatar');
}
add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );

Show an Urgent Message in the WP Admin

This snippet will allow you to shows a custom message to any logged in user. Particularly useful if you need to inform a client/user that they have done something wrong.

Firstly, paste this into your functions.php:

/**
 * Generic function to show a message to the user using WP's
 * standard CSS classes to make use of the already-defined
 * message colour scheme.
 *
 * @param $message The message you want to tell the user.
 * @param $errormsg If true, the message is an error, so use
 * the red message style. If false, the message is a status
  * message, so use the yellow information message style.
 */
function showMessage($message, $errormsg = false)
{
	if ($errormsg) {
		echo '<div id="message" class="error">';
	}
	else {
		echo '<div id="message" class="updated fade">';
	}

	echo "<p><strong>$message</strong></p></div>";
}   

Next, add a hook to the admin notices function to show your custom message:

/**
 * Just show our message (with possible checking if we only want
 * to show message to certain users.
 */
function showAdminMessages()
{
    // Shows as an error message. You could add a link to the right page if you wanted.
    showMessage("You need to upgrade your database as soon as possible...", true);

    // Only show to admins
    if (user_can('manage_options') {
       showMessage("Hello admins!");
    }
}

/**
  * Call showAdminMessages() when showing other admin
  * messages. The message only gets shown in the admin
  * area, but not on the frontend of your WordPress site.
  */
add_action('admin_notices', 'showAdminMessages');

Hide the WordPress Upgrade Message

You may have clients who do not want to deal with any maintenance updates. For those clients, using this snippet, you can hide the WordPress Upgrade Message.

Paste this into your functions.php:

add_action('admin_menu','wphidenag');
function wphidenag() {
remove_action( 'admin_notices', 'update_nag', 3 );
}

Simpler Login URL

The default URL for logging into your WordPress powered site is: http://yoursite.com/wp-login.php. To make things easier, or at least more memorable, for a client you will need a cleaner URL like: http://yoursite.com/login

Paste this code in your .htaccess file before the default WordPress rewrite stuff:

RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L]

Change the Dashboard Footer Text

When building a site for a client, it can be useful to be able to customize the dashboard footer text. This little snippet will do the job.

Edit “Your own text” and paste this into your functions.php:

function remove_footer_admin () {
    echo "Your own text";
} 

add_filter('admin_footer_text', 'remove_footer_admin');

Changing the WP Login Logo

When building themes for clients, one of their expectations may be to have some sort of company branding within WPs admin. The first page a client will ever view is the login screen and its very easy to customize by simply replacing the default WordPress logo with your clients company logo.

The new logo should be 326×82 pixels and copy it to your themes ‘images’ folder.

Edit ‘companylogo.png’ and paste this code into your functions.php:

// login page logo
function custom_login_logo() {
	echo '<style type="text/css">h1 a { background: url('.get_bloginfo('template_directory').'/companylogo.png) 50% 50% no-repeat !important; }</style>';
}
add_action('login_head', 'custom_login_logo');

Adding a Custom Dashboard Logo

The next step in customizing WPs backend is to replace the Dashboards logo. You will need to create a transparent (.gif or .png) image of 30x31px. Then, save that image in your theme’s image folder (/wp-content/themes/theme-name/images) and name it whatever you like.

Edit ‘custom-logo.gif’ and paste this snippet into your functions.php:

//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>
';
}

Continue Reading


  • -

How to Transfer WordPress

Category : wordpress

How to Transfer WordPress

How to Transfer WordPress

 

 

 

 

 

 

 

 

 

Learn how to make a WordPress migration to a new host

In this tutorial we will show you how to make a WordPress transfer to a new hosting platform. Whether you’re transferring from WordPress.com or from another regular hosting provider, here you will find detailed instructions on how to migrate WordPress to a new host.

Make a full WordPress Transfer

A WordPress migration from one hosting provider to another is an easy task if performed properly.

Basically, to make a WordPress migration from one host to another consists of three parts – moving the files, moving the database and reconfiguration (if needed).

Transfer WordPress Files

To move your files from one host to another you can use your favourite FTP client. For more information on how to use FTP, please check our FTP Tutorial. It will teach you how to move the files of your application first to your local computer and then to upload them on the new account. If your old host is using cPanel, you can use the File Manager tool to create a .ZIP archive of all your site files. You can then transfer it to your new host and extract it. This will save you time because transferring one big file is much faster than transferring thousands of small ones.

Migrate the WordPress Database

The second step is to move your database. First you need to export your database from the old hosting account. If it uses cPanel you can safely follow these instructions. If not, contact the support team of your previous hosting company in order to receive more information on how to export your database. After you have your data exported, create a new database on your new hosting account and import your content in it.

Reconfigure WordPress to work from the new server

Now, you have your files and database transferred. All you have to do is to reconfigure your WordPress application to work from the new place.

To do this, open the wp-config.php file in your WordPress root folder and locate the following lines:

define('DB_NAME', 'user_wrdp1');
/** MySQL database username */
define('DB_USER', 'user_wrdp1');
/** MySQL database password */
define('DB_PASSWORD', 'password');

You need to replace those values with your actual database, database username and password for it.

Now save this file and your WordPress site should be up and running from your new hosting account!

IMPORTANT!Note that if you change the domain name of your site additional reconfiguration is required.

Transfer WordPress from wordpress.com

It is now possible to transfer your blog from WordPress.com to a stand-alone WordPress installation on your hosting account with just few clicks. To move your site, first login to your WordPress blog.Then go to the Tools menu and select Export. On the page that loads chose to export All content and click on the Download Export File button. Then download the .xml file on your computer.

This is all you need to do on your WordPress.com account. Now you need to import your information to your stand-alone WordPress installation. If you have one installed, login with your admin username and password. If you want to install a fresh WordPress application, check out our WordPress installation tutorial for more information on how to do this.Once you login, select the Tools menu from the left column and chose Import.

This page will show you the available sources you can import content from. Scroll down and select WordPress as an import type.

A popup will open asking you to install the WordPress Importer plugin. Click on the orange Install Now link to proceed.

Once the plugin files are downloaded, select the Activate Plugin & Run Importer link.

You will be redirected to the actual plugin page. Now click the Browse button, select the .xml file you have previously saved on your computer and click on the Upload file and import button.If the content which you want to migrate is quite large the corresponding web server’s timeout value can be reached before the data is fully copied. In this case you need to reupload the .xml file. The system keeps a record for the migrated content and will proceed with the remaining data. Repeat the procedure until you receive a confirmation that the process is successfully completed.

Since you will be inserting new posts and pages WordPress needs to know who will be their author. On this page you can either select an existing user as posts author, or you can create a new one for the imported data. Note that you should check the Download and Import file attachments checkbox if you want your photos and other attachment to be transferred too. Finally, click on the Submit button.

That’s it! Your data is now transferred from your WordPress.com account to your stand-alone WordPress application.

IMPORTANT!This will transfer only your content – posts, pages, media. All the plugins and themes you’ve used at WordPress.com are proprietary and not part of the transfer. You will have to choose a new theme and install all the necessary plugins you need additionally on your self-hosted WordPress site.

Migrate your WordPress data only

Sometimes you may want to transfer only the content from your WordPress site from one application to another (between two different WordPress installations). In such cases, WordPress provides you with an easy mechanism to move your posts, comments, users, attachments and other information with just few clicks. To do this, first login as administrator in your existing blog backend and select Tools -> Export from the left menu.

On this page chose whether you want your Posts, Pages and other available content transferred or you want all the content to be exported. For the purpose of this tutorial, we’ve chosen to move all the content. Then press the “Download Export File” button and save the .xml file to your computer.Now, login to your new WordPress installation and chose Tools -> Import from the left menu. On this page select “WordPress” in order to import content from your previous WordPress installation.

On the next page you have to select whether you want the new content to be posted with an existing author or under a new username. Make sure you check the “Download and import file attachments” checkbox. This will allow WordPress to move correctly your posts including all the photos and other media you’ve inserted into them.

Finally, press the Submit button and your content will be imported into your new WordPress application. That’s it! Your posts and media are now successfully migrated!

Content taken from siteground.com

 


  • -

Display Recent Posts by Category

Category : social , wordpress

Display Recent Posts by Category (Plugin Method)

Display Recent Posts by Category

 

 

 

 

 

 

 

 

 

First thing you need to do is install and activate the Category Posts Widget plugin.

Upon activation, you need to visit Appearance » Widgets, there you will notice the new Category Posts widget in the list of available widgets.

Simply drag and drop Category Posts widget to a sidebar where you want to display recent posts by category.

 

Display Recent Posts by Category

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The widget options are quite self explanatory. First you need to provide a title for the category posts section and choose a category. After that you can choose other display options like number of posts, excerpts, featured image, etc.

Once you are done, click the save button to store your widget settings. You can now visit your site to see recent posts by category in action.

Display Recent Posts by Category without a Plugin (Code Snippet)

In this method, we will use a code snippet to display recent posts from a category.

First you need to add this code in your theme’s functions.php file or a site-specific plugin.

 
function wpb_postsbycategory() {

// the query

$the_query = new WP_Query( array( 'category_name' => 'announcements', 'posts_per_page' => 10 ) );

 

// The Loop

if ( $the_query->have_posts() ) {

    $string .= '<ul class="postsbycategory widget_recent_entries">';

    while ( $the_query->have_posts() ) {

        $the_query->the_post();

            if ( has_post_thumbnail() ) {

            $string .= '<li>';

            $string .= '<a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_post_thumbnail($post_id, array( 50, 50) ) . get_the_title() .'</a></li>';

            } else {

            // if no featured image is found

            $string .= '<li><a href="' . get_the_permalink() .'" rel="bookmark">' . get_the_title() .'</a></li>';

            }

            }

    } else {

    // no posts found

}

$string .= '</ul>';
return $string;
 
/* Restore original Post Data */

wp_reset_postdata();

}
// Add a shortcode
add_shortcode('categoryposts', 'wpb_postsbycategory');
// Enable shortcodes in text widgets
add_filter('widget_text', 'do_shortcode');

 

 

The end of code////////////

Make sure that you replace 'announcements' with your own category slug.

This code simply queries WordPress to retrieve 10 posts from a specified category. It then displays the posts in a bulleted list. If a post has a featured image (post thumbnail), then it will show the featured image as well.

In the end, we created a shortcode 'categoryposts' and enabled shortcode in text widgets.

There are three ways of displaying the recent posts by category using this code snippet.

First, you can simply paste the following code anywhere in your desired template file location (such as footer.php, single.php, etc).

<?php wpb_postsbycategory() ?>

Second and third method relies on using the shortcode in the widget area or inside your posts / pages.

Simply visit Appearance » Widgets and add a text widget to your sidebar. Next add[categoryposts] shortcode in the text widget and save it. You can now preview your website to see recent posts by category in the sidebar.

If you want to show recent posts by categories on specific post or pages, then simply paste the shortcode in the post content area.

By default, your list may not look very good. You will need to use CSS to style the category posts list. You can use the code below as an starting point in your theme or child theme’s stylesheet.

ul.postsbycategory {

list-style-type: none;

}

 

.postsbycategory img {

float:left;

padding:3px;

margin:3px;

border: 3px solid #EEE;

}

Display Recent Posts by Category

 

 

 

 

 

 

 

 

 

 

 

 

 

That’s all, we hope this article helped you display recent posts by category in WordPress sidebar. You may also want to check out these most wanted category hacks and plugins for WordPress.

Content taken from wpbeginner.com


  • -

WordPress weather best plugins

Category : wordpress

WordPress weather best plugins

1. Weather and Weather Forecast Widget

Get the most beautiful weather info on your WordPress site using Weather Underground or Worldweatheronline!.Multilingual widget (Arabic, Chinese, Danish, Dutch, English, French, German, Hungarian, Irish, Italian, Norwegian, Polish, Portuguese, Russian, Serbian and Spanish) with shortcode functionality shows current weather and forecasts for the next nine days for any location, at yours or at your visitors home – detailled infotexts for current weather and forecasts on mouse over – multiple installation

2. Animated weather widget by weatherfor.us

Weather for us widgets that get accurate and beautiful weather forecasts without worrying about any complicated configurations.

3. ICIT Weather widget

An easy to use, elegant weather widget to work in most sidebar and widget locations.

4. Weather Forecast – WP Wunderground

Get accurate and beautiful weather forecasts powered by Wunderground.com for your content or your sidebar.

5. Simple Weather

Shows current weather for specified location.

6. Skysa weather widget

By Installing this weather widget your users can see weather updates for their location on your website through Skysa bar. You can get forecast, various units and really beautiful, eye pleasing weather status that instantly seeks attention of your visitor. The weather widget plugin loads from our optimised servers to server the best version according to users browser; thus the plugin feels as snappy as possible.

7. My Weather

Display your city’s weather on your sidebar. Choice of widget designs and sizes.

8. wp-forecast

wp-forecast is a highly customizable plugin for wordpress, showing weather-data from accuweather.com and/or weatherbug.com

9. Yahoo! Weather

Show your favorite location weather, very easy to customize and support multi-widget and custom css stylesheet and script for adding the style

10. Weather sidebar widget

The Weather sidebar widget shows current weather and forecasts for the current day and the next three days for any location you choose.

11. Weather Spider

Place clean, nice-looking weather forecasts from weatherbug.com within your blog and sidebar.

12. NOAA Weather

Get NOAA weather information in the sidebar for your locale. Note that NOAA reports weather for US States, Commonwealths, & Territories only.

13. World weather – WWO

14. WeatherButton Widget from the Weather Network

WeatherButton Widget for WordPress from The Weather Network

15. Weather Layer

Display weather data on your blog thanks to Yahoo! Weather. Example of use : [weatherlayer country=”France” city=”Paris”]

16. Advanced NOAA Weather Forecas

Advanced NOAA Weather Forecast is a tool for displaying weather forecast and update in your website.

17. Google Weather 4 WP

This plugin was made to show google weather info on wordpress. It was designed to fit the needs of a customer of virtual2.

18. Ajax Weather

Ajax weather service is developed for the users not familiar with computer systems, for example, the elderly. Included in web pages as a left/right bar, this module delivers a local weather information automatically without user’s intervention. Furthermore, end users may change the location of interest by entering zip code or name of city that may give them a fun and attract them to computer systems.

Source taken from freebiesdesign.com


  • -

Best wordpress weather plugins

Category : wordpress

Best wordpress weather plugins

You can perform various tasks and can enhance the functionalities of your WordPress site using plugins and widgets. One such popular and highly useful plugins and widgets are the WordPress Weather Forecast Plugins and Widgets.

In fact, you will be surprised to know that over 70% of Internet surfing population checks for weather information and forecast at least once in a day. So, it makes a lot of sense to include weather data in your WordPress posts, pages or in the sidebar. Weather update and information can be highly useful for your visitors.

In the ongoing post, we have listed 10 Best WordPress Weather Forecast Plugins and Widgets so that you can have the most suitable weather plugin or widget for your WordPress Sites.

Using weather information and forecasting plugin or widget you can display weather information to its fullest. You can choose a location or city for which you want the weather update. Weather plugin or widget comes with a host of features which makes weather showcase easy and interesting. They present latest weather information using weather data feed services like Yahoo Weather Feed Data, MSN Weather, etc.

You can showcase current weather information together with a forecast for next few days. The weather information is absolutely reliable and accurate. They provide the options of using the Celsius or Fahrenheit temperature scale. Plus they support Multi-language so that you present weather information in the language of your choice. They are easy to use; simple to install, can also be easily customized. WordPress Weather Plugins and Widgets are highly useful for travel sites, regional sites or even for personal sites and blogs. Most of the plugins showcased below are free while others need to be purchased.

So you can go through this unique and useful collection of 10 Best WordPress Weather Forecast Plugins and Widgets, and we believe that you will get a suitable WordPress Weather Plugin or Widget matching your requirements and needs.

WordPress Weather Forecast Plugins and Widgets

1. Wp-forecast

Wp-forecast is a WordPress Plugin which enables you to display weather data from WeatherBug.com and/or Accuweather.com. You can display the weather forecast in your WordPress pages, posts or even in the sidebar. Wp-forecast lets you choose the location, the language, the forecast days, even you can set the time after which the weather data is refreshed, and as well as you can set many other factors pertaining to weather forecast.
Weather Forecast Plugins

2. WP Wunderground

WP Wunderground is one of the most powerful and yet easy to implement Plugin for your WordPress Content Management System. It provides accurate and in-depth weather forecast using the Wunderground API. You can use WP Wunderground in the sidebar or even in the WordPress posts or pages. Moreover, it looks simply great on different WordPress Templates including the default WP Theme, TwentyTen.
Weather Forecast Plugins

3. Awesome Weather Widget

Awesome Weather Widget allows you to add clean and beautiful weather widgets to your WordPress site. The widget changes colors depending on the present temperature and the design is based off the site: http://weatherr.net/. Furthermore, all the weather data has been powered by http://openweathermap.org . You can use the built-in widget or can even choose to add it somewhere else using a shortcode.
Weather Forecast Plugins

4. Yahoo! Weather Forecasts

Using the Yahoo! Weather Forecasts plugin you get to display your favorite city weather. It is easy to implement and customize and supports multi-widgets. The plugin employs Yahoo! Weather feed data to show you the latest weather forecast of a city. It provides temperature options, and you can set it in the sidebar widget easily.
Weather Forecast Plugins

5. My Weather

My Weather WordPress Plugin lets you display your city’s weather on the sidebar. The plugin provides various options for layouts, widget designs and colors. It uses the openweather.com Database and so can display weather information of more than 60,000 cities. You can select a country and city and provides options to select temperature scale, as well.
Weather Forecast Plugins

6. Alfie WP Weather

Alfie WP Weather is another very powerful and flexible WordPress Plugin that can add weather data to your website and that too in style. It is easy to set up and configure. It comes integrated with Ajax location search. It employs the Yahoo! API to give you real time weather information. Moreover, you can display minimum, custom or full weather information and as well as the forecast.
Weather Forecast Plugins

7. Bonobo – Weather Widget

Bonobo – Weather Widget is a powerful and beautiful weather slider widget. It is easy to implement and customize and comes with 8 colors scheme options. Bonobo – Weather Widget is based on the Yahoo! Weather Feed. It is a Multilanguage weather widget and supports Metro Style with auto temperature options of F and C.
Weather Forecast Plugins

8. WordPress Weather Forecast Widget

WordPress Weather Forecast Widget is a powerful and easy to use weather plugin for your WordPress site. It fetches weather information from MSN Weather and Foreca. WordPress Weather Widget is capable of providing weather data pertaining to current weather conditions as well as is capable of providing four-day forecast. It supports Celsius as well as Fahrenheit temperature measuring scales. It even includes images for an enhanced viewing experience. It is capable of providing weather conditions in any language. WordPress Weather Widget is easy to install and is compatible across various browsers as well as latest WordPress.
Weather Forecast Plugins

9. Weather Widget 3

Weather Widget 3 is a simple WordPress Widget for showcasing weather information and forecasts for cities across the whole world. You can choose Celsius or Fahrenheit temperature units. The widget displays today’s date, temperature with a forecast for next four days. You can customize the color settings. It uses Ajax Technology and is absolutely easy to use and install.
Weather Forecast Plugins

10. WeatherSlider WP

WeatherSlider is a premium weather widget for your WordPress website. It supports three days weather forecast and comes with awesome transitions and effects. You can even set 12hr or 24hr time format. It supports multiple sliders and also supports multiple locations inside one slider. WeatherSlider supports custom location search bar together with geolocation. Moreover, you can have weather conditions in any language of your choice (multi-language supported).
Weather Forecast Plugins

We hope that you would have liked our presentation of 10 Best WordPress Weather Forecast Plugins and Widgets. We look forward to your comments and suggestions.

Content taken from codefear.com


  • -

Steps for migrating wordpress website

Category : wordpress

Steps for migrating wordpress website

Steps for migrating wordpress website

 

 

 

 

 

 

 

 

 

 

How to migrate worpdress website from one server to other server

1-Set up empty wordpress site on new host
2-Copy plugins, themes and uploads to new host
3-Export database from current host through phpmyadmin
4-Make sure all your database tables selected
5-Make sure save output to a file
1-Compression set to none
2-Format sql
3-Object creation options
4-Check add first one
5-Uncheck second check
6-Fix database urls in text editor (www.example.com replace it with www.websolutionsdone.com etc.)
7-Import database on new host through phpmyadmin


  • -

wooCommerce vs magento

Category : magento , wordpress

WooCommerce vs Magento: Which E-Commerce Platform Is Right For You?

wooCommerce vs magento

WooCommerce vs Magento: Which E-Commerce Platform Is Right For You?

Two of the most popular e-commerce platforms on the market today are WooCommerce and Magento. A source of many blogger debates, they both have their strengths and suitability for different needs. One is a standalone product, now owned by eBay, whereas the other is a plugin for WordPress. They have the backing of their own strong communities: WordPress users for WooCommerce and eBay advocates for Magento.

The debaters feel so strongly about their e-commerce platform of choice since they’ve seen success in their own businesses. Joining them is fairly easy because online businesses are a lucrative area to get into in this digital age. The e-commerce platforms are so easy to set up and use, and come with minimal set up costs, so the barriers to entry are low.

If you’re thinking of setting up an online business, these two platforms will undoubtedly appear somewhere on your short list. So which should you go for?

The Similarities

Firstly, both WooCommerce and Magento are open source products. This means that the original code is freely available to anyone and they can build on it or modify it to create a product that works specifically for them.

One of the reasons WooCommerce and Magento have such large communities is because open source software creates an appreciation of sharing. Developers go on to share their own versions of the open source software to carry on this aspect of giving.

What this means for you as a new business owner is 1) the initial product is free to use and 2) you’ll have an abundance of help from the community.

Community

The way WooCommerce and Magento make their money is through the extras you’ll likely need to purchase over time as your business grows. This “freemium” business model can catch the unaware, so consider your future needs.

For instance, you’ll want to customize the branding of your website to your business and you’ll need to unlock this ability through plugins or a developer’s time. It’s worth keeping in mind that being able to customize your site is only achievable because both WooCommerce and Magento are self-hosted.

If you opt for a hosted solution, for example through Shopify, you’ll have the benefits of quickly building an online store through a few clicks of buttons, plus you won’t need to worry about managing the security of your checkout. However, your customization options will be severely limited. Therefore, WooCommerce and Magento are both brilliant for making your e-commerce shop your own.

Finally, what’s most important when building an online store is, of course, the products and communication with your customers. Both WooCommerce and Magento allow you to upload unlimited products and manage them effectively. You can also add a blog to add a friendly voice to your e-commerce site and help with SEO.

Blog

Differences

Setting Up

Starting up any business will come with hurdles but you don’t want the e-commerce platform you choose to be one. Obviously if you’re already a WordPress user and want to add an e-commerce element to your site, it makes sense to choose the e-commerce plugin, WooCommerce. Therefore you won’t need to get used to another interface or migrate your site to another platform.

Even if you don’t already have a WordPress site, WooCommerce is perfect for beginners. WordPress is so easy to use and WooCommerce is simply an extension of that. Customizing your site through WordPress is really simple due to the number of plugins available. Plus, WooCommerce has tutorial videos to help with the set up.

Tutorial video

Magento’s interface is also really easy to use and it comes with tutorial videos and documentation. It has a full installation wizard too. However, Magento’s difficulty is increased when you want to start adding extensions to your site. In this instance, you might want to think about hiring a Magento-specialist developer.

Costs

This leads us nicely onto costs. Initially, both e-commerce platforms are free (although there is an Enterprise version of Magento). You can download them and get started on building your shop straight away. However, you’ll find that certain things like a full range of payment options beyond just PayPal and bank transfers are essential if you are to grow your business. WooCommerce is limited on these basic options and the plugins and extensions that you buy will add up.

Extensions

However, adding extensions to Magento is also a necessity as you grow and offer your customers a superior shopping experience, and you’ll find that you’ll need to fork out money with Magento too. Magento developers are harder to find than WordPress developers and you do really need one to install the extensions properly, so this is another cost that needs to be considered. WordPress is easier to use by individuals of varying experience, whereas it’d take you a long time to do it yourself through Magento.

A cost that you might not have considered is hosting. WooCommerce is fine to run using WordPress’ hosting, whereas Magento is a little more complicated. You should use dedicated servers or a cloud plan of your own as your product portfolio grows, otherwise your website will run slowly. I know I get frustrated with slow websites when shopping, so think about the user experience of your customers.

Right from the beginning, you ought to be thinking about your long-term goal and your budget. The initial costs associated with setting up WooCommerce and Magento won’t be your only costs, as we’ve already established. But you should also think about your needs – would the extra features that Magento provides over WooCommerce be wasted on you? Or if you predict that you’ll need them, are you willing to put in extra budget now rather than spend the money migrating your site to Magento in the future?

Let’s take a look at those features in more detail.

Features

With any e-commerce platform, you’ll need to be able to have a shopping cart facility and upload infinite products and categorize them. You get these basic features with WooCommerce and Magento. But which allows you to further customize your shop and give your customers extra facilities when buying from you?

Magento wins on this point. You’re able to cross-sell or up-sell your products, compare products, add discount codes, and use an advanced filter to navigate your products. Plus, if you have more than one store, you can view them all on the same account. This is great for creating localized versions of your store.

WooCommerce is simpler, which can be a good thing for those just starting out. You can rate products and feature best sellers or sale items through the available widgets, but anything else more complex will require an add-on. However, keep in mind that because WooCommerce is a WordPress plugin itself, it can work with an array of other WordPress plugins. The navigation is sophisticated, but not as much as Magento’s since you can only filter by one attribute.

WooCommerce features

Either within Magento or as another WordPress plugin for WooCommerce, you’re able to view Google Analytics for both platforms. This is important to see the success of your business as a whole, or for viewing individual items and using this to work out a strategy across your product portfolio.

So, to make a choice based purely on features, Magento comes with the better basics. However to improve on your site, you’ll need to invest more. You have access to Magento Connect, which offers thousands of extensions to add to your site, but you’ll need a developer to install them properly.

Magento Connect

WooCommerce also offers extensions through the WordPress plugins, which are a lot easier to manage and some are even free. Examples of plugins include WordPress SEO by Yoast to help with your search engine rankings, Askimet to filter spam, and Gravity forms to provide a form solution.

The bottom line is cost. If you can afford to hire 3rd parties to improve your site, it’s well worth expanding on the features of Magento. You can’t really try to do it yourself and save money, since it’s more of a steep learning curve with Magento.

Themes

What makes both WooCommerce and Magento attractive to both developers and online business owners alike is how customizable they are. With hosted products, you just don’t get this flexibility. The first thing to choose when customizing is the theme of your site.

Within both WordPress and Magento, there are thousands of free and premium themes to choose from. They all come with their own features like responsive layouts across all device sizes and demo content that you can simply download and import into your own site. Many WordPress themes use their ability to integrate with WooCommerce as a selling point – the developers choose this e-commerce plugin themselves.

For instance at Elegant Themes, there are six  WordPress themes to choose from that focus on e-commerce. Looking specifically at eStore, it’s an elegant design that you can configure easily and sell your products through WooCommerce. If you chose this theme for your online store, you’d benefit from a secure and valid code, browser compatibility across all popular browsers, and easy translation so you can localize your store. You’d also have fantastic support and you would be assured that you’re always up to date since the themes are updated to the latest version of WordPress. It’s incredibly easy to use – you simply design and manage your site through the page templates and ePanel, rather than messing around with code and PHP files. See the live theme demo here.

eStore

The Final Choice

Magento tends to be popular with larger businesses or agencies who manage e-commerce sites on behalf of clients. Magento is scalable, so it’s perfect for those with grand plans or an existing successful online store. It has a few more basic features and once installed by a developer, the extensions are brilliant too. However, you’ll need a big budget to set this kind of store up.

WooCommerce through WordPress is perfect for smaller businesses and those with less developing experience. It does the job of selling your products and as you grow, you can add the many plugins available to build a better experience for your customer. It’s also the best solution if you’re used to the WordPress interface or already have a domain set up and you now want to make products available to buy through your site.

One thing to remember is that Magento was designed specifically for e-commerce stores. However, that doesn’t make the plugins and extensions to a WordPress site any less effective. WooCommerce isn’t a standalone CMS, but it works within WordPress, and as a WordPress enthusiast, that makes it an even better choice for me!

Source


  • -

Magento vs wordpress what to choose for better seo

Category : magento , wordpress

Magento vs wordpress what to choose for better seo

Magento vs wordpress what to choose for better seo
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Every website owner spends time and money in brining the website to the top of search engines. With several online platforms like WordPress and magento, the present generation is a little bit confused about which one to select. Google is the world favorite search engine and the rakings on the same plays a good role in attracting the customers and to double the business. Search algorithm of google is a secret and it is not known outside the Google. But the experts on the basis of results generated by Google studies about the search criteria of the search engines. SEO value of the articles plays a good role in the creating the impact. Most of the people look for the points related to Magento vs. WordPress to select the best one.

Exact idea about your need

Search criteria of the search engines differ with the nature of your website. Different approach is taken by the search engines for ecommerce page, general pate, blog page, article page, forum page etc. You should have clear cut idea about your need before selecting the best form of open source to publish your content. Otherwise your page will rest in the bottom of search engine results making your efforts in vain. Once you have succeeded in selecting the right source as per your needs, you can certainly add SEO value of the articles.

Magento and Ecommerce

Most of the present people prefer Magento for ecommerce based web pages and articles. This shows that search engine gives importance to Magento platform for ecommerce based articles and applications. So if your article or website is for ecommerce, it is certainly a good idea to go for Magento instead of WordPress. WordPress ecommerce users are turning to Magento to get quick and positive results for their ecommerce needs online.

WordPress and blog articles

If you love to make an extension for your website or to submit just a blog article about your product or service, then WordPress is the best platform to use. Search engines give importance to WordPress blogs when searching for general information on products and services. WordPress pages take short time to get it in to top of the search results with their SEO value for articles. Hence, if you are looking for the best platform to publish a blog or article, then go for WordPress platforms.

Maintenance

Since both are open source platforms, it is so easy to maintain and the make the changes in the contents as you wish. Ecommerce people can make use of both WordPress and Magento. WordPress can be used to publish articles and blogs and Magento for online business purpose.

Hence, how we select is what brings the real SEO value for articles and the best in Magento vs WordPress.

Source



Fatal error: Call to undefined function weblizar_navigation() in /home/websolutionsdone/public_html/wp-content/themes/ielts-career/category.php on line 23