Our Blog

Documentation for FaceBook Feed Plugin – Lite Version

ankit | Dec 22,2014 |   No Comments

Notice: Undefined property: stdClass::$data in /var/www/webriti.com/wp-content/plugins/facebook-feed-basic-plan/facebook-feed-shortcode.php on line 1418
Cannot display feedplease check if the Facebook page exists or not.

The Facebook Feed Plugin is extremely simple to use and lets you display feed of any public Facebook Page on your WordPress website.

Instructions

Here are the steps to display the Feed on your website

1) Install and Activate the Plugin

2) Go to Webriti FaceBook Feed Menu and enter the Facebook Page ID. Refer to the attached screenshot

Settings Screen

 

 

 

3) Insert the shortcode

in to any Page / Post

4) Thats it, the Feed now appears on your website.

RoadMap

We Have a lot of features in pipeline. We will be incorporating them in near future. We welcome user feedback and would love to get suggestions from our users.

We plan to add support for Design and Typography customization, Multiple Feeds, Date Format selection etc in upcoming releases.

How to add FAQ system in WordPress using Custom Post Type?

priyanshu | Jun 7,2014 |   2 comments |

From a while we are getting an enquiry,on, how to add FAQ page or Question and Answer  They also asked how to group them as well so that they can create multiple sets of Q&A.

So this allow’s me  to create this piece of article.

What do we need to create FAQ system ?

  • Need a set of fields for creating Question and Answer pair, will do this with the help of custom post types.
  • Need labels to categorise the set of Q&A pairs. Technically we need to custom taxonomy for this post type.
  • Need a shortcode to embed all in posts/pages.

Lets begin by creating custom post types.

Step 1 Creating Custom Post Type.

WordPress provides a function register_post_types() for creating custom post types. But I dint want to get in the details of this function in this article. So for the sake of simplicity you can use  a plugin “Custom Post Type Ui” for creating this. This plugin provides you an UI for creating this. Below find the code snippet

add_action('init', 'webr_faq_post_type');
function webr_faq_post_type() {
	register_post_type('webr_faq', array(
		'label' => 'Faq',
		'description' => '',
		'public' => true,
		'show_ui' => true,
		'show_in_menu' => true,
		'capability_type' => 'post',
		'map_meta_cap' => true,
		'hierarchical' => false,
		'rewrite' => array('slug' => 'faq', 'with_front' => true),
		'query_var' => true,
		'supports' => array('title','editor','excerpt','thumbnail','author','page-attributes'),
		'labels' => array (
		'name' => 'Faq',
		'singular_name' => 'Faq',
		'menu_name' => 'Faq',
		'add_new' => 'Add Faq',
		'add_new_item' => 'Add New Faq',
		'edit' => 'Edit',
		'edit_item' => 'Edit Faq',
		'new_item' => 'New Faq',
		'view' => 'View Faq',
		'view_item' => 'View Faq',
		'search_items' => 'Search Faq',
		'not_found' => 'No Faq Found',
		'not_found_in_trash' => 'No Faq Found in Trash',
		'parent' => 'Parent Faq',
		)
		) 
	); 
}

Step 2 Creating Custom Taxonomy

If you don’t care regarding categorizing sets of questions you can ignore this step but if you do need to categorize than follow this step. As many of you are are already aware that WordPress provides this functionality in the form of custom taxonomy.

The essential function here is register_taxonomy(). But again you can use “Custom Post Type Ui” for adding it graphically.

Below find the code snippet

add_action('init', 'webr_faq_post_type_taxonomy');
function webr_faq_post_type_taxonomy() {
		register_taxonomy( 'webr_faq_categories',array (
		  0 => 'webr_faq',
		),
		array( 'hierarchical' => true,
			'label' => 'FAQ Categories',
			'show_ui' => true,
			'query_var' => true,
			'show_admin_column' => false,
			'labels' => array (
		  'search_items' => 'Faq Category',
		  'popular_items' => '',
		  'all_items' => '',
		  'parent_item' => '',
		  'parent_item_colon' => '',
		  'edit_item' => '',
		  'update_item' => '',
		  'add_new_item' => 'Add New Faq Category',
		  'new_item_name' => 'New Faq Category',
		  'separate_items_with_commas' => '',
		  'add_or_remove_items' => '',
		  'choose_from_most_used' => '',
		)
		) 
	); 
}

Now , for categorizing sets of questions add categories as you normally do in case of  WordPress.  Go to Faq tag and create FAQ Categories.

Step 3 Creating  FAQ  shortcode

Here comes the most technical part of this article creating shortcode. I am a big time fan of these WordPress shortcodes. Basically we are going to make these question answers embeddable into posts and pages.

Now we need to focus on

  • Query these faq post type
  • Creating an attribute in shortcode for filtering.
  •  Displaying  question and answer as title and content.

 

if ( ! function_exists( 'webr_faq_shortcode' ) ) {

    function webr_faq_shortcode( $atts ) {
        extract( shortcode_atts(
                array(
                    // category slug attribute - defaults to blank
                    'category' => '',
                    // full content or excerpt attribute - defaults to full content
                    'excerpt' => 'false',
                ), $atts )
        );

        $output = '';

        $query_args = array(
            // show all posts matching this query
            'posts_per_page'    =>   -1,
            // show the 'webr_faq' custom post type
            'post_type'         =>   'webr_faq',
            // query related to shortcode attributes on faq
            'tax_query'         =>   array(
                array(
                    'taxonomy'  =>   'webr_faq_categories',
                    'field'     =>   'slug',
                    'terms'     =>   $category,
                )
            ),            
        );

        // get the posts with our query arguments
        $faq_posts = get_posts( $query_args );

        $output .= '<div class="webr-faq">';

        // handle our custom loop
        foreach ( $faq_posts as $post ) {
            setup_postdata( $post );
            $faq_item_title = get_the_title( $post->ID );
            $faq_item_permalink = get_permalink( $post->ID );
            $faq_item_content = get_the_content();
            if( $excerpt == 'true' )
                $faq_item_content = get_the_excerpt() . '<a href="' . $faq_item_permalink . '">' . __( 'More...', 'webr_faq' ) . '</a>';

            $output .= '<div class="webr-faq-item">';
            $output .= '<h2 class="faq-item-title">' . $faq_item_title . '</h2>';
            $output .= '<div class="faq-item-content">' . $faq_item_content . '</div>';
            $output .= '</div>';
        }

        wp_reset_postdata();

        $output .= '</div>';

        return $output;
    }

    add_shortcode( 'faq', 'webr_faq_shortcode' );

}

Here I am not concerned regarding the style of faq system. But you can style it with the help of these classes added here webr-faq-item,faq-item-title and faq-item-content

Step 4 : Wrapping all the above snippet in plugin.

Since WordPress consider the custom post types as a part of plugin territory, hence, creating a plugin for the above snippet.

Your plugin snippet looks somewhat like this.

<?php
/*
Plugin Name: FAQ System By Webriti
Plugin URI: http://webriti.com
Description: Helps you create an FAQ section for your WordPress site
Version: 1.0
Author: webriti
Author URI: http://webriti.com
License: Public Domain
*/

add_action('init', 'webr_faq_post_type');
function webr_faq_post_type() {
register_post_type('webr_faq', array(
'label' => 'Faq',
'description' => '',
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'capability_type' => 'post',
'map_meta_cap' => true,
'hierarchical' => false,
'rewrite' => array('slug' => 'faq', 'with_front' => true),
'query_var' => true,
'supports' => array('title','editor','excerpt','thumbnail','author','page-attributes'),
'labels' => array (
'name' => 'Faq',
'singular_name' => 'Faq',
'menu_name' => 'Faq',
'add_new' => 'Add Faq',
'add_new_item' => 'Add New Faq',
'edit' => 'Edit',
'edit_item' => 'Edit Faq',
'new_item' => 'New Faq',
'view' => 'View Faq',
'view_item' => 'View Faq',
'search_items' => 'Search Faq',
'not_found' => 'No Faq Found',
'not_found_in_trash' => 'No Faq Found in Trash',
'parent' => 'Parent Faq',
)
)
);
}

add_action('init', 'webr_faq_post_type_taxonomy');
function webr_faq_post_type_taxonomy() {
register_taxonomy( 'webr_faq_categories',array (
0 => 'webr_faq',
),
array( 'hierarchical' => true,
'label' => 'FAQ Categories',
'show_ui' => true,
'query_var' => true,
'show_admin_column' => false,
'labels' => array (
'search_items' => 'Faq Category',
'popular_items' => '',
'all_items' => '',
'parent_item' => '',
'parent_item_colon' => '',
'edit_item' => '',
'update_item' => '',
'add_new_item' => 'Add New Faq Category',
'new_item_name' => 'New Faq Category',
'separate_items_with_commas' => '',
'add_or_remove_items' => '',
'choose_from_most_used' => '',
)
)
);
}

if ( ! function_exists( 'webr_faq_shortcode' ) ) {

function webr_faq_shortcode( $atts ) {
extract( shortcode_atts(
array(
// category slug attribute - defaults to blank
'category' => '',
// full content or excerpt attribute - defaults to full content
'excerpt' => 'false',
), $atts )
);

$output = '';

$query_args = array(
// show all posts matching this query
'posts_per_page' => -1,
// show the 'webr_faq' custom post type
'post_type' => 'webr_faq',
// query related to shortcode attributes on faq
'tax_query' => array(
array(
'taxonomy' => 'webr_faq_categories',
'field' => 'slug',
'terms' => $category,
)
),
);

// get the posts with our query arguments
$faq_posts = get_posts( $query_args );

$output .= '<div class="webr-faq">';

// handle our custom loop
foreach ( $faq_posts as $post ) {
setup_postdata( $post );
$faq_item_title = get_the_title( $post->ID );
$faq_item_permalink = get_permalink( $post->ID );
$faq_item_content = get_the_content();
if( $excerpt == 'true' )
$faq_item_content = get_the_excerpt(); . '<code><a href="</code>' . $faq_item_permalink . '">' . __( 'More...', 'webr_faq' ) . '</a>';
$output .= '<div class="webr-faq-item">';
$output .= '<h2 class="faq-item-title">' . $faq_item_title . '</h2>';
$output .= '<div class="faq-item-content">' . $faq_item_content . '</div>';
$output .= '</div>';
}

wp_reset_postdata();

$output .= '</div>';

return $output;
}

add_shortcode( 'faq', 'webr_faq_shortcode' );

}
?>

Now all you need to do is activate the faq plugin and set all your question and answers pairs in the Faq menu created on plugin activation.

Hope you will find this article helpful.

Introducing Quality: Beautiful and Responsive Business / Portfolio Theme

ankit | May 7,2014 |   No Comments

At Webriti our aim is to create beautiful theme which will help our customers in building a beautiful online presence.  With this in mind, I feel excited to introduce our Latest creation:

 

Quality- A Beautiful and Responsive WordPress Theme.

 

Quality has a beautiful Homepage and comes with 5 predefined Color Schemes.   A unique color scheme and emphasis on Readability makes it ideal for building Business Websites, Corporate Websites and Portfolio Websites.   Here are some Unique Feature:

  • The Header Call Section enables you to showcase contact information to the website visitors.
  • The Home-Page Boasts of Multiple Sections Like Responsive Slider, Services Section Portfolio section etc. All these sections can be easily customized via the Option Panel.
  • Theme comes with Multiple page Templates like About Us Template, Portfolio Template, Blog Template , Contact Page Template Etc.
  • Lots of additional features like Multiple Color Scheme, Typography Customizer, Translation Ready etc.

To know more about the Theme hop on to the Theme Detail Page here. . Have a look at the demo of Quality here. 

 

WordPress.com vs. WordPress.org [Self hosted WordPress]

Ashwini Sah | Apr 29,2014 |   2 comments |

After WordPress vs. Joomla comparison, WordPress certainly sounds like a better option for newbies. It doesn’t only let you create awesome blogs, but making great websites are also possible using WordPress efficiently.

A lot of people often wonder whether to have their own self hosted WordPress site or opting for a free domain on WordPress.com does the trick for them. Well, there are obvious differences between the two and definitely WordPress.org is going to give you a lot of customization options. Why then people still use WordPress.com? Let us explore.
Read More

9 tips to enhance security of your WordPress powered website

Ashwini Sah | Mar 11,2014 |   No Comments

WordPress is easy to install, easy to manage, easy to operate and at the same time, easy to hack. Yes! there are more loopholes than you can imagine to allow hackers to peep in to your blog.

Better safe than sorry!

Getting your website hacked is a nightmare. You can lose your website and its contents all of a sudden. But that doesn’t mean nothing can be done to prevent it from hacking. With some tweaks and hacks, you can make your website secure enough to avoid falling prey to wrong hands. And in case they manage to pull it down, you would be able to  put it up and running within no time. Here are nine quick tips which will make your WordPress blog more secure and hack-proof.Read More

How to enable or disable automatic updates in WordPress

Ashwini Sah | Feb 19,2014 |   No Comments |
wordpress-upgrade

With the version 3.7, WordPress introduced a new feature called the Automatic updates. This feature allows WordPress to automatically update itself to the minor and security releases. However, by default the automatic updates are not enabled for major releases in order to avoid unexpected compatibility issues with existing themes and plugins.

wordpress-upgrade

Disable automatic updates for minor / security releases in WordPress

There could be several reasons you might not like the idea of automatic updates. Some developers often modify core WordPress files, or sometimes you might need to prepare your theme or plugins to make them compatible with the next update. Whatever be the case, switching to manual updates gives you a better control, allowing you to skip some minor updates (although not recommended) or updating as per your convenience.Read More

5 simple ways to customize the WordPress Toolbar

Ashwini Sah | Feb 6,2014 |   4 comments

WordPress Toolbar (formerly admin bar) is a super useful feature provided by WordPress . It     provides one click access to many features and makes managing the blog a whole lot easier. You can access customization options, add a new post, edit an existing post and do a lot more stuff with just one click.

Although the default WordPress toolbar comes with a host of useful features,  you might often feel a need to tweak it to make it more suitable to your requirements . So, here I will share some simple tweaks and customization which you can apply to the Admin Bar

Read More

Announcing the Premium version of Easy Coming Soon Plugin

ankit | Jan 20,2014 |   one comments

So after 3 months of hard work, we are finally ready to release the premium version of the Easy Coming Soon Plugin.  In this post I will walk you through the features and the benefit of the plugin.

The easy Coming Soon plugin allows you to engage your visitors and capture their email address. The inbuilt Design Options allows you to customize the look without any coding.

Here is a comprehensive list of featuresRead More

8 practical ways to monetize a blog

Ashwini Sah | Jan 13,2014 |   No Comments

Blogs have steadily moved from being a medium to vent out something, to a business. It’s no more just a platform to express yourself, but to make a great deal of money as well.

There are various ways to monetize a blog if it’s getting a steady flow of traffic, and most of them can run simultaneously. While most of the bloggers rely only on advertisement income, some go out of the way to maximize their blog revenue by using multiple streams. Here we list eight different monetizing strategies which are most popular amongst the bloggers across the globe.

Best ways to monetize a website

monetize a blog

1. Advertisement

Advertisement is hands down the best monetization technique for any kind of website. However, how you manage your ad inventory makes a lot of impact on how much you earn. The first thing you need to know about is the types of ads based on the way they earn  money.

– CPC (cost per click) and CPM (cost per mile): These are essentially parameters by which ad companies pay you. In CPC, the companies pay you a certain (fixed or variable) amount per click on the ads posted on your blog. In CPM, you are paid a fixed amount per thousand impressions of the ad unit. Leading CPC and CPM companies are Google Adsense, Media.net, Chitika etc.

– Sell ad space: You can also opt to sell some ad space on your blog for a fixed price. The spaces are sold for a certain period of time and the payout is independent of events like click or impression. You can choose to sell the ad slots directly on your blog or some webmaster’s forums (e.g. Digitalpoint, Warriorforums etc.) or through a third party service like BuySellAds.com.

Tip: Use a combination of both the techniques to maximize the ad revenue from your blog.

2. Affiliate marketing

Affiliate marketing is another popular way of monetizing your blog. It essentially means tying up with affiliate marketing companies such as Clickbank and Commission Junction, or joining e-commerce site such as Amazon, who pay you commission for the products sold through your affiliate links.

Affiliate marketing is recommended if you are running a blog related to product reviews, launch coverage, price comparison etc. If you want to be successful in affiliate marketing, you must provide consistent quality material on a regular basis, and make your blog a brand. This often takes more than a solo effort and you may probably need a team of writers, designers and web developers to be successful.

3. Paid Reviews

If your readers bank on your reviews, the product owners will be happy to offer you products to do hands on, more often for a charge. This generally works well if you have a high traffic count and have established yourself as someone with an honest opinion. Sites like PayPerPost, SponsoredReviews and ReviewMe are popular options for first timers, and as you gain in reputation, companies would directly approach you to test their products.

Tip: A paid review doesn’t necessarily mean that you always praise the product. Accepting to write a dishonest review might earn you some quick bucks, but hits you hard in the long run.

4. Paid Guest posting

Guest posting is considered as the most effective search engine optimization techniques now-a-days. If you have an authoritative blog, you might allow other bloggers or website owners to write guest posts on your blog, and charge for it. This works excellent if your blog has a high page rank in addition to a great traffic.

5. URL shorteners

URL shortening websites shorten a long web URL to only a few characters, serving various purposes e.g. reduce the character count to post in micro blogging sites like Twitter, bypass security that have filters against particular words, cloak an affiliate link, back link anonymously etc.

Lately, many companies have started monetizing with this technique by taking the users to an advertisement page before redirecting to the original link. You can make money with this technique, if you link out a lot. Adf.ly is the leading URL shortening company which pays you on per click basis.

 

6. File hosting

If you are providing some downloadable content to your readers on a regular basis, you may host these files on a third party website, and earn money every time it’s downloaded (Pay per download). These file hosting companies sell memberships for a small fee and provide additional benefits to subscribed downloaders. Leading companies which pay you for sharing files through them are ShareCash, DepositFiles, Uploading.com etc.

Tip: Both the URL shorteners and file hosting techniques are used mostly by the people involved in distribution of pirated contents. Use these methods with caution if you are running a legitimate blog.

7. Video blogging

If a picture speaks thousand words, a video must utter a million. Rather than writing a multipage tutorial, it could be a good idea to upload a video on YouTube. This concept goes well with product reviews as well. Videos posted on YouTube could be monetized easily by linking it with your Adsense account. You can also embed the videos on your blog to increase the views and earnings.

8. Flipping the website

Do you feel your blog’s traffic has gone stagnant now? Are you running out of ideas to keep your blog interesting and appealing to people, and push the traffic further? If earning money was your prime motive behind building the blog, you might plan for an exit at this point. List your website on Flippa and let it go for a handsome amount.

What are your prime monetization techniques? Did we miss some great strategy here? Let us know your views via comments.

4 Steps to Make WordPress Backend Client Friendly

Ashwini Sah | Dec 9,2013 |   No Comments
client-friendly

WordPress is a great option when your client wants a website for his small business. Not only it is suitable for a website with few pages and products, but also stands as a robust platform when your client wants to expand its scope with the expanding business.

First meeting of your client with the admin panel of WordPress could be scary. Things could go worse if your client is adventurous and loves experimenting. It’s always better to optimize the backend and make your WordPress admin dashboard client friendly. It will make thing easy for your clients and reduce the risk of getting things messed up for no reason.

Optimizing a WordPress admin panel for clients is an easy and straight forward process. You can either chose to achieve it through a set of plugins or by tinkering with codes. I prefer the plugin way for this tutorial, not just because it’s easy to implement, but it’s also a more stable options with regards to regular WordPress updates, theme updates, change of theme etc.Read More

Prev 1 2 3 4 5 6 7 8 9 10  Next