Advertisement

adsense ad
  • SEO; Search engine optimization for Your Site Search engine optimization (SEO) is the process of improving the volume and quality of traffic to a web site from search engines via "natural" ("organic" or "algorithmic") search results. Typically, the higher a site's "page rank" (i.e, the earlier it comes in the search results list), the more visitors it will receive from the search engine. SEO can also target different kinds of search, including image search, local search, and industry-specific vertical search engines.

    As an Internet marketing strategy, SEO considers how search engines work and what people search for. Optimizing a website primarily involves editing its content and HTML coding to both increase its relevance to specific keywords and to remove barriers to the indexing activities of search engines.

    The acronym "SEO" can also refer to "search engine optimizers," a term adopted by an industry of consultants who carry out optimization projects on behalf of clients, and by employees who perform SEO services in-house. Search engine optimizers may offer SEO as a stand-alone service or as a part of a broader marketing campaign. Because effective SEO may require changes to the HTML source code of a site, SEO tactics may be incorporated into web site development and design. The term "search engine friendly" may be used to describe web site designs, menus, content management systems and shopping carts that are easy to optimize.

    Another class of techniques, known as black hat SEO or Spamdexing, use methods such as link farms and keyword stuffing that degrade both the relevance of search results and the user-experience of search engines. Search engines look for sites that employ these techniques in order to remove them from their indices.

    more
  • How To: Rearrange WordPress Comments (Latest On Top)

    A few days ago i had to make a minor change to my friend’s site, he wanted the latest comments to be right on top instead of the usual at the bottom of a page, so I had to re-arrange how the comments appeared and if for some reason you need this function all you have to do is a minor edit of /wp-includes/comment-template.php.



    Original Code:

    // TODO: Use API instead of SELECTs.

    if ( $user_ID) {

    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND (comment_approved = '1' OR ( user_id = '$user_ID' AND comment_approved = '0' ) ) ORDER BY comment_date");


    } else if ( empty($comment_author) ) {

    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND comment_approved = '1' ORDER BY comment_date");

    } else {

    $author_db = $wpdb->escape($comment_author);

    $email_db = $wpdb->escape($comment_author_email);

    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = '$post->ID' AND ( comment_approved = '1' OR ( comment_author = '$author_db' AND comment_author_email = '$email_db' AND comment_approved = '0' ) ) ORDER BY comment_date");


    }


    Amazingly enough all you have to do is add a four letter word… DESC :


    // TODO: Use API instead of SELECTs.

    if ( empty($comment_author) ) {

    $comments = $wpdb->get_results(”SELECT * FROM $wpdb->comments WHERE comment_post_ID = ‘$post->ID’ AND comment_approved = ‘1′ ORDER BY comment_date DESC“);


    } else {

    $author_db = $wpdb->escape($comment_author);

    $email_db = $wpdb->escape($comment_author_email);

    $comments = $wpdb->get_results(”SELECT * FROM $wpdb->comments WHERE comment_post_ID = ‘$post->ID’ AND ( comment_approved = ‘1′ OR ( comment_author = ‘$author_db’ AND comment_author_email = ‘$email_db’ AND comment_approved = ‘0′ ) ) ORDER BY comment_date DESC“);


    }


    That’s it!


    UPDATE: I fired up my Dreamwever and can confirm that you’ll find the code in just about line 290

    From : WP_Design

    more

Recent Post

Featured Video

Photos

Photos

Recent Comment