Skip to content
Hey, I'm
KRIS THAPA
  • Home
  • Why Me?
  • About Me
  • Contact Me
  • Services

Author: admin

List Specific Pages with Title, Excerpt and Link

July 10, 2011 admin Leave a comment

<div> <?php global $post; $myposts = get_posts(‘post_type=page&include=100,200,300&orderby=post_date&order=ASC’); ?> <ul> <?php $posts_counter = 0; ?> <?php foreach( $myposts as $post )…

Continue Reading →

Posted in: Wordpress

simple but useful jquery functions

July 7, 2011 admin Leave a comment

<script type=”text/javascript”> jQuery(“.pageclass #pageid fieldset:first”).attr(“id”, “users-profile-core”); //add attribute like id in first jQuery(“.pageclass #pageid p:last”).addClass(“bottom”); //add class in last p…

Continue Reading →

Posted in: Web Development

8 Steps to clean a hacked WordPress blog

June 11, 2011 admin Leave a comment

http://knowit.co.nz/2010/01/8-steps-to-clean-a-hacked-wordpress-blog

Continue Reading →

Posted in: Wordpress

Contact Form 7 – spam controller QUIZ

admin Leave a comment

<p>Please answer the following<br /> [quiz quiz-4711 class:quiz “1+1=?|2” “1+2=?|3” “1+3=?|4” “1+4=?|5” “1+5=?|6” “1+6=?|7” “1+7=?|8” “1+8=?|9” “2+1=?|3” “2+2=?|4” “2+3=?|5” “2+4=?|6” “2+5=?|7” “2+6=?|8”…

Continue Reading →

Posted in: Web Development, Wordpress

Remove title from wp list categories

December 25, 2010 admin Leave a comment

function wp_list_categories_remove_title_attributes($output) { $output = preg_replace(‘` title=”(.+)”`’, ”, $output); return $output; } add_filter(‘wp_list_categories’, ‘wp_list_categories_remove_title_attributes’);

Continue Reading →

Posted in: Wordpress

WordPress customize read more link and custom excerpt

December 19, 2010 admin Leave a comment

function improved_trim_excerpt($text) { global $post; if ( ” == $text ) { $text = get_the_content(”); $text = apply_filters(‘the_content’, $text); $text…

Continue Reading →

Posted in: Wordpress

Page/Post ID in header footer

December 12, 2010 admin Leave a comment

global $wp_query; $post_id = $wp_query->post->ID; if ($post_id==”)

Continue Reading →

Posted in: Wordpress

IE 7 div absolute position

admin Leave a comment

div#fixme { position: absolute; left: 0px; top: 0px; } body > div#fixme { position: fixed; }

Continue Reading →

Posted in: HTML/CSS, Web Development

IE Conditional Comments

admin Leave a comment

<!–[if IE]><p>You are using Internet Explorer.</p><![endif]–> <![if !IE]><p>You are not using Internet Explorer.</p><![endif]> <!–[if IE 7]><p>Welcome to Internet Explorer 7!</p><![endif]–>…

Continue Reading →

Posted in: HTML/CSS, Web Development

Change your default directory page using .htaccess

December 11, 2010 admin Leave a comment

DirectoryIndex  filename.html

Continue Reading →

Posted in: Web Development

Post navigation

Page 3 of 4
← Previous 1 2 3 4 Next →

Recent Posts

  • Overlay a layer
  • How to add a color overlay to a background image?
  • Fancy Checkmark Icons

Recent Comments

  • Joy Gordon on How to hide PHP errors on your Joomla site?
  • Elmer Skafidas on How to hide PHP errors on your Joomla site?
  • Anissa Kjellsen on How to hide PHP errors on your Joomla site?
Copyright © 2026 Hey, I'm