• Home
  • Archives
  • Contact Us

How To Get A Featured Post Section In Wordpress Without Any Plugins »

tag Categories :  Featured, Tips,Tricks and Hacks, Tutorials, WordPress
time Posted on Tuesday, June 17, 2008 by Venkat | * Comments(5)

You can see that I have recently changed my theme and also included a Featured Post Section, It took a lot of time for me to get it working coz of my little knowledge in PHP but with some trial and error I was able get it working.

I’ll show you how to get your featured Post section in your blog.So lets get started

STEP 1 : Create a Category “Featured” for your blog.

STEP 2 : Create a file “featured.php” in the theme folder.

<?php $my_query = new WP_Query(’category_name=Featured&showposts=1′);
while ($my_query->have_posts()) : $my_query->the_post();
$do_not_duplicate = $post->ID; ?>

<div id=”feature”>
<img src=”replace with featured post image.jpg“></img>
<h2 class=”post-title”>
<a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php the_title(); ?></a>
</h2>

<?php the_excerpt(); ?>
<?php edit_post_link(__(’Edit’), ”, ‘ | ‘); ?>
<?php comments_popup_link(__(’No Comments’), __(’1 Comment’), __(’% Comments’)); ?> | <a href=”<?php the_permalink(); ?>” title=”<?php the_title(); ?>”><?php _e(’Read full story »’); ?></a>
</div>

<?php endwhile; ?>

STEP 3 : Open ” index.php ”

Generally the first line would be the get_header(), if you want your Featured Post Section be right after the header , place this line right after that

<?php include (TEMPLATEPATH . ‘/welcome.php’); ?>

STEP 4 : Find this line

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

in the same index.php and place this next line right after the above line

<?php if( $post->ID == $do_not_duplicate ) continue; update_post_caches($posts); ?>

This does not allow the post to repeat itself in the regular posts below the featured posts thereby eliminating duplicates.

STEP 5: A bit of CSS , add this in your style.css

#feature{
width: 800px;
height: 132px;
float: left;
padding:20px 20px 20px 20px;
font-size:12px;
line-height:16px;
}

#feature img {

float: right; margin: 3px 5px 10px 0; backgroundr:#FFFFFF;

}

Hope this helps you get the Featured Posts up and running in your blog.

Another thing is that for the excerpt to be clean you need to explicitly  give an excerpt to the Excerpt Block in your Wordpress Advanced Options in the  Write Post Admin . The excerpt that you give in the excerpt is displayed on the Homepage.

NOTE : For the Featured post to work you need at least 1 post in your Featured Category.

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

TEST
tag Digg This! tag Stumble it! tag Add to Del.icio.us tag Netscape it! tag Google Bookmark It!

Add 125 x 125 AdSpots To Your Wordpress Themes »

tag Categories :  Monetizing, Plugins, Tutorials, WordPress
time Posted on Monday, June 16, 2008 by Venkat | * Comments(2)

If you are using a wigitized wordpress theme that does not have the 125 x 125 Ad Spots in the sidebar, and you want to place Ads in that spot.It becomes difficult to manage ads if you are changing the ads frequently if you have to change the code.Then Show125 is the answer for you.

Show125 is a wordpress widget plugin that lets you add 125 x 125 Adspots to your wordpress sidebar.It also has a slide show effect to the adspots using MooTools Slideshow effect.

How to Use:

  1. Download the plugin from here, and
  2. Upload it to the plugins directory of your worpress installation, and then activate it in the Wordpress administration panel.
  3. In Design » Widgets, you’ll be able to drag and drop the Show125 widget to your sidebar.
  4. Once you filled the fields and saved your changes, you’ll see your ads in your sidebar.

show125

Show125 Features :

  • Display from 1 to 8 ads
  • Available in English (default) or French
  • Display all your ads together, or in an eye-candy Mootools slideshow
  • Optionally add the target=”_blank” attribute to links, if you want ads to open in a new tab.
  • Show (or not) a title for your ads block
  • Easy to install.
  • ShowAds : HomePage | Download | Demo

    TEST
    tag Digg This! tag Stumble it! tag Add to Del.icio.us tag Netscape it! tag Google Bookmark It!

    MassivePress - Free Wordpress Magazine Style Theme »

    tag Categories :  Freeware, GiveAways, WordPress, Wordpress Themes
    time Posted on Saturday, June 7, 2008 by Venkat | * Comments(1)

    MassivePress A magazine style wordpress theme that lets you offers more content on the homepage,featuring a thumbnail based posting style.MassivePress is a 3 column widget enabled WordPress theme.massivepress

    Features :

    1. Columns 3 with the option to use widgets.
    2. Designed for a width of 1080px
    3. Featured Articles photo quilt.
    4. Compatible with WP 2.5.

    How to get it work

    1. Download and upload the theme.
    2. While posting Just create an image (140px square) and upload it, then create a custom field called “thumbnail” and paste the location to your post thumbnail in the value field, for displaying it on the homepage.
    3. In the third column, there is a featured article photo quilt, to get your post listed there, create a category called “Featured”. Any post you categorize as “Featured” will automatically be displayed in the featured article photo quilt.

    MassivePress HomePage | Demo | Download MassivePress

    Technorati Tags: wordpress,wordpress themes,magazine style themes,premium themes
    TEST
    tag Digg This! tag Stumble it! tag Add to Del.icio.us tag Netscape it! tag Google Bookmark It!

    3 Free Wordpress Premium Themes »

    tag Categories :  Freeware, Web 2.0, WordPress, Wordpress Themes
    time Posted on Monday, May 26, 2008 by Venkat | * Comments(5)

    3 Free Wordpress Premium Themes, these can be called premium themes because of the features they offer are in par with some of the premium themes.

    The 3 Themes are

    1. OpenBook
    2. Rebel magazine Theme
    3. Indomagz Theme

    1.OpenBook

    OpenBook is a free Magazine style Wordpress theme, which doesn’t require you to manually edit a file.

    openbook-magazine-theme

    OpenBook Features
    • Magazine-style homepage, including 2 columns and SmoothGallery for your featured posts.
    • 100% Gravatar compatible.
    • Custom fields to insert images on the homepage gallery, on homepage posts and in categories posts.
    • Magazine-style dropdown-menu for your categories.
    • Not manual editing required. After installing the theme, you’ll find an OpenBook tab under Design, where you can set up the options for the theme, including featured posts, featured category, blog logo, number of posts to display on the gallery, categories to display on the blog homepage…
    • If you hate Internet Explorer 6 as I do, you’ll probably be happy: OpenBook have an option which litteraly crash IE6 if checked. If unchecked, IE6 will not crash and people who (still) use it will see your blog just as other users.
    • Compatible with Firefox 2, Firefox 3 beta, Safari, Opera, Internet Explorer 7 and Internet Explorer 6. (OpenBook is also probably compatible with other browsers like Konqueror, I just haven’t tested it myself)
    • Widget-ready sidebar
    • SEO-friendly titles
    • Page templates for Links and Archives
    • Compatible with Wordpress 2.3 to 2.5.1

    OpenBook — Homepage [ French ] Installation Guide [ Translated Page ]

    2.Rebel Magazine Theme

    Free Magazine Style Wordpress Theme which is Widget Ready, 2 Columns with Banner Ad Integration.

    rebel-magazine-theme

    Rebel magazine Theme — Download | Demo

    3. IndoMagz Theme

    indomagz-free-premium-wordpress-theme

    Features :
    • Customizable Home Page
    • Gallery Style Category
    • Custom Archives Page
    • Two columns sidebar (widget supported)
    • Ads supported (button - 125×125, banner - 468×60, and small square 200×200)
    • Breadcrumb supported
    • Valid XHTML & CSS

    IndoMagz Theme — Homepage | Demo | Download

    Technorati Tags: wordpress,wordpress themes,premium themes,freeware
    TEST
    tag Digg This! tag Stumble it! tag Add to Del.icio.us tag Netscape it! tag Google Bookmark It!

    Show Your Search Engine Referred Visitors Related Posts Based On Their Search KeyWords »

    tag Categories :  Google, Plugins, Tips,Tricks and Hacks, Tutorials, Web 2.0, WordPress, Yahoo
    time Posted on Tuesday, May 20, 2008 by Venkat | * Comments(1)

    search_engines When visitors are referred to your site from a search engine, they are definitely looking for something specific, If they don’t find what they want they might leave immediately though your blog might have have what the visitor wants but not correctly directed by the search engine.

    Landing Site, is a wordpress plugin that can help solve this problem by showing related posts based the visitors search keywords.

    Follow the steps to implement the plugin in you wordpress installation.

    Step 1. Download LandingSites plugin from here. [ Direct Download Link ]

    Step 2. Upload the plugin and activate the plugin in your WP Blog.

    Step 3. Add this code to your single.php file.

    Find this code: <?php if (have_posts()) : while (have_posts()) : the_post(); ?> and

    paste this code after the above line.

    <?php if (function_exists(’ls_getinfo’)) : ?>
    <?php if (ls_getinfo(’isref’)) { ?>
    <div class=”landingsites”>
    <h2><?php ls_getinfo(’terms’); ?></h2>
    <p>You came here from <?php ls_getinfo(referrer); ?> searching for <i><?php ls_getinfo(terms); ?></i>. These posts might be of interest:</p>
    <ul>
    <?php ls_related(5, 10, ‘<li>’, ‘</li>’, ”, ”, false, false); ?>
    </ul>

    </div>
    <?php } ?>
    <?php endif; ?>

    Step 4. Add this code to your Style.css file and modify it according to your needs.

    .landingsites{
    line-height: 15px;
    border: 1px #ff9933;
    border-style: double;
    width: 350px;
    margin: 12px 12px 12px 12px;
    padding: 15px 15px 15px 15px;
    }

    landingsites-ty

    Just do a search of your blog and test your landing site plugin.

    I have implemented the plugin on this blog and the plugin works with WP 2.5.1

    Note : for this plugin to retreive related post you need to have Related Post Plugin Installed.
    Download the Related Posts Plugin from here.

    Technorati Tags: wordpress,search engines,google,yahoo,wordpress plugins
    TEST
    tag Digg This! tag Stumble it! tag Add to Del.icio.us tag Netscape it! tag Google Bookmark It!

    Featured Content Gallery Plugin To Promote Your Featured Posts »

    tag Categories :  Plugins, WordPress
    time Posted on Sunday, April 20, 2008 by Venkat | * Comments(0)

    Featured Content Gallery Plugin is a nice little plugin that can help you promote 5 of your featured posts that works with a little help from JavaScript called SmoothGallery.This plugin automates the process of adding the text to the auto scrolling images.

    Once installed, you have to enter the details of the posts that you would like to appear in the list like Post Title, Featured Image Location, Link to Post and the Description that should appear on the image.

    gallery-plugin

    gallery-plugin-settings

    The only drawback to this plugin is that we cannot choose the number of posts that can be set as featured posts.A minimum of 5 is set as default,if left out the posts are also shown in the scroll as blank.

    INSTALLATION :

    1. Download “content-gallery.zip” to your local machine.
    2. Extract and upload the “content-gallery” folder to your “/wp-content/plugins/” directory.
    3. Activate the plugin through the “Plugins” menu in WordPress.
    4. Add the following code anywhere within your theme files where you want the content gallery to be displayed.

    <?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>

    You can also edit the width and height of the content gallery, edit “jd.gallery.css” found within the “css” folder of the “content-gallery” plugin folder. Edit the width and height of the first css entry found as shown below.

    #myGallery, #myGallerySet, #flickrGallery
    {
    width: 460px; /* this is the width of your gallery */
    height: 345px; /* this is the height of your gallery */
    z-index:5;
    border: 1px solid #000;
    }

    Featured Content Gallery Plugin — HomePage — Download — DEMO

    TEST
    tag Digg This! tag Stumble it! tag Add to Del.icio.us tag Netscape it! tag Google Bookmark It!


    Add this blog to my Technorati Favorites!

    Enter your email address:

    Delivered by FeedBurner

  • RSS Guide To A Carrer Abroad

    • TOEFL : What & Who Needs To Give This Exam
    • GUIDE : How To Book Your GRE Slot
    • What Is GRE and TOEFL ?? Who Needs To Give These Exams
    • Visa Experiences
    • What To Expect On Your Way To USA ?
    • Visa Experience Fall 2008 May 20th
    • Visa Expericence May 22, 2008 Mumbai
    • Fall 2008 : Visa Experiences
    • What Are Emergency Slots ?? Availability and Who Qualifies For Them
    • Steps To Schedule A F1 Visa Interview
  • TECH YARD Copyright © 2008 | Disclaimer & Privacy Policy | Slick Blue Theme by Kyle Eslick