June 18, 2013

How to: Add Read More Link on Hompage of WordPress Blog

If you are using advanced WordPress then you must have seen the three dots [...] on your homepage for post excerpt. Its more better to use Read More link instead of unclickable text. So, lets see how can we do that.

readmore

Logon to your WordPress blog and go to Appearance > Editor. Find functions.php file. Add the following code to the bottom of document:

// Add Read More to end of post excerpt
add_filter(‘excerpt_more’, ‘add_excerpt_more’);
function add_excerpt_more($more) {
return ‘<a href=”‘.get_permalink().’” rel=”nofollow”><span>Read More</span></a>’;
}

// Add Read More to end of post excerptadd_filter(‘excerpt_more’, ‘add_excerpt_more’);function add_excerpt_more($more) {    return ‘<a href=”‘.get_permalink().’” rel=”nofollow”><span>Read More</span></a>’;}

Click Update File button. Now, you’re done!

View your homepage, you must see Read More link to your homepage in each post. You can add some styles by adding CSS code in style.css file and using .readmore class.

How to: Place Subscribe to Comments Check Box Above Submit Button

Subscribe to comment is most well know WordPress plugin used to subscribe to the comment pages with a single click. It automatically notify to subscribed users via email if there is new comment on the page. Once you installed this plugin, subscription check box appears below “Submit” button of each pages of comment section.

Notify Comment

Most of the commentator may not notice Notify me of followup comments via e-mail check box which contains after the submit button. But its more better to place it above “Submit” button of comment form for easy visual. So, lets see how we can do that.

First you have to install and active Subscribe to Comment plugin. If you already have it, then just skip this step. Locate the following folder in your hosting account.

/public_html/wp-content/themes/YOUR_THEME_NAME/lib/functions

Make sure you have replaced YOUR_THEME_NAME with your theme name. Then edit comment_functions.php file.

Subscribe to Comment

Now, search for the follow lines:

<textarea name=”comment” id=”comment” tabindex=”4″></textarea>
<button type=”submit” name=”submit” id=”submit” tabindex=”5″>

Note that the above code may vary from different template. Paste the following code between the above lines.

<?php show_subscription_checkbox(); ?>

Then it must look like this:

<textarea name=”comment” id=”comment” tabindex=”4″></textarea>

<?php show_subscription_checkbox(); ?>

<button type=”submit” name=”submit” id=”submit” class=”button” tabindex=”5″>

Save the file and your’re just done! Load any of your blog post page and view the comment section. Now, subscription option but appear below comment form or above “Submit Comment” button. From now, your reader can easily notice comment subscription option.

How to Find Category ID in WordPress

In some of the advanced WordPress theme you need to manage the navigations menus with categories and pages. Usually, you can choose the category or page to display in navigation bar. But in some cases you need to know the ID of each category. Definitely, it may be difficult to find distinct ID’s of each category.

So, I’m going show, how you can easily find the category ID’s easily. Just follow the steps below:

In the WordPress > Posts, Categories, hover your mouse to the category of which you want to know the ID.

category

Then you can see the URL on the bottom of your browser. The last number after the text “ID=” is your category ID. In my case my category ID is 1.

hover

Now you can copy the category ID and use it wherever you want!

Install WordPress In cPanel with One Click of Mouse

If you have bought cPanel hosting account to host your WordPress blog then you don’t have to worry about installing WordPress. You can install WordPress in your cPanel with a click of mouse! Its very easy to do it. Just follow the following steps:

Login to your cPanel account.

Scroll down and you’ll see Fantastico De Luxe under the “Software/Service” option.

One the left sidebar, Click “WordPress” then New Installation.

New Installation

Fill out all the required fields and click Install WordPress Button.

Install WordPress Done

Now your done! You just finished installing WordPress.

Now, just go to http://yourdomain.com/wp-admin and use the username and password that you have used in previous step. For example, my login URL: http://digitalbunch.com/wp-admin