Posts

Showing posts with the label wordpress

4+ Question and Answer (Q&A) WordPress Themes

Image
You have seen Yahoo! Answers, Stack Overflow and many other Question and Answer websites. Ever wondered how you can create a website similar to the sites listed above. For creating a Q&A website you just need a WordPress blog and a WordPress Theme that converts your simple weblog into a fully functional Question and Answer website. Most of the themes listed below are simple and powerful theme. It doesn't really matter whether you are about to run specific niche Q-and-A site or a simple questions and answers site relating to a specific product you sell, I am sure you gonna find these themes extremely useful. List of Question and Answer WordPress Themes 1. Q-and-A, WP Questions and Answers Download Demo Its a lovely wordpress q&a theme. Both Questions and Answers are posted via theme’s front-end which means site users will never reach the dashboard. There are options for voting up and down the answer and the person who posts it.. Answer that gets accepted b...

Display Adsense Ads Below WordPress Post Title or Post Itself

Image
Many WordPress bloggers use Adsense  to monetize their blog. if you are one of them you must place your Adsense ads on high CTR places to increase your earnings. We will show you how can you display Adsense ads(or any other ads) below post title or at the end of the post. Using this you can increase your CTR and also this is acceptable by Google Adsense TOS.Also we are not using a single plugin . Display Adsense Ads Below WordPress Post Title Using below code you can Adsense or any other ads below wordpress post title. Copy and paste below snippet into your theme's functions.php . Replace "AD CODE HERE" with your adsense or any other ads code. add_filter( 'the_content', 'adsense_below_post', 20 ); function adsense_below_post($content) { if ( is_single() ) echo ' <!-- Adsense ads below post by techforty.com --> <!-- Ad code here --> <!-- End --> '; return $content; }...

Automatically Redirect WordPress Users After Logout

Image
WordPress is the Blogging and Content Management System with lots of  facilities provided. If you have a multi-user WordPress site or using it as Community and allow users to register on your site, you can use this code snippet to redirect users to your website or  specific url. For this we will use wp_redirect() function. Uses of Auto Redirect You can redirect your users after logout to Home Page or a page that contains offers for them or display a "Thank You for being with us" or a "heading out stay connected" message like Facebook and give a url to your Mobile Site or Mobile App. The uses of this method are endless and this depends on your creativity. Below is the code which you will need to paste in the functions.php file of your theme. Redirect User to Home Page add_action('wp_logout','auto_redirect_logout'); function auto_redirect_logout(){ wp_redirect( home_url() ); exit(); } Redirect user to custom URL add_action('wp_logout',...

Display the Total Comments Count in WordPress

Image
If you have a good number of comments on your WordPress blog, and want to show your users the same, you can do this by simply following the tutorial above. If you have huge number of comments on your blog you can display total number of comments on your WordPress blog's footer or sidebar. This can encourage users to read other posts also and may increase your pageviews. Displaying Total Number of Comments in WordPress Sidebar It's very simple just open your sidebar.php file, and paste the following code where you want to show off comments count: <?php $comment_count = wp_count_comments(); echo $comment_count->approved . " Comments, Your custom message here"; ?> you can change "your custom message here" to anything you want to add or delete it. If you want to add it in footer just instead of editing  sidebar.php edit the footer .php file. Feel  free to ask for any help regarding this tutorial in comments.

Force Users To Login Before Reading Posts in WordPress

Image
Some WordPress CMS users might want to force users to Login before they read posts. So we have h simple tutorial for them. WordPress has a built-in function which can help you to do that. The function auth_redirect() , this is how it works: When it is called from a page, it checks to see if the user viewing the page is logged in. If the user is not logged in, they will be automatically redirected to the login page. The user is redirected in such a way that, upon logging in, they will be sent directly to the page they were originally trying to access. By using this function, we can implement below code that check if post is restricted or not, and redirect users to login page if needed. Just paste the following code into your theme’s functions.php file: function tf_force_login() { global $post; if (!is_single()) return; $ids = array(188, 185, 171); // array of post IDs that force login to read if (in_array((int)$post->ID, $ids) && !is_user_logged_in()) { a...

How To Change WordPress Login URL

Image
Your WordPress login url is the address from where you.and other users can login to your WordPress blog. Today i will show you how can you change your WordPress login address by editing the .htaccess file. Why you should change wordpress login URL For security - less chances of getting your WordPress blog hacked.All WordPress sites have a default login URL of /wp-login.php and also have admin as their default administrative username. So it’s quite easy to attack your WordPress login URL using tools like brute force to guess all the possible passwords for the admin username. For multi-user site - If you have a multi-user site all users will find a simple login URL For easy access - you can remember your easy login address like: example.com/login Changing WordPress Login URL I am going to show you how to change the default WordPress login URL from http://www.example.com/wp-login.php to http://www.example.com/login using htaccess file. Just Open and edit the .htaccess file in the ro...

How To Make Money Blogging

Image
Is making money online one of your dreams. Then it;s no more a dream. Today i am sharing the ways you can make money blogging on Blogger , WordPress or any other blogging platforms . check out these 4 fairly easy ways to starting making money from your blogging efforts. 1. Joining Advertising Programs There are plenty of advertising programs that let you earn money through your blog, Like google adsense, chitika, Infolinks etc... Advertising Programs are the most popular way to make money blogging. 2. Affiliate Programs Affiliate programs let you allow selling there products, or making signups on their website through your blog and they pay you commissions. This is a very popular way to make money blogging. 3. Sell Direct Ads You can sell direct ads on your blog to interested advertisers. Many sites like BuySellAds let you sell adverts on your blog. Thus you can control which ads are being displayed on your blog and how much the advertisers pay you. ...

5 WordPress Plugins To Kickstart Your New Blog

Image
So you have just set up your  WordPress  blog and now want to add some cool plugins to it. Today we are going to share 5 awesome plugins to supercharge your new WordPress blog. The plugins we are sharing below are some most essential plugins for wordpress bloggers of the new generation. it’s extremely difficult to find the best WordPress plugins as there are over 30,000 plugins available in the WordPress Plugins Directory. We've tried to give you best 5 WordPress plugins for newbie bloggerss for WordPress. You may not use too much plugins on your wordpress site as they may slow down your blog, Most Essential 5 WordPress Plugins We are giving you all the essential 5 wordpress plugins. 1. Jetpack by WordPress.com Jetpack is a super-plugin that brings the power of WordPress.com cloud to your self-hosted WordPress Blog. You need a WordPress.com account to enjoy all the features of this plugin. It’s a must-have with over 25 unique features to turbocharge your blog like Fre...

Display the Last Updated Date of Your Posts in WordPress

Image
Wordpress is used by millions of  bloggers for many purposes, Many NEWS site's also use wordpress, If you have a NEWS WordPress blog whenever you update a news post you might also want your users to get the date updated on your post. In this tutorial we will share how you can let your users know that the post was updated. We will highlight how to display the last updated date of your posts. For example, if you posted an article on May 9, 2014, and you found out three days later that there was an update to the story. You can just edit the article, and it will show May 12, 2014 at the timestamp for last update. First you need to open and check all these these files: index.php single.php page.php Then you will need to find the following code: <?php the_modified_time('F jS, Y');?> Replace the code above with : <?php $u_time = get_the_time('U'); $u_modified_time = get_the_modified_time('U'); if ($u_modified_time >= $u_time + 86...

How to Display a User’s IP Address in WordPress

Image
Today i am going to share with you a sweet WordPress tutorial that will enable your WordPress blog to display visitor's IP(Internet Protocol) address using a ShortCode. Add IP detection to your Wordpress Blog: Only Thing you need to do is copy and paste below code snippet in your functions.php file  // Display User IP in WordPress Blog function get_the_user_ip() { if ( ! empty( $_SERVER['HTTP_CLIENT_IP'] ) ) { //check ip from share internet $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif ( ! empty( $_SERVER['HTTP_X_FORWARDED_FOR'] ) ) { //to check ip is pass from proxy $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } return apply_filters( 'wpb_get_ip', $ip ); } add_shortcode('show_his_ip', 'get_the_user_ip'); Next thing you need to do is add the following shortcode in your post, page, or in a sidebar widget. [show_his_ip] Now your visitors will see the IP address from wher...

Top 5 Author Box Plugins For Wordpress

Image
Hello Bloggers !!!! So you want to show who you are, where you live and how to get to you below every post of your awesome site. Then you are at right place i will tell you about some cool WordPress plugins. Now a days many of WordPress blog have author box at end of each post. Now it’s becoming very popular to have author box in WordPress blog. 1. WP Biographia   This plugin allows you to add a customisable biography to posts, to RSS feeds, to pages, to archives and to each post on your blog's landing page as well as via a widget in your sidebar. It integrates out of the box with the information that can be provided in each user's profile and supports custom post types. Display of the Biography Box can be hidden on a global or per user basis for posts, pages and custom post types as well as on a per category basis. 2. Better Author Bio This is another good author box plugin i would recommend,  it don’t require any coding. Its just simple, neat and clean :D. Here are fe...

What Is A Wordpress Child Theme ?

Image
A child theme is a set of styling rules and/or functions that are used to add functionality or change the look of an existing WordPress theme. Child themes can be modified without altering the original code of your theme, allowing you to make changes as small as changing a couple of colors, or as extensive as completely changing the look and feel of your theme. Many WordPress framework themes, like Genesis, work by using the child theme feature in WordPress. The basic functionality of the theme is contained within the parent theme and child themes can then be used as a way of applying different “skins” to the theme. Why Use A Child Theme Here are a few reasons i have got to let you use child themes : If you modify an existing theme and it is updated, your changes will be lost. With a child theme, you can update the parent theme (which might be important for security or functionality of original theme) and still keep your changes. It can speed up development time (and give you ...

Top 5 Free Wordpress Hosting Providers

Image
Are you looking for some free wordpress   hosting ? I Found People searching over the google for free wordpress host,free wordpress hosting without ads (i also did it myself in old days :) ) . so i have ot a list of 5 free wordpress hosting sites. Why Free Hosting ? 1. Its Free ! - Yupp! and this is  the biggest advantage of free wordpress hosting , you have to pay for it $0.00 and you can use that money for blog promotions and for anything else you can imagine. 2. Move Anywhere Anytime - If you buy a premium hosting and host your blog with that company for any specific time (6 months, 1 year) and you start hating their services after few months, you have no choice, but to see your money going in waste. But in case of free hosting you can move anytime anywhere. And Why Not ! 1. Limited Features. 2. No Better Support 3 . Not Trust Worthy So now you want to host your wordpress blog with some free host i have got a list for you. Free Wordpress Hosting Providers 1....

5 Alternatives To Content Delivery Network MaxCDN

Image
A content delivery network system is a collection of internet servers which serves about one third of the most visited websites. The system improves speed of access for download-able data, applications, queries, web objects and media streams, as it increases the access bandwidth and reduces latency. It contains copies of data located at different nodes of the selected servers, providing service from servers which are located geographically close to the user, hence saving access time. Furthermore, this unique method assists in reducing load on web application and improves scalability. There are several types of Content Deliver Networks which includes third party CDN providers too. MaxCDN Alternatives MaxCDN  is one of the most famous CDNs Wordpress Users Are Using Today . But if you don't like MaxCDN or having any problem with it you can always try these alternatives. 1. CoralCDN CoralCDN is a free CDN and the source code is available through GNU GPL. CoralCDN loc...

How To NoIndex Wordpress Categories And Tags

Image
In terms of SEO you must let search engines index only quality pages of your blog/website. There may be many tag and category pages in your blog and by default they will all be indexed in search engines. Why should you NoIndex Categories and Tags ? 1.Avoid Post duplications. 2.Only Post Pages and Quality pages will  be indexed. Let's Start The Tutorial 1. sign-in to our wordpress blog . 2. open your 'robots.txt' file. 3. add theses lines to your robots.txt files / User-agent: * Disallow: /category/ Disallow: /tag/ That's it now your tag and category pages will not be indexed in search engines. Warning : You may not see the changes immediately in search engines it may take 2 -4 days.

What Is Blogging And Why Should You Do it

Image
A Blog is an Online NewsPaper where you can publish Images,Videos and share your thoughts as posts. In this section, we’ll take a look at how you can get started blogging. What is Blogging  The world around us is changing frequently, Just take a topic from this changing world and make a blog and start posting about it. Yes, this is blogging !!! By the way you can also create a multi-niche blog with different things at one place. So blogging is to post text,images,videos about a single topic or a group of topics via internet. Why to Blog Share Your Ideas - This is what blogging is for, You can share your ideas,dreams and those cheeky pics on your blog. Build relationships - Are you a brand ? Then you can make your brand image and make stronger bonds with people who are your customers, Provide Customer Support -  If you are a business you can provide free customer support using blogging, Communicate news -  You can communicate with other users on in...